Forums Register Login

Stateful session bean + @Remove [EJB3]

+Pie Number of slices to send: Send
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 :
NRU-za.co.test.ejb3.session.PlaceOrderBean: 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
+Pie Number of slices to send: Send
but how are you getting the reference to that stateful? are you injecting it? o lookingup from an initial context?
+Pie Number of slices to send: Send
I`m injecting it.
Hey cool! They got a blimp! But I have a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 2949 times.
Similar Threads
Stateful Beans / Passivation / Extended Persistence
Whats the real problem with remove() in EJBObject
Disadvatages of SFSB
Stateful session bean calling @remove method from client
does ejbRemove() ever called on stateful bean?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 17:35:53.