"asack" wrote : As I stated before and in the FAQ/WIKI, @EJB works within EJB modules, not outside them, i.e. dependency injection from a WAR. The good news is that Servlet spec 2.5 (I think that's the version, i.e. the next one), will add depedency injection notation to WARs but the current release of JBoss doesn't support that.
Cool. After taking a look at Servlet 2.5, I anxiously wait for it. So, for the moment I have to use lookup, which raises another important question. JBoss seems to bind session beans to the name "EARName/BeanName/[remote|local]". However, other application servers use different conventions (some just use "BeanName"). - Is there a way to access the "EARName" from within the application? (This is useful if I decide to reuse a bean in another application). - Is there a way to program an application that is portable across servers with regards to JNDI naming conventions? - Does the EJB specification specify a naming convention? (I guess not). Thank you! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3941077#3941077 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3941077 ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
