• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Stateful session bean + @Remove [EJB3]

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
but how are you getting the reference to that stateful? are you injecting it? o lookingup from an initial context?
 
Derick Potgieter
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I`m injecting it.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic