Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

How do I do this?

 
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?
 
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 ]
 
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....
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic