@GET @Path("/lookupGlobalEJBInside") public String lookupGlobalEJBInside() throws NamingException { EJBInside ejbInside = (EJBInside) new InitialContext() .lookup( "java:global/lookup-jndi-web/EJBInside!fr.bdf.center.demo.jndi.inside.EJBInside"); return "Lookup Global EJB Inside : " + ejbInside.sayHello(); }
@GET @Path("/injectEJBInside") public String injectEJBInside() { return "Inject EJB Inside : " + ejbInside.sayHello(); }