File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes how 2 call ejb file& servlet ie servlet& ejb communication Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Reply Bookmark "how 2 call ejb file& servlet ie servlet& ejb communication " Watch "how 2 call ejb file& servlet ie servlet& ejb communication " New topic
Author

how 2 call ejb file& servlet ie servlet& ejb communication

bandlapalli reddy
Greenhorn

Joined: Aug 12, 2003
Posts: 2
hello please give me the details of how 2 call ejb file& servlet ie servlet& ejb communication what is the importence of communication give me the exaple
thank you
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
I don't understand exactly what you are asking. Do you just want to know how to call an EJB from a Servlet? It is the same as calling an EJB from anywhere else...
Assuming the Servlet is running in the same WLS instance as the EJB, your code would look something like:
Marcos Maia
Ranch Hand

Joined: Jan 06, 2001
Posts: 977
Hi,
It's a recommended good practice to use a pattern here. Look for ServiceLocator and/or HomeCache patterns.
regards.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how 2 call ejb file& servlet ie servlet& ejb communication
 
Similar Threads
how comunicate applet to servelt in tomcate
Servlet - Servlet Communication
how 2 call ejb file using servlet
Servlet to Applet communication
Ejb-servlet communication