2 Replies Latest reply on Jul 22, 2009 2:33 AM by anil kumar

    Issue with LocalEJB in JBOSS

    anil kumar Newbie

      I created a local EJB with
      @Stateless (mappedName="ejb/PersonSequenceEJB")
      @Remote (SequenceEJBRemote.class)
      @Local (SequenceEJBLocal.class)

      @Resource( name="jdbc/SEQDataSource",
      mappedName="jdbc/PersonSequenceDataSource" )

      public class SequenceEJB implements SequenceEJBRemote, SequenceEJBLocal {}

      when i look up this ejb, its giving ClassCast Exception.

      mseqLocal = (SequenceEJBLocal) init.lookup(JNDINames.EJB_SEQUENCE);

      I am suspecting that in context, there is no Local EJB it has only remote EJB. This works well in Glassfish. I want to make work with All the App server.

      with this syntax we don't have to write any <ejb-local-ref> glassfish, could you please suggest me the solution in JBOSS