Are the JBossWS Service and Port classes thread safe?
Issue
- I want to cache
Serviceand port instances since they are expensive to create. Can I safely share them between threads? - I discovered a problem within JBoss that objects obtained from
Service.getPortare not thread safe. - Is the object "javax.xml.ws.Service" thread safe? Can we invoke the method getPort (...) from multiple threads simultaneously?
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7
- 6
- 5
- 4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.