Should and EJB Client be in the same package as the EJB ?
If my EJb is under A.B.C
then can my client (some servlet or main program..)
be under X.Y.Z ?
Or should it be present under A.B.C only ?
reply asap
-
*******Client for an EJB****** (4 messages)
- Posted by: Kamesh Kiran Mantha Sarvepalli
- Posted on: July 27 2000 09:35 EDT
Threaded Messages (4)
- *******Client for an EJB****** by Jana Rajesh on July 27 2000 10:13 EDT
- Re : Client for an EJB by Jean-Baptiste Nizet on July 27 2000 11:49 EDT
- Re : Client for an EJB by Kamesh Kiran Mantha Sarvepalli on July 28 2000 06:23 EDT
- Re : Client for an EJB by Sunil Chandran on July 31 2000 05:36 EDT
- Re : Client for an EJB by Kamesh Kiran Mantha Sarvepalli on July 28 2000 06:23 EDT
-
*******Client for an EJB******[ Go to top ]
- Posted by: Jana Rajesh
- Posted on: July 27 2000 10:13 EDT
- in response to Kamesh Kiran Mantha Sarvepalli
Hi,
It's not needed that the client has to be present in the same folder.Just copy the client jar file to the folder from where you want to run the client.
For your information the client can also be in a different machine.Last but not the least what we do is distributed computing.
cheers,
Rajesh -
Re : Client for an EJB[ Go to top ]
- Posted by: Jean-Baptiste Nizet
- Posted on: July 27 2000 11:49 EDT
- in response to Kamesh Kiran Mantha Sarvepalli
Should and EJB Client be in the same package as the EJB ?
Of course not. What makes you think this? -
Re : Client for an EJB[ Go to top ]
- Posted by: Kamesh Kiran Mantha Sarvepalli
- Posted on: July 28 2000 06:23 EDT
- in response to Jean-Baptiste Nizet
Okay!
I'll rephrase my question.
If not in the same package, then we need to import the EJB package into the client , right ?
basically if I don't import it in the client, then
I get a compile-time 'not found' error when the home interface or remote interface is being called in the client.
So even if the EJB is on machine X, and my client is on machine Y, then I need to 2 things:
1. Include the ejb-jar in my machine Y classpath
2. Import the EJB package into the client. right ?
Thanks anyway!
Any more inputs are welcome.
-
Re : Client for an EJB[ Go to top ]
- Posted by: Sunil Chandran
- Posted on: July 31 2000 17:36 EDT
- in response to Kamesh Kiran Mantha Sarvepalli
Hi,
I don't think you need to have the entire ejb-jar file under your client directory. You only need to have the home and remote interfaces under your class path..as we are seperating the implementation here thru interfaces..
Sunil.