• Post Reply Bookmark Topic Watch Topic
  • New Topic

@WebServiceRef  RSS feed

 
jyoti j singh
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When we use @WebServiceRef annotation that mean's client proxy object will be injected by container.

Is it safe to use same injected object in multiple threads, web-service requests are  stateless, but I am still not sure if its threadsafe.

While using annotation @WebServiceRef container will inject but does container maintain pool of object or same object will be used for multiple requests?

 
jyoti j singh
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The WebServiceRef annotation is used to define a reference to a web service and (optionally) an injection target for it. It can be used to inject both service and proxy instances. These injected references are not thread safe. If the references are accessed by multiple threads, usual synchronization techinques can be used to support multiple threads.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!