Note that there are some explanatory texts on larger screens.

plurals
  1. POJboss5.01GA RMI EJB3.0
    primarykey
    data
    text
    <p>I have a cloud instance where i have installed Jboss5.0.1GA server. Server instance contains a Public ip and a natted Ip Address. I have run Jboss server using -b with ip(natted) address and web url is working fine. Now i am creating Java external client to access EJB3 bean which is deployed in Jboss server where i am getting the exception and trying solution using google which is not helped my case. Find below code which tells what i am using in external client to access EJB3. </p> <pre><code> properties = new Properties(); properties.load(stream); // Set the context Hashtable ht = new Hashtable(); ht.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); ht.put(Context.PROVIDER_URL,"public ip address"); ht.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces"); // Find and create a reference to the bean using JNDI context = new InitialContext(ht); </code></pre> <p>While executing it localhost its working fine. While connecting remote throwing below exception. "javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: ". Can anyone help me on the same.</p> <p>`This is my connector file(ejb3-connectors-jboss-beans.xml). <p>EJB3 Connectors</p> <p>--></p> <p></p> <p> <pre><code>JBoss Remoting Connector Note: Bean Name "org.jboss.ejb3.RemotingConnector" is used as a lookup value; alter only after checking java references to this key. </code></pre> <p>--> </p> <pre><code>&lt;property name="invokerLocator"&gt; &lt;value-factory bean="ServiceBindingManager" method="getStringBinding"&gt; &lt;parameter&gt; jboss.remoting:type=Connector,name=DefaultEjb3Connector,handler=ejb3 &lt;/parameter&gt; &lt;parameter&gt; &lt;null /&gt; &lt;/parameter&gt; &lt;parameter&gt;socket://${jboss.bind.address}:${port}&lt;/parameter&gt; &lt;parameter&gt; &lt;null /&gt; &lt;/parameter&gt; &lt;parameter&gt;3873&lt;/parameter&gt; &lt;/value-factory&gt; &lt;/property&gt; &lt;property name="serverConfiguration"&gt; &lt;inject bean="ServerConfiguration" /&gt; &lt;/property&gt; </code></pre> <p></p> <p> AOP org.jboss.aspects.remoting.AOPRemotingInvocationHandler </p> <p>`</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload