2 Replies Latest reply on Dec 28, 2011 4:10 AM by pushpak1981

    Jboss7.1 local EJB lookup problem

    pushpak1981 Novice

      We are trying to lookup for an Local EJB in JBoss7.1, but we get an ClassCast Exception. This local lookup is between the same Server:

       

      java.lang.ClassCastException: org.jboss.ejb.client.naming.ejb.EjbNamingContext cannot be cast to com.transaction.ITransaction

       

      We are doing a lookup for the following JNDI name :

       

      ejb:APP/TransactionBean!com.transaction.TransactionLocal

       

      InitialContext context = new InitialContext();

      context.lookup(ejb:APP/TransactionBean!com.transaction.TransactionLocal);

       

      Is there any other configuration missing from our side. I read about ejb-client.properties do we need this file ? or its only for remote lookups?