Пример #1
0
 @GET
 @Path("/lookupGlobalEJBOutsideRemote")
 public String lookupGlobalEJBOutsideRemote() throws NamingException {
   EJBOutsideRemote ejbOutside =
       (EJBOutsideRemote)
           new InitialContext()
               .lookup(
                   "java:global/lookup-jndi-ear/lookup-jndi-ear-ejb-impl/EJBOutsideImpl!fr.bdf.center.demo.jndi.outside.EJBOutsideRemote");
   return "Lookup Global EJB Outside Remote : " + ejbOutside.sayHello();
 }
Пример #2
0
 @GET
 @Path("/lookupModuleEJBOutsideRemote")
 public String lookupModuleEJBOutsideRemote() throws NamingException {
   EJBOutsideRemote ejbOutside =
       (EJBOutsideRemote)
           new InitialContext()
               .lookup(
                   "java:module/EJBOutsideImpl!fr.bdf.center.demo.jndi.outside.EJBOutsideRemote");
   return "Lookup App EJB Outside Remote : " + ejbOutside.sayHello();
 }
Пример #3
0
 @GET
 @Path("/injectEJBOutsideRemote")
 public String injectEJBOutsideRemote() {
   return "Inject EJB Outside Remote : " + ejbOutsideRemote.sayHello();
 }