InitialContext ctx = new InitialContext();
if( jndiURL == null )
jndiURL = "jnp://" + System.getProperty("jboss.bind.address", "localhost") + ":1100/nextgen_StatelessSession";
StatelessSessionHome home = (StatelessSessionHome) ctx.lookup(jndiURL);
StatelessSession session = home.create();
session.callBusinessMethodA();
System.out.println("end testColocation");
}
catch (Exception ex)
{
ex.printStackTrace();