| 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.
|
 |
 |
|
|
subject: how 2 call ejb file& servlet ie servlet& ejb communication
|
|
|