[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjms-developer
Subject:    RE: [openjms-developer] OpenJms Configuration file question
From:       "Jim Alateras" <jima () comware ! com ! au>
Date:       2003-03-18 2:21:04
[Download RAW message or body]

We need to do this to support scenarios like 2 NICs in the same machine or
if you are using NAT.

cheers
</jima>
  -----Original Message-----
  From: openjms-developer-admin@lists.sourceforge.net
[mailto:openjms-developer-admin@lists.sourceforge.net]On Behalf Of Hsieh,
Chih-Cheng
  Sent: Tuesday, March 18, 2003 2:05 AM
  To: openjms-developer@lists.sourceforge.net
  Subject: [openjms-developer] OpenJms Configuration file question


  Hi



  I am using OpenJms 0.7.4.  I have a client-server Java application, and I
am using OpenJms as the communication channel between them.  My client
application can be run anywhere in the network. And, I start OpenJms server
in the same VM of my Server application.



   Here is what I use for OpenJms configuration.



  <Configuration>

         <!-- Optional. This represents the default configuration  -->

         <ServerConfiguration host="localhost" embeddedJNDI="true"/>



         <!-- Connector is TCP -->

         <Connectors>

               <Connector scheme="tcp">

                      <ConnectionFactories>

                             <QueueConnectionFactory
name="JmsQueueConnectionFactory"/>

                             <TopicConnectionFactory
name="JmsTopicConnectionFactory"/>

                      </ConnectionFactories>

               </Connector>

         </Connectors>





  I found that if I used "localhost" as host inside the ServerConfiguration
tag to start my Server.  My client application that is running on the
different host won't be able to connect to the JNDI service to look up the
connection factory.  If I change "localhost" to the IP address of the host
where my server is running and restarts my Server.  My client application
has no problem to connection to JNDI service and doing JNDI lookup.



  I believe this is a bug.  What I believe is that "localhost" is recorded
in the naming service when the OpenJms server is started.  When the other
application tries to create initialContext and doing JNDI lookup,
 "localhost" is returned as the host name from the naming service.  When the
client try to connection to remote JNDI service using "localhost" as host
address, of course it won't work.



  Is my assumption correct?  If this is a bug, are we planning to fix it in
the future release?





  Thanks,



  Chih-Cheng Hsieh






[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2462.0" name=GENERATOR>
<STYLE>@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
	COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
	COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
	COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
	COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
	COLOR: windowtext; FONT-FAMILY: Arial
}
DIV.Section1 {
	page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV><SPAN class=870411902-18032003><FONT face=Arial color=#0000ff size=2>We 
need to do this to support scenarios like 2 NICs in the same machine or if you 
are using NAT. </FONT></SPAN></DIV>
<DIV><SPAN class=870411902-18032003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=870411902-18032003><FONT face=Arial color=#0000ff 
size=2>cheers</FONT></SPAN></DIV>
<DIV><SPAN class=870411902-18032003><FONT face=Arial color=#0000ff 
size=2>&lt;/jima&gt;</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; \
MARGIN-RIGHT: 0px">  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT \
face=Tahoma   size=2>-----Original Message-----<BR><B>From:</B> 
  openjms-developer-admin@lists.sourceforge.net 
  [mailto:openjms-developer-admin@lists.sourceforge.net]<B>On Behalf Of 
  </B>Hsieh, Chih-Cheng<BR><B>Sent:</B> Tuesday, March 18, 2003 2:05 
  AM<BR><B>To:</B> openjms-developer@lists.sourceforge.net<BR><B>Subject:</B> 
  [openjms-developer] OpenJms Configuration file question<BR><BR></FONT></DIV>
  <DIV class=Section1>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi </SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I am using OpenJms 0.7.4.&nbsp; I 
  have a client-server Java application, and I am using OpenJms as the 
  communication channel between them. &nbsp;My client application can be run 
  anywhere in the network. And, I start OpenJms server in the same VM of my 
  Server application.&nbsp; </SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;Here is what I use for 
  OpenJms configuration.&nbsp; </SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Arial color=blue size=1><SPAN 
  style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: blue; FONT-FAMILY: \
Arial">&lt;</SPAN></FONT><FONT   face=Arial color=maroon size=1><SPAN 
  style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: maroon; FONT-FAMILY: \
Arial">Configuration</SPAN></FONT><FONT   face=Arial color=blue size=1><SPAN 
  style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: blue; FONT-FAMILY: \
Arial">&gt;</SPAN></FONT></P>  <P class=MsoNormal><FONT face=Arial color=black \
size=1><SPAN   style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: black; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   </SPAN></FONT><FONT face=Arial \
color=blue size=1><SPAN   style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: blue; \
FONT-FAMILY: Arial">&lt;!--</SPAN></FONT><FONT   face=Arial color=gray size=1><SPAN 
  style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: gray; FONT-FAMILY: Arial"> 
  Optional. This represents the default configuration&nbsp; </SPAN></FONT><FONT 
  face=Arial color=blue size=1><SPAN 
  style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: blue; FONT-FAMILY: \
Arial">--&gt;</SPAN></FONT></P>  <P class=MsoNormal><FONT face=Arial color=black \
size=1><SPAN   style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: black; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   </SPAN></FONT><B><FONT face=Arial \
color=blue size=1><SPAN   style="FONT-WEIGHT: bold; FONT-SIZE: 8.5pt; BACKGROUND: \
white; COLOR: blue; FONT-FAMILY: Arial">&lt;</SPAN></FONT></B><B><FONT   face=Arial \
color=maroon size=1><SPAN   style="FONT-WEIGHT: bold; FONT-SIZE: 8.5pt; BACKGROUND: \
white; COLOR: maroon; FONT-FAMILY: \
Arial">ServerConfiguration</SPAN></FONT></B><B><FONT   face=Arial color=red \
size=1><SPAN   style="FONT-WEIGHT: bold; FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: \
red; FONT-FAMILY: Arial">   host</SPAN></FONT></B><B><FONT face=Arial color=blue \
size=1><SPAN   style="FONT-WEIGHT: bold; FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: \
blue; FONT-FAMILY: Arial">="</SPAN></FONT></B><B><FONT   face=Arial color=black \
size=1><SPAN   style="FONT-WEIGHT: bold; FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: \
black; FONT-FAMILY: Arial">localhost</SPAN></FONT></B><B><FONT   face=Arial \
color=blue size=1><SPAN   style="FONT-WEIGHT: bold; FONT-SIZE: 8.5pt; BACKGROUND: \
white; COLOR: blue; FONT-FAMILY: Arial">"</SPAN></FONT></B><B><FONT   face=Arial \
color=red size=1><SPAN   style="FONT-WEIGHT: bold; FONT-SIZE: 8.5pt; BACKGROUND: \
white; COLOR: red; FONT-FAMILY: Arial">   embeddedJNDI</SPAN></FONT></B><B><FONT \
face=Arial color=blue size=1><SPAN   style="FONT-WEIGHT: bold; FONT-SIZE: 8.5pt; \
BACKGROUND: white; COLOR: blue; FONT-FAMILY: Arial">="</SPAN></FONT></B><B><FONT   \
face=Arial color=black size=1><SPAN   style="FONT-WEIGHT: bold; FONT-SIZE: 8.5pt; \
BACKGROUND: white; COLOR: black; FONT-FAMILY: Arial">true</SPAN></FONT></B><B><FONT   \
face=Arial color=blue size=1><SPAN   style="FONT-WEIGHT: bold; FONT-SIZE: 8.5pt; \
BACKGROUND: white; COLOR: blue; FONT-FAMILY: Arial">"/&gt;</SPAN></FONT></B></P>  <P \
class=MsoNormal><FONT face=Arial color=black size=1><SPAN   style="FONT-SIZE: 8.5pt; \
BACKGROUND: white; COLOR: black; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>  <P \
class=MsoNormal><FONT face=Arial color=black size=1><SPAN   style="FONT-SIZE: 8.5pt; \
BACKGROUND: white; COLOR: black; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   </SPAN></FONT><FONT face=Arial \
color=blue size=1><SPAN   style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: blue; \
FONT-FAMILY: Arial">&lt;!--</SPAN></FONT><FONT   face=Arial color=gray size=1><SPAN 
  style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: gray; FONT-FAMILY: Arial"> 
  Connector is TCP </SPAN></FONT><FONT face=Arial color=blue size=1><SPAN 
  style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: blue; FONT-FAMILY: \
Arial">--&gt;</SPAN></FONT></P>  <P class=MsoNormal><FONT face=Arial color=black \
size=1><SPAN   style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: black; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   </SPAN></FONT><FONT face=Arial \
color=blue size=1><SPAN   style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: blue; \
FONT-FAMILY: Arial">&lt;</SPAN></FONT><FONT   face=Arial color=maroon size=1><SPAN 
  style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: maroon; FONT-FAMILY: \
Arial">Connectors</SPAN></FONT><FONT   face=Arial color=blue size=1><SPAN 
  style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: blue; FONT-FAMILY: \
Arial">&gt;</SPAN></FONT></P>  <P class=MsoNormal><FONT face=Arial color=black \
size=1><SPAN   style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: black; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   \
</SPAN></FONT><FONT face=Arial color=blue size=1><SPAN   style="FONT-SIZE: 8.5pt; \
BACKGROUND: white; COLOR: blue; FONT-FAMILY: Arial">&lt;</SPAN></FONT><FONT   \
face=Arial color=maroon size=1><SPAN   style="FONT-SIZE: 8.5pt; BACKGROUND: white; \
COLOR: maroon; FONT-FAMILY: Arial">Connector</SPAN></FONT><FONT   face=Arial \
color=red size=1><SPAN   style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: red; \
FONT-FAMILY: Arial">   scheme</SPAN></FONT><FONT face=Arial color=blue size=1><SPAN 
  style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: blue; FONT-FAMILY: \
Arial">="</SPAN></FONT><FONT   face=Arial color=black size=1><SPAN 
  style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: black; FONT-FAMILY: \
Arial">tcp</SPAN></FONT><FONT   face=Arial color=blue size=1><SPAN 
  style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: blue; FONT-FAMILY: \
Arial">"&gt;</SPAN></FONT></P>  <P class=MsoNormal><FONT face=Arial color=black \
size=1><SPAN   style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: black; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></FONT><FONT face=Arial color=blue   \
size=1><SPAN   style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: blue; FONT-FAMILY: \
Arial">&lt;</SPAN></FONT><FONT   face=Arial color=maroon size=1><SPAN 
  style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: maroon; FONT-FAMILY: \
Arial">ConnectionFactories</SPAN></FONT><FONT   face=Arial color=blue size=1><SPAN 
  style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: blue; FONT-FAMILY: \
Arial">&gt;</SPAN></FONT></P>  <P class=MsoNormal><FONT face=Arial color=black \
size=1><SPAN   style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: black; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
  </SPAN></FONT><FONT face=Arial color=blue size=1><SPAN 
  style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: blue; FONT-FAMILY: \
Arial">&lt;</SPAN></FONT><FONT   face=Arial color=maroon size=1><SPAN 
  style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: maroon; FONT-FAMILY: \
Arial">QueueConnectionFactory</SPAN></FONT><FONT   face=Arial color=red size=1><SPAN 
  style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: red; FONT-FAMILY: Arial"> 
  name</SPAN></FONT><FONT face=Arial color=blue size=1><SPAN 
  style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: blue; FONT-FAMILY: \
Arial">="</SPAN></FONT><FONT   face=Arial color=black size=1><SPAN 
  style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: black; FONT-FAMILY: \
Arial">JmsQueueConnectionFactory</SPAN></FONT><FONT   face=Arial color=blue \
size=1><SPAN   style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: blue; FONT-FAMILY: \
Arial">"/&gt;</SPAN></FONT></P>  <P class=MsoNormal><FONT face=Arial color=black \
size=1><SPAN   style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: black; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
  </SPAN></FONT><FONT face=Arial color=blue size=1><SPAN 
  style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: blue; FONT-FAMILY: \
Arial">&lt;</SPAN></FONT><FONT   face=Arial color=maroon size=1><SPAN 
  style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: maroon; FONT-FAMILY: \
Arial">TopicConnectionFactory</SPAN></FONT><FONT   face=Arial color=red size=1><SPAN 
  style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: red; FONT-FAMILY: Arial"> 
  name</SPAN></FONT><FONT face=Arial color=blue size=1><SPAN 
  style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: blue; FONT-FAMILY: \
Arial">="</SPAN></FONT><FONT   face=Arial color=black size=1><SPAN 
  style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: black; FONT-FAMILY: \
Arial">JmsTopicConnectionFactory</SPAN></FONT><FONT   face=Arial color=blue \
size=1><SPAN   style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: blue; FONT-FAMILY: \
Arial">"/&gt;</SPAN></FONT></P>  <P class=MsoNormal><FONT face=Arial color=black \
size=1><SPAN   style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: black; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
  </SPAN></FONT><FONT face=Arial color=blue size=1><SPAN 
  style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: blue; FONT-FAMILY: \
Arial">&lt;/</SPAN></FONT><FONT   face=Arial color=maroon size=1><SPAN 
  style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: maroon; FONT-FAMILY: \
Arial">ConnectionFactories</SPAN></FONT><FONT   face=Arial color=blue size=1><SPAN 
  style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: blue; FONT-FAMILY: \
Arial">&gt;</SPAN></FONT></P>  <P class=MsoNormal><FONT face=Arial color=black \
size=1><SPAN   style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: black; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   \
</SPAN></FONT><FONT face=Arial color=blue size=1><SPAN   style="FONT-SIZE: 8.5pt; \
BACKGROUND: white; COLOR: blue; FONT-FAMILY: Arial">&lt;/</SPAN></FONT><FONT   \
face=Arial color=maroon size=1><SPAN   style="FONT-SIZE: 8.5pt; BACKGROUND: white; \
COLOR: maroon; FONT-FAMILY: Arial">Connector</SPAN></FONT><FONT   face=Arial \
color=blue size=1><SPAN   style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: blue; \
FONT-FAMILY: Arial">&gt;</SPAN></FONT></P>  <P class=MsoNormal><FONT face=Arial \
color=black size=1><SPAN   style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: black; \
FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   </SPAN></FONT><FONT \
face=Arial color=blue size=1><SPAN   style="FONT-SIZE: 8.5pt; BACKGROUND: white; \
COLOR: blue; FONT-FAMILY: Arial">&lt;/</SPAN></FONT><FONT   face=Arial color=maroon \
size=1><SPAN   style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: maroon; \
FONT-FAMILY: Arial">Connectors</SPAN></FONT><FONT   face=Arial color=blue \
size=1><SPAN   style="FONT-SIZE: 8.5pt; BACKGROUND: white; COLOR: blue; FONT-FAMILY: \
Arial">&gt;</SPAN></FONT></P>  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I found that if I used \
&#8220;localhost&#8221;   as host inside the <FONT color=maroon><SPAN 
  style="BACKGROUND: white; COLOR: \
maroon">ServerConfiguration</SPAN></FONT></SPAN></FONT><FONT   face=Arial \
color=maroon size=1><SPAN   style="FONT-SIZE: 8.5pt; COLOR: maroon; FONT-FAMILY: \
Arial">   </SPAN></FONT><FONT face=Arial color=black size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial">tag</SPAN></FONT><FONT 
  face=Arial color=maroon size=1><SPAN 
  style="FONT-SIZE: 8.5pt; COLOR: maroon; FONT-FAMILY: Arial"> 
  </SPAN></FONT><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">to start my Server. 
  </SPAN></FONT><FONT face=Arial color=maroon size=1><SPAN 
  style="FONT-SIZE: 8.5pt; COLOR: maroon; FONT-FAMILY: \
Arial">&nbsp;</SPAN></FONT><FONT   face=Arial color=black size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial">My client 
  application that is running on the different host won&#8217;t be able to connect to \
  the JNDI service to look up the connection factory.&nbsp; If I change 
  &#8220;localhost&#8221; to the IP address of the host where my server is running \
and   restarts my Server.&nbsp; My client application has no problem to connection 
  to JNDI service and doing JNDI lookup.&nbsp; &nbsp;</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=black size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Arial color=black size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial">I believe this is a 
  bug.&nbsp; What I believe is that &#8220;localhost&#8221; is recorded in the naming \
  service when the OpenJms server is started.&nbsp; When the other application 
  tries to create initialContext and doing JNDI lookup, &#8220;localhost&#8221; is \
returned   as the host name from the naming service.&nbsp; When the client try to 
  connection to remote JNDI service using &#8220;localhost&#8221; as host address, of \
course   it won&#8217;t work.</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=black size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Arial color=black size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial">Is my assumption 
  correct?&nbsp; If this is a bug, are we planning to fix it in the future 
  release?</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=black size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Arial color=black size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Arial color=black size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial">Thanks,</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=black size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Arial color=black size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial">Chih-Cheng 
  Hsieh</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: \
Arial"></SPAN></FONT>&nbsp;</P></DIV></BLOCKQUOTE></BODY></HTML>


-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
openjms-developer mailing list
openjms-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openjms-developer

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic