wood burning stoves 2.0*
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
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: 121

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: 121

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.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Calling EJB from MDB
Similar Threads
MDB and Stateless session bean combination
Stateless Session Bean -> MDB (Thread)
PostConstruct and PreDestroy Callbacks
JNDI naming and DI in EJB 3