1 Reply Latest reply on Oct 28, 2006 12:05 AM by jaikiran pai

    Problem deployment EJB Local

    arjun kumar Newbie

      Hi,
      I am trying to deploy EJB using local interfaces. EJB gets deployed however the local name is not what I have specified in the LocalHome Interface. I want ejb to be deployed with RFPLocal whereas they are getting deployed with the name lo
      cal/RFP@26794447
      Given below is the code of local home interface

      public interface RFPLocalHome
       extends javax.ejb.EJBLocalHome
      {
       public static final String COMP_NAME="java:comp/env/ejb/RFPLocal";
       public static final String JNDI_NAME="RFPLocal";
      
       public com.secureebill.ejb.dao.RFPLocal create()
       throws javax.ejb.CreateException;
      
      }
      
      


      JBoss Trace shows following information


      13:32:33,687 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'RFP' to jndi 'lo
      cal/RFP@26794447'



      Any help will be appreciated.
      Regards,


        • 1. Re: Problem deployment EJB Local
          jaikiran pai Master

          Mentioning the JNDI_NAME in your RFPLocalHome.java is of no use as far the application server is concerned. You will have to make an appropriate entry in the jboss.xml, specifying the JNDI name for the bean. Have you done that? The jboss.xml dtd will provide you more details as to how to specify the jndi name for the ejb.