File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Stateful session bean + @Remove [EJB3] Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Stateful session bean + @Remove [EJB3]" Watch "Stateful session bean + @Remove [EJB3]" New topic

Stateful session bean + @Remove [EJB3]

Derick Potgieter
Ranch Hand

Joined: Feb 19, 2004
Posts: 53
Hey all,

I`m struggling understanding one of the @Remove annotation on a stateful session bean.

I have a servlet that creates an order + billing + shipping process over a few steps. When i`m done i call the place order method on my remote stateful session bean. This method is annotated with the @Remove tag.

On completion it removes the stateful session bean. This part is fine and dandy, but why when i initiate the process again from scratch (same session) i get an error : Cannot load from BACKUPSTORE FOR Key: <2d900a2300b91f-ffffffff8ec70191-0>

I understand that the current sessions stateful bean has been removed already, but shouldn`t it create a new stateful bean at this point and rebind it?

Thanks for the help

Fabian Gutierrez

Joined: Aug 15, 2004
Posts: 22
but how are you getting the reference to that stateful? are you injecting it? o lookingup from an initial context?

SCJP 1.4, SCWCD 1.4, SCBCD 5, SCJD 5
Derick Potgieter
Ranch Hand

Joined: Feb 19, 2004
Posts: 53
I`m injecting it.
I agree. Here's the link:
subject: Stateful session bean + @Remove [EJB3]
It's not a secret anymore!