This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Invoking Session Bean From within MDB Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "Invoking Session Bean From within MDB" Watch "Invoking Session Bean From within MDB" New topic
Author

Invoking Session Bean From within MDB

Abiodun Adisa
Ranch Hand

Joined: Jan 17, 2002
Posts: 495
I am trying to access a Session Bean from a Message Driven Bean . The two ejbs are deployed in the same Server . To access the Session Bean I have




but unfortunately i am getting this error


CNTR0020E: EJB threw an unexpected (non-declared) exception during invocation of method "onMessage" on bean "BeanId(Ch7MDBTest#Ch7MDBTestEJB.jar#MyMDB, null)". Exception data: java.lang.ClassCastException: java.lang.String incompatible with org.omg.CORBA.portable.ObjectImpl
Kedar Bhawarthi
Greenhorn

Joined: May 14, 2004
Posts: 8
Do you mean to write


[ September 06, 2007: Message edited by: Kedar Bhawarthi ]
Abiodun Adisa
Ranch Hand

Joined: Jan 17, 2002
Posts: 495
Thanks
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Invoking Session Bean From within MDB
 
Similar Threads
MDB and Stateless session bean combination
javax.naming.NameNotFoundException: VBBean not bound
how to delay MDB?
Error while using MDB with JMS
Calling EJB from MDB