Search code examples
eclipsejndijboss7.x

How to setup JNDI name for JBOSS


I have used EJB and have started it on JBOSS Server. I want to test this app so I will use a client to access this. But, I don't know how to set JNDI name for this server.

Please help me.


Solution

  • Unless until different hostname or ipaddress is specified using -b option while starting server. EJB or JBoss JNDI objects can be accessed over localhost on same machine.

    Please refer following links which might help you

    https://community.jboss.org/wiki/AccessEJBsRemotely

    https://community.jboss.org/wiki/NamingContextFactory