• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

MTOM - CXF

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have the MTOM property enabled in the configuration file.
But now I wanted the mtom property to change dynamically.
Please suggest on how to enable this mtom at class level?

Thanks,
Aruna.J

 
Aruna Jayabalu
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When I remove the mtom property in the configuration file and when I add @MTOM(enabled=true, threshold=1024)
in the endpoint class, then I am getting the content type as 'application/xop'.
But I want the content type as 'text/plain' for some of the services.
So can I disable this mtom on the method level?
 
Ranch Hand
Posts: 2198
1
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
As you surely have seen, the @MTOM annotation can only be applied to the class level.
As far as I know, it is not possible to disable MTOM for a single method in a web service that uses MTOM - it is all or nothing, it seems.
While not entirely elegant, I would separate the service, creating two services. One that uses MTOM and one that does not.
Best wishes!
 
I like you because you always keep good, crunchy cereal in your pantry. This tiny ad agrees:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic