This content has been marked as final.
Show 4 replies
-
1. Re: Problems using Extended Persistence Context
waynebaylor Oct 4, 2007 11:32 AM (in response to daniel.celentano)you're client is using a new session bean for each lap. try changing it to:
... // lap 2 peliculas = proceso.listarPeliculas(); showPeliculas(peliculas); proceso.grabar(); System.out.println("Lap 2 OK!");
each time you do a lookup for a stateful bean you'll get a new one. -
2. Re: Problems using Extended Persistence Context
daniel.celentano Oct 4, 2007 11:52 AM (in response to daniel.celentano)waynebaylor: that for you help!
But see my method grabar(), this is annotated with @Remove, for flush every modification, then the original bean is detroyed and I need new one.
The SFSB make the work of keep a conversation (like seam do). -
3. Re: Problems using Extended Persistence Context
waynebaylor Oct 4, 2007 2:55 PM (in response to daniel.celentano)i think the @Remove annotation means that it will be called when the bean is removed from the pool, not that the bean will be removed with it's called.
-
4. Re: Problems using Extended Persistence Context
daniel.celentano Oct 4, 2007 3:17 PM (in response to daniel.celentano)ummm... @Remove not is a callback method, like PreDestroy, etc.
@Remove is the only one called by code, not by container.
Thanks any way,
Daniel