Can the javax.xml.soap.MessageFactory be reused? I.e.
msgFactory = MessageFactory.newInstance();
Can I cache msgFac
There's nothing in the javadoc to say that instances of MessageFactory are thread-safe, so I wouldn't make that assumption.
MessageFactory
However, within a single thread, there's nothing to stop you re-using a MessageFactory instance over and over again.