• Post Reply Bookmark Topic Watch Topic
  • New Topic

access stateful session bean from stateless context

 
Michael Power
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I've looked for a while now but can anyone tell me if it's possible to access a stateful bean from a stateless context?
What I want to do is persist entity beans which contain a record of the user who modified/created it. The business object that manages the entities needs to be stateless but also has to be able to access user data in stateful beans for populating the entities. Sorry if I'm not being specific enough but can anyone give me some advise on how to handle this?
Cheers
 
Amit M Tank
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How will your stateless bean have access to statefull beans?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35719
412
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Michael,
No. What you can do is pass user data as a parameter to the stateless bean.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!