Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how 2 call ejb file using servlet

 
kapil,mehta
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how 2 call ejb file& servlet ie servlet& ejb communication
 
George Brown
Ranch Hand
Posts: 919
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The servlet would need to use the JNDI to get a reference to the EJB (let's call it EJB A) in the same way that another EJB (let's call that EJB B) would need to use the JNDI to get a reference to EJB A.
If you have WebLogic installed you should have lots of examples of a client connecting to an EJB in the subdirectories of ${WEBLOGIC_INSTALL_DIRECTORY}/examples/ejb
HTH
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic