This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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 Building Microservices this week in the Design 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.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Calling EJB from MDB
It's not a secret anymore!