This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How do I do this?

 
jeff mutonho
Ranch Hand
Posts: 271
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm really struggling remembering the bean things that can be done in various methods.Any tips guys?
 
Ramakrishnan Viswanathan
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • 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 ]
 
Pranav Shukla
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
thanx....
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!