This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

call a bean from another bean  RSS feed

 
Stephen Huey
Ranch Hand
Posts: 618
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried posting in another forum, but I'm wondering if this one might be better, so I'm asking the readers of this servlet forum to please check out my other post.
The basic question is how to call a public method of a current instance of a bean from another bean (both of these are session beans and I do not believe they are EJBs). I have seen ways to do this within servlets, but they depend on using the request to get the request's session, and using that to look up a bean via the session's attribute's, and my problem is that within the bean I no longer have access to the request, unless I go through and change a bunch of code to pass it down to where I need one particular piece of info.
If you don't think this can be done, please let me know. Thanks!
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Karelicek, like you said, you don't know if it is an EJB. if the coder is following Sun's naming standards then it looks to me like it would be an EJB, although the client wouldn't have access to the actual Bean class, more like the Remote or Local interface.
But, I still have to close this thread. Please refrain from cross posting.
Thanks
Of course, others will still be able to click the link and get to the actual thread.
Mark
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!