Actually, if using Spring and it's context filter and such, it's probably 
easier to use the Spring AOP proxies and it's scopes.


<bean id="myImpl"  class="eu.czerpak.AccountImp" scope="session"> 
  <aop:scoped-proxy /> 
</bean> 

<jaxws:endpoint implementor="#myImpl" address="/Account" />

Spring would automatically handle creating new instances per session.

Dan



On Thursday 27 May 2010 3:35:00 pm lukasz.czerpak wrote:
> Hi,
> 
> I have some jaxws webservices configured in spring's applicationContext.xml
> like this:
> 
>     <jaxws:endpoint implementor="eu.czerpak.AccountImpl" address="/Account"
> />
> 
> Everything works fine, but i have requirement to have per-request instance
> of service. After some research on this mailling list i found that
> PerRequestFactory or PooledFactory would be the best fit solution. The only
> trouble is how to set up in applicationContext.xml - i don't know spring
> and don't know how to do it.
> Could someone help me with it, please?
> 
> regards,
> Lukasz Czerpak

-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog

Reply via email to