Discussion:
unknown
1970-01-01 00:00:00 UTC
Permalink
<BR>
Hashtable env = new Hashtable();
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; env.put(Context.INITIAL_CONTEXT_FACTORY,
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; org.exolab.jms.jndi.InitialContextFactory.class.getName()&nbsp; );
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; env.put(Context.PROVIDER_URL, &quot;rmi://192.168.0.2:1099&quot;);
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<BR>

<BR>
Invoke a sender program, outside of firewall (some computer other than the 2 behind my firewall)&nbsp; which employs the code:
<BR>

<BR>
Hashtable env = new Hashtable();
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; env.put(Context.INITIAL_CONTEXT_FACTORY,
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; org.exolab.jms.jndi.InitialContextFactory.class.getName()&nbsp; );
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; env.put(Context.PROVIDER_URL, &quot;rmi://216.195.1.39:1099&quot;);
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<BR>
connection refused from rmi host
<BR>

<BR>

<BR>
But note that, when sender program is invoked on 192.168.0.2&nbsp; (within the firewall), receiver responds to messages from the sender-- as expected.
<BR>
Also note, that when firewall mapping is disabled, then receiver does not respond to sender-- as
<BR>
expected.
<BR>
And clearly when the jms server is down, then the receiver program gives and exception-- as
<BR>
expected.
<BR>

<BR>
So it is a firewall issue of some sort. Any help would be appreciated. Mr. Mathews had a similar
<BR>
problem. Thanks.
<BR>

<BR>

<BR>

<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
Sincerely,
<BR>

<BR>
Multisegment, Inc.
<BR>
C/O Luke P. Immes, President
<BR>
20 Williamsburg Court, suite 14
<BR>
Shrewsbury, MA&nbsp; 01545
<BR>

<BR>
<A HREF="http://www.multisegment.com">http://www.multisegment.com</A>
<BR>
<A HREF="mailto:***@multisegment.com">***@multisegment.com</A>
<BR>

<BR>
508 579 2683 (cell)
<BR>
508 845 5960 (voice)
</TD>
</TR>
</TABLE>

</BODY>
</HTML>

--=-SFlB0786UPEzWHipXuOH--

Loading...