• Post Reply Bookmark Topic Watch Topic
  • New Topic

get and set Attribute for EJB Context (Storing objects)  RSS feed

 
Jehan Jaleel
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are there any methods like getAttribute and setAttribute off the EJB Context object like there is for Servlet context?

Currently I did not see any in the API. How then are we supposed to store objects that we want to exist for the life of the app server and to be accesible by our beans?

Thanks for any suggestions.
 
Sudhir V
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the attributes are client specific then can be managed by the stateful beans. There are no prepackaged methods but custom accessor methods can be added in the component interface.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!