Tobias wrote:
> I checked all the the .properties files on the remote machine. There was
> one called orb.properties in j2ee.jar . I changed the name of the file
> but got still the same error with my client. The client still seems to
> be trying to connect to localhost. Any other ideas what might be wrong ?

Somewhere there is a jndi.properties file. Do this:
System.out.println(getClass().getResource("/jndi.properties"));
and see if you get a result or not.

> Hey, all you guys out there. How does your code look like for jBoss for
> getting the initial context and looking up an EJB ? Please post some
> exmaples ...

Code? Simple:

MyBeanHome beanHome = (MyBeanHome)new InitialContext().lookup("mybean");

providing that you have a proper jndi.properties file in classpath.

/Rickard

-- 
Rickard �berg

Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to