1 Reply Latest reply on Mar 2, 2016 3:09 AM by sharkbite

    How do I call or lookup an EJB from within a rar?

    sharkbite

      Hi

       

       

      I am trying to lookup an EJB within a rar file, from

      the Connection class that implements the physical connection?

       

       

      I get the following a null-pointer exception when using @EJB  and

       

       

        try {

        Context context = new InitialContext();

       

        cardStatusService = (CardStatusLocal) context.lookup("java:global/f...");

       

        response.setText(text +" # of card status:" + cardStatusService.total());

       

       

      Why is this happening?

       

      thanks,

      Daslan