aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes method rights of Message Driven Bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "method rights of Message Driven Bean" Watch "method rights of Message Driven Bean" New topic
Author

method rights of Message Driven Bean

Tontang Bei
Ranch Hand

Joined: Oct 21, 2006
Posts: 130
Can anyone please tell me what can I access in Message driven bean methods as I cant find this in the K n B study guide. I need some info about ejbCreate() mostly. Thanks
Hari Krishna
Greenhorn

Joined: Nov 28, 2006
Posts: 12
Hi,

For messageBeans

In setMessageDrivenContext() , we can get access to JNDI only
In ejbCreate() and ejbRemove(), we can get UserTransaction Object and accesss to JNDI. But remaining are not possible.
In business methods, we can use CMT methods... getRollbackOnly(), setRollbackOnly() ,BMT methods getUserTransaction(), get access to JNDI,Other beans, resource manager.
As you know.... MessageDriven bean doesn't have home remaining methods are not present in this.

Regards,
Hari Krishna.


SCJP 93%<br />SCWCD 86%<br />SCBCD 92%<br />SCDJWS 95%
Tontang Bei
Ranch Hand

Joined: Oct 21, 2006
Posts: 130
thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: method rights of Message Driven Bean