0 Replies Latest reply on Jan 17, 2014 9:00 AM by THIRUPATHIREDDY VAJJALA

    EJB lookup from tomcat6 to the Jboss6.1.0 eap

    THIRUPATHIREDDY VAJJALA Newbie

      please help for the jndi lookup for with remote ejb interface.

       

      my ejb services are deployed into local machine  under servies.ear file .   

      one web application deployed as an war file which is deployed in tomcat in the same machine. 

       

      when i trying to lookup below three ways but it is failed .

       

      Properties jndiProps = new Properties();

        jndiProps.put(Context.INITIAL_CONTEXT_FACTORY,

        "org.jboss.naming.remote.client.InitialContextFactory");

        jndiProps.put(Context.PROVIDER_URL, "remote://localhost:4447");

        // This is an important property to set if you want to do EJB

        // invocations via the remote-naming project

        jndiProps.put("jboss.naming.client.ejb.context", true);

        Context context = new InitialContext(jndiProps);

       

       

      and lookup done following ways

       

      java:global/tria-services/tria-utility/MailServiceBean!com.triabeauty.enterprise.service.endpoint.remote.MailServiceRemote

       

      java:jboss/exported/tria-services/tria-utility/MailServiceBean!com.triabeauty.enterprise.service.endpoint.remote.MailServiceRemote

       

      ejb:tria-services/product-catalog/ProductCatalogServiceBean!com.triabeauty.enterprise.service.endpoint.remote.ProductCatalogServiceRemote

       

       

      but service console it is giving

      below error

      19:06:51,342 ERROR [org.jboss.remoting.remote.connection] (Remoting "trvajjala-lptp" read-1) JBREM000200: Remote connection failed: java.io.IOExceptio

      n: An established connection was aborted by the software in your host machine

      19:06:51,344 ERROR [org.jboss.remoting.remote.connection] (Remoting "trvajjala-lptp" read-1) JBREM000200: Remote connection failed: java.io.IOExceptio

      n: An established connection was aborted by the software in your host machine

      19:06:51,345 ERROR [org.jboss.remoting.remote.connection] (Remoting "trvajjala-lptp" read-1) JBREM000200: Remote connection failed: java.io.IOExceptio

      n: An established connection was aborted by the software in your host machine

       

      and the client it is giving error

       

      jboss is not bound in this Context

       

      global is not bound in this Context

       

       

      do we need any additional configuration  in tomcat/jboss6 is there any other way to lookup in  localhost

       

       

      security realms removed 

       

           <subsystem xmlns="urn:jboss:domain:remoting:1.1">

                  <connector name="remoting-connector" socket-binding="remoting"/>

              </subsystem>

       

      please help me on this asap