aspose file tools
The moose likes Websphere and the fly likes Calling EJB from MDB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Calling EJB from MDB " Watch "Calling EJB from MDB " New topic

Calling EJB from MDB

Aakash Parashar
Ranch Hand

Joined: Jul 25, 2005
Posts: 123

Hi Forum,

This is the setup

ear1 - MDB
ear2 - stateless session bean

Both EARs are having all the classes for MDB and Stateless Session Bean but ejb-jar.xmls and ejb-bnds differ in both ear.

I am doing lookup in MDB for the Stateless Session Bean.

Lookup can be done for the JNDI Name given but its giving class not found exception for the Home_Stub of the Stateless session bean.

Please help.

Your's Aakash
SCJP 1.4 96%, SCBCD 1.3 94%,
Aakash Parashar
Ranch Hand

Joined: Jul 25, 2005
Posts: 123

Its resolved. Problem was because the both ejbs were in different ears and stubs were not created in the deployed ear.

I created stubs of ejbs while doing build and then deployed.

After that it was able to do narrow to the required home.
It is sorta covered in the JavaRanch Style Guide.
subject: Calling EJB from MDB
It's not a secret anymore!