[jboss-user] [JNDI and Naming] - Re: EJB 3.1 Global JNDI names

erik romson do-not-reply at jboss.com
Wed Oct 5 08:27:49 EDT 2011


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]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20111005/0fe00b83/attachment.html 


More information about the jboss-user mailing list