Thread safety when using spring WebServiceTemplate and Jaxb2Marshaller?

The javadoc for Jaxb2Marshaller makes no mention of thread-safety one way or another, so I'm not sure why you think it's not. If it wasn't thread-safe, the javadoc would say that very clearly.

Create several of them (say five), put them into a pool (a queue) and when a thread needs one, it removes it from the pool. When the pool is empty, a few threads will have to wait for the active threads to complete their work and return the marshaller.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions


Thank You!
send