You need to put some properties in the InitialContext(....), i.e. the host, port ....
See wiki pages, documentation and tutorials for your JBoss version
Reply to this message by going to Community
Start a new discussion in JNDI and Naming at Community