Re: @Persist objects that reference IoC services

2014-06-27 Thread Mihkel Jõhvik
It's a proxied service and the only one persisted. The debugger I mentioned before is XRebel, and it shows that the stored service holds a reference to both a token (ServiceProxyToken) and a creator (JustInTimeObjectCreator). The main issue here seems to be that the latter references registryShutdo

Re: @Persist objects that reference IoC services

2014-06-26 Thread Cezary Biernacki
Do you use proxied service, i.e. one defined as an interface (e.g. via binder.bind(MyService.class, MyServiceImpl.class), not a concrete class? If your service is defined as a concrete class, its instance is used directly. In such case it will be serialised using normal Java rules. Best regards,

@Persist objects that reference IoC services

2014-06-26 Thread Mihkel Jõhvik
Hi Maybe someone can help alleviate my confusion. I gather (from reading https://tapestry.apache.org/service-serialization.html) that IoC services, when persisted, are done so using tokens. If a service is passed to a POJO and that POJO stored in a session using the @Persist annotation, that beha