Add a <server> to the rmi.xml on the "web" machine, the syntax (from the
docs):
<server host="the.remote.server.com" password="123" port="23791"
username="admin" />
host - Hostname of the remote server.
password - The password to log in with.
port - Port of the remote server, default is 23791.
username - The username to log in with.

Hope it helps. :)

/Magnus Stenman, the Orion team



----- Original Message -----
From: "Montebove Luciano" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Monday, April 17, 2000 4:22 PM
Subject: Servlet/JSP and EJBs on different machines


> Hi,
>
> I was able to use an EJB on a remote machine from a client application
> without any problem setting the right properties into a jndi.properties
file
> as follows:
>
>
java.naming.factory.initial=com.evermind.server.ApplicationClientInitialCont
> extFactory
> java.naming.provider.url=ormi://host/application
> java.naming.security.principal=admin
> java.naming.security.credentials=*****
>
> But I wasn't able to do the same from a servlet or JSP. I tried to put the
> same jndi.properties file in every dir of OrionServer but I get always the
> same javax.naming.NameNotFoundException
>
> What is wrong?
> Which is the correct way to do this?
>
> Any help appreciated
>
> Luciano Montebove
> Finsiel
> [EMAIL PROTECTED]


Reply via email to