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";
it is tied into global jndi with [module name]/[EJB Name]!no-interface