• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to call external ejb jar in J2EE Project

 
Ramesh Krishna
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,
I developed one J2EE Project on WSAD 5.1.1...
I have one more application ejb jar file is there. so i have to use that ejb jar in my current application . so i added that jar file in WEB-INF/lib/
folder in WEB Project .But its not recognising the JAR file . The JNDI name not found is coming .Is It right way to add that jar ..otherwise how and where to add that jar ...how to run that jar...

PLZ Help me

Thanks in Advance
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35719
412
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ramesh,
Only regular jars can be in the WEB-INF/lib directory. To use an EJB, you need to package it in an EAR. This can be the same EAR as the web application is in. Otherwise, you can use a separate EAR and call the EJB using remote interfaces.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!