Hi Daniel, Thanks for your answer, I want to try the factories that are implemented in cxf, however I am having trouble to figure out where to configure the factories for an endpoint. Is there anywhere a sample about it?
Thanks in advance, -Diego Vera -----Ursprüngliche Nachricht----- Von: Daniel Kulp [mailto:[email protected]] Gesendet: Dienstag, 25. August 2009 20:54 An: [email protected] Cc: Vera, Diego Betreff: Re: Web Service Synchronization I guess it kind of depends on what you are trying to accomplish. By default, we only create a single instance of the service bean and thus it SHOULD be properly re-entrant. However, there are ways to deal with it. One option is to use the spring aspects and set the scope to "session". Thus, each session would create a new instance. A particular client (make sure they turn on sessions support) would then be the only one interacting with that object. I think spring has some "per call" type things as well. Alternatively, built into CXF, we have factories that can be configured in that would use a pool of instances to service requests or do "per request" of similar. Or, you could write our own factory that could do whatever you need to do. See: http://cxf.apache.org/javadoc/latest/org/apache/cxf/service/invoker/package- summary.html (SingletonFactory is the default) Dan On Tue August 25 2009 6:05:37 am [email protected] wrote: > Hi all, > > I got a question about cxf web services. I require synchronization in > the web methods since the users that are calling them should be logged > and of couse is important that a web method call fnish before another > user calls the same method. The question is: are by default the call > of the web methods synchonized? Or should I synchronize the access? > > Thanks a lot, > > -Diego Vera -- Daniel Kulp [email protected] http://www.dankulp.com/blog
