• 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

call a bean from another bean

 
Ranch Hand
Posts: 618
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic