Skip to main content

JAXB Marshalling and UnMarshalling xml ( Performance )

2 replies [Last post]
Joined: 2009-05-24

Hi All,

Our project involving JAXB to marshal/unmarshal the xml data( mainly xsd's ).

The issue here is JAXB is consuming more time to process around ( 45 % of total time ) why is it so ? whether JAXB is Good option or not ?

Any suggestions on this Please,

Thanks in advance,
Sangamesh Reddy, Bangalore

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2005-11-01

> The issue here is JAXB is consuming more time to process
Are you saying that its using more time than it used to do, or more time than you think it should?

JAXB is very flexible, but its performance isn't great.
Whether its a good option or not depends on your requirements.

What are your requirements for exchanging data i.e. it has to be XML or it can be anything, and what performance do you need?, low CPU, low latency etc.

Joined: 2009-05-24

Hi Thanks for valuable reply

I got the where the problem is , actually JAXBContext instance creation is consuming much time to process .So I exposed the JAXBContext instance through singleton , then there is much improvement in performance .But will signleton will become bottleneck when load increases ?

Sangamesh Reddy,Bangalore