Hi All,
I have a problem in JMS Client lookup. Our present network configuration is

Client <-->NAT<-->NAT<--->Server.

When I try to lookup the Server from my Client I am getting an error like 
connection refused.
But I can able to connect through browser(i.e. http).

In the jndi lookup I specified the NAT address. The code can able to 
communicate the NAT address and able to identify the corresponding local 
Computer IP Address also.But I am getting connection refused exception.
What could be the problem?

My JNDI Lookup Code is
java.util.Properties properties = new java.util.Properties();

properties.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");

properties.put(Context.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interfaces");

properties.put(Context.PROVIDER_URL,"jnp://203.101.41.32:1099");

InitialContext iniCtx = new InitialContext(properties);
Object tmp = iniCtx.lookup("ConnectionFactory");
TopicConnectionFactory tcf = (TopicConnectionFactory) tmp;


I am getting the following error if try to run my client

Exception in thread "main" javax.naming.CommunicationException [Root exception 
is java.rmi.ConnectException: Connection refused to host: 192.168.27.136 
(Internal IP Address)

Do I need to specify anything else?


Thanks


Regards
Maruthi

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3912020#3912020

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3912020


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to