Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calling EJB from MDB

 
Aakash Parashar
Ranch Hand
Posts: 123
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Aakash Parashar
Ranch Hand
Posts: 123
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic