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]
- [jBoss-User] client doesnt run on remote machine Tobias
- Re: [jBoss-User] client doesnt run on remote machine Juha-P Lindfors
- Re: [jBoss-User] client doesnt run on remote mach... Rickard �berg
- Re: [jBoss-User] client doesnt run on remote ... Juha-P Lindfors
- Re: [jBoss-User] client doesnt run on remote ... Juha-P Lindfors
- Re: [jBoss-User] client doesnt run on rem... Rickard �berg
- RE: [jBoss-User] client doesnt run o... marc fleury
- Re: [jBoss-User] client doesnt run on remote ... Juha-P Lindfors
- Re: [jBoss-User] client doesnt run on remote ... Tobias
- RE: [jBoss-User] client doesnt run on rem... Rickard �berg
- RE: [jBoss-User] client doesnt run on remote machine Tobias Frech
- RE: [jBoss-User] client doesnt run on remote machine Greg Pierce
- [jBoss-User] HELP ! client doesnt run on remote m... Tobias
- Re: [jBoss-User] HELP ! client doesnt run on ... Rickard �berg
- Re: [jBoss-User] HELP ! client doesnt run... Tobias
- RE: [jBoss-User] HELP ! client doesn... marc fleury
- Re: [jBoss-User] HELP ! client doesn... Rickard �berg
- RE: [jBoss-User] HELP ! client d... marc fleury
