my dog learned polymorphism*
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Invoking Session Bean From within MDB