erik romson [http://community.jboss.org/people/romson] created the discussion

"Re: EJB 3.1 Global JNDI names"

To view the discussion, visit: http://community.jboss.org/message/630208#630208

--------------------------------------------------------------
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
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/630208#630208]

Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2083]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to