File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Calling EJB from MDB " Watch "Calling EJB from MDB " New topic
Author

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%, http://java-application-programming.blogspot.in
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Calling EJB from MDB