1 Reply Latest reply on Dec 28, 2013 9:00 AM by wdfink

    ejb JNDI configuration - Jboss 6.1 eap

    hm8895

      Hi,

       

      I am trying to configure ejb jndi configuration for jboss 6.1 eap. which configuration file that I need to use standalone.xml or persistence.xml ? (Please provide an example code block, if available)

       

      Here is my old configurations for Jboss 4.1:

       

      Jboss-web.xml

      <jboss-web>

          <ejb-ref>

              <ejb-ref-name>ejb/ESBProxy</ejb-ref-name>

              <jndi-name>AvESBProxyBean/local</jndi-name>

          </ejb-ref>

      </jboss-web>

       

      Web.xml:

      <ejb-ref>

              <ejb-ref-name>ejb/ESBProxy</ejb-ref-name>

              <ejb-ref-type>Session</ejb-ref-type>

              <home>com.av.mobile.ejb3.AvESBProxy</home>

              <remote>com.av.mobile.ejb3.AvESBProxyRemote</remote>

              <mapped-name>MyProxy</mapped-name>

          </ejb-ref>

       

      Code block that referes:

      (AvESBProxy) ctx.lookup("AvESBProxyBean/local");

       

      AvESBProxy class code:

      @Local

      public interface AvESBProxy {

          public String executeSimpleJsonService(String service, String endpoint,

              String inXsl, String outXsl, String json) throws Exception;

       

          public java.lang.String executeSimpleXmlService(String service,

              String endpoint, String inXsl, String outXsl, String xml)

              throws Exception;

      }

       

      Please let me know where do I need to do the ejb jndi configuration in Jboss eap 6.1

       

      Thanks,

      Harish Maridi

        • 1. Re: ejb JNDI configuration - Jboss 6.1 eap
          wdfink

          I'm not sure what you are doing. From the xml it look like EJB2 but your names are EJB3.

          I don't understand why you use XML if you have EJB3 beans, you might use the @EJB annotation to reference your beans without XML.

          1 of 1 people found this helpful