As this is used in testing, I did this
Stateless stateless= sessionType.getAnnotation(Stateless.class);
String moduleName=sessionType.getProtectionDomain().getCodeSource().getLocation().getPath();
moduleName=moduleName.replace('\\','/');
moduleName=moduleName.substring(moduleName.lastIndexOf('/'),moduleName.length());
String name=moduleName+"/"+stateless.name()+"!no-interface";
and use name for the jndi lookup
it is tied into global jndi with [module name]/[EJB Name]!no-interface
I've just upgraded to JBoss 6.1.0 AS Final and trying to do a global lookup from a remote standalone application.
I am still getting the same exceptions as reported previously "global not bound".
Is this still an issue?