This week I had to learn a Java WebService project that used javax.xml.soap SOAP packages. *.
I have not used this before, but the Apache CXF library has created a SOAP web service.
I have a question about javax.xml.soap. *
Is it better than CXF in terms of performance?
In terms of coding, I see that CXF is amazing, since you don’t have to worry about the SOAP API at all, and just using annotations you can create a service in minutes.
Also are MessageFactory and SOAPConnection thread safe? I ask you to keep creating these objects every time. If the creation is not overhead, then no problem, but if so, I want to create them only once. I could not find thread safety information in javadoc.
source
share