You do not have to change your code to access RMIRegistry. RMIRegistry is a service that has to run on the same machine as JOnAS - and only there. Every client has to access RMIRegistry on that machine, that means you have to tell every client to access that machine. You have to set the correct values in some properties before trying to connect the registry from the client: java.naming.factory.initial com.sun.jndi.rmi.registry.RegistryContextFactory java.naming.provider.url rmi://192.168.0.15:1099 java.naming.factory.url.pkgs org.objectweb.jonas.naming You can do this with several ways, e. g. with a properties file as JOnAS does (jndi.properties) what would be most flexible for the end user, or you can provide -D command line switches with java.exe, or you can put it inside of your client startup code with System.setProperty(). Be sure to change java.naming.provider.url to the IP address or hostname of that machine that is running RMIRegistry. HTH Markus ----- Original Message ----- From: "Shout Graphics -- Design" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 02, 2001 7:58 PM Subject: Re: What does %1 %2 etc mean in the EJBServer.bat? > yep it does. Thanks! > > Hey, I have another question if you have a few minutes: > > Do you know how to connect directly to the JOnAS RMIRegistry? I am currently > doing: > > Context ctx = new InitialContext(); > > the problem with that is it only works on the same computer. If I want a > client to be able to access it from elsewhere, how will they find my > regitry? > > I think it is something like: > > Properties props = new Properties(); > > props.put(<put the URI for the registry); > props.put(<other info>); > > Context ctx = new InitialContext(props); > > Do you know what I put in there? > > Thanks! > > Robert > > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp > ---- 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".
