Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

use JSP as EJB client  RSS feed

 
Lee Wei Wei
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I used JDeveloper (10.1.3) to create a sample EJB Java Client, I wish to use it in JSP, but have no idea how to convert it into class and call via JSP. The sample code is as below:





Please advise.

Wei
 
Aurelian Tutuianu
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In your JSP web application ( I hope you have one ) you can edit web.xml file and add
a reference to your ejb component. Use the following as a starting point:
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!