1 Reply Latest reply on Dec 28, 2013 9:00 AM by Wolf-Dieter Fink

    ejb JNDI configuration - Jboss 6.1 eap

    Harish Maridi Newbie

      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