Is there a way to determine the JNDI name of a session bean programatically, given the
interface (@Local or @Remote) it implements?
I'm trying to set up an EJB injector interceptor for struts 2, and I don't want to
hardcode EJB JNDI names either in the annotations or in a configuration file. Since JBoss
is able to determine what JNDI name corresponds to an interface, I should be able to get
JBoss to do it for me, but I don't know where to look.
My struts app is packaged inside a WAR which may or may not be packaged inside an EAR,
depending on what environment it's being deployed to (Dev environment is "less
packaged" than testing or production, for ease of modification). The whole pile runs
on JBoss 4.2.0.GA. Any suggestions would be more than appreciated.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049884#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...