Hi,
If you do not need dynamic class loading, you can do: (I use the Op bean
from the examples as an example)
1 ) Place on your client machine the following classes:
Op, OpHome, JOnASOpHome, JOnASOpRemote, JOnASOpHome_Stub, JOnASOpRemote_Stub
and ClientOp.
In addition you will need some base classes from RMI_Jonas.jar, I just place
all of it on the client side (but this is temporary).
2 )Run Both RMIRegistry and EJBServer on machine A as you usually do.
3) On the client side use the -D parameters to specify the location of the
Server machine.
use:
java -Djava.naming.factory.initial=com.sun.jndi.rmi.registry.RegistryContext
Factory -Djava.naming.provider.url rmi://<Server Host
Name>:1099 -Djava.naming.factory.url.pkgs=org.objectweb.jonas.naming
sb.ClientOp
Do not forget to set the Classpath You might need to add the -classpath
%CLASSPATH% flag to the java command.
That's should work.
Erez
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: Tuesday, September 25, 2001 5:31 AM
To: [EMAIL PROTECTED]
Subject: Running server and clients on different machines
Can someone tell me how to run EJBServer and client on
2 different machines? What steps should I do?
what does the address on jndi.properties refer to? is that
suppose to be the address for EJBServer or the address of client?
where to run the RMI registry? is it on the server machine or
client machine?
if it is on the server machine, how the client going to find
the server? do i need to add some Java code on the client side?
if yes, what should i add?
I'm really having trouble with this,Could anyone help me ?
any help will be greatly appreciated.
__________________________________________________________________
Your favorite stores, helpful shopping tools and great gift ideas.
Experience the convenience of buying online with Shop@Netscape!
http://shopnow.netscape.com/
Get your own FREE, personal Netscape Mail account today at
http://webmail.netscape.com/
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".