• 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

Action class and ejb references.

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm calling an stateless session bean to do the business logic in my Action class. For the time being, we're not using a business delegate. I'm wondering what the best practice is for obtaining the reference to the ejb object in my Action class.
1) Do I get the home interface and store the ejb object as a local variable within the execute method?
2) Do I store the home interface as a member variable?
3) Do I store the ejb object as a member variable?
Thanks for your help, trying to learn a lot at once here .
 
reply
    Bookmark Topic Watch Topic
  • New Topic