There is a way but I am not familiar with it so guess some RMI expert will have to answer it :-(
 
Erez
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of SG
Sent: Wednesday, August 08, 2001 9:24 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Still have problem with not using config_env

Wow, are you serious? I actually need the stubs on my client's computer? I thought RMI could send the stubs across the network? (I am new to RMI) I may be completely missing this though. So, then are you saying that everytime I deploy a bean, I have to give the stubs to a client? (Whether that be JSP, another EJB server on another comp. or some other company's app)
 
Thanks for the reply. If there is no way to send the stub across RMI, then this solves alot of questions but not problems. (What about dynamic class loading with RMI? Is there a way for the client to try the call, and then if it doesn't have the stub, to ask the RMI Registry to send the stub?)
 
Robert
----- Original Message -----
From: Erez Nahir
Sent: Wednesday, August 08, 2001 1:58 AM
Subject: RE: Still have problem with not using config_env

Hi SG,
 
The reason you are facing the problem is not jndi parameters which configured correctly.
The point is that your client does not have the CabinBean's stubs as well as the home and remote interfaces.
What you need to do is:
After you run GenIC, copy the *_Stub classes and the Home and Remote Interface to your client machine and add it to your classpath this should solve your problem. However, you will still need some classes which located on RMI_Jonas.jar file so you can either set it in your classpath or just get the missing classes from it and put them in the classpath.
 
Regards,
Erez
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of SG
Sent: Wednesday, August 08, 2001 8:22 AM
To: [EMAIL PROTECTED]
Subject: Still have problem with not using config_env

SORRY, Sent messed up message. I DID change the URL to mine! The problem still exists.
 
-------------------------------
 
How do i get my client to see the beans without calling "config_env"? I did what Markus suggested:
 
java -Djava.naming.factory.initial=com.sun.jndi.rmi.registry.RegistryContextFactory -Djava.naming.provider.url=rmi://localhost:1099 -Djava.naming.factory.url.pkgs=org.objectweb.jonas.naming   MyClient
 
But every time I get the error that it can't find the class JonasCabinBeanHome_Stub. (CabinBean is my bean).
 
It works if I run config_env.
 
How can I get it to run without needing config_env?
 

Reply via email to