wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes Need to call SessionBean from my MessageDrivenBean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Need to call SessionBean from my MessageDrivenBean" Watch "Need to call SessionBean from my MessageDrivenBean" New topic
Author

Need to call SessionBean from my MessageDrivenBean

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hi

I want to contact to a session bean from onMessage Method of my MessageDrivenBean


Please tell me what is the appropiate way or standard way .( I am using EJB 3 version).

Thank you .


Save India From Corruption - Anna Hazare.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9924
    
158

The usual JNDI lookup or @EJB injection.

[My Blog] [JavaRanch Journal]
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Thank you very much.
 
Consider Paul's rocket mass heater.
 
subject: Need to call SessionBean from my MessageDrivenBean
 
Similar Threads
Help??(Can we use wait method in Bean Class)
MessageDrivenBean-Doubt
Security for MDB
Making calls outside the container
return value to the calling servlet from messageDrivenBean