• 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
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

How do I do this?

 
Ranch Hand
Posts: 271
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm really struggling remembering the bean things that can be done in various methods.Any tips guys?
 
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
These are some points I would keep in mind. It helps me to remember fewer things. If anyone feels that the information below is incorrect, please do correct.

a) Constructor - DON'T DO ANYTHING HERE

b) set<beantype>Context - Almost consistent across all bean types
- Session/Entity bean: Home + JNDI
- Message Driven bean: JNDI (No Home interface!)

c) Entity Bean
Note: method getUserTransaction() can NEVER be called (why? cos BMT does not apply for entity bean)

The equals sign below means that identical operations are allowed as listed in the table in the spec
i) ejbRemove = ejbPostCreate = ejbLoad = ejbStore = comp interface business method call
ii) ejbCreate = ejbFind = ejbHome

d) Message Driven Bean
Note: No HOME INTF, NO COMPONENT INTF, NO CLIENT CONTEXT
This automatically eliminates the applicability of the following methods from EJBContext: getEJB(Local)Home, getCallerPrincipal/isCallerInRole
[ October 25, 2005: Message edited by: Ramakrishnan Viswanathan ]
 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Ram

That was quite useful.

Regards
Pranav
 
jeff mutonho
Ranch Hand
Posts: 271
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanx....
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic