Thanks for helping. I looked through the FAQ and do not see anything about this issue. I have been reading through many topics and saw several about the hosts file. I added ip conputername and computername ip to the server and client. Didn't help (rebooted after changing). The switch to 1.4 also stopped my web server from sending messages to its app server. The web server is not sending messages to the app server. Rather, it processes them. I'll post separately for that. I can telnet to 1099 and 8093 to the app server from the client. I saw another post http://www.jboss.org/index.html?module=bb&op=viewtopic&t=50427 about to many anonymous client sockets so I closed Context as soon as it was no longer needed. That did not fix it. I have posted below the code and logging from the client. There is no logging on the server. Thanks for the help in figuring this out. This is the code that is fails: public void send() | { | try | { | Logger.debug(s_classname, "send()"); | QueueConnection qconn = JMSMessageUtils.getQueueConnectionFactory().createQueueConnection(); | Logger.debug(s_classname, "send() 1"); //this never logs | QueueSession session = qconn.createQueueSession(false,QueueSession.AUTO_ACKNOWLEDGE); | m_msg = session.createObjectMessage(); | m_msg.setObject(m_object); | JMSMessageUtils.sendAsyncMessage(m_msg,session,m_queue); | session.close(); | qconn.close(); | Logger.debug(s_classname, "~send()"); | } | catch (JMSException e) | { | e.printStackTrace(); | Logger.error(s_classname,"jmsex " + e.getMessage()); | } | catch (Exception e) | { | e.printStackTrace(); | Logger.error(s_classname,"generic ex " + e.getMessage()); | } | }
public static javax.jms.QueueConnectionFactory getQueueConnectionFactory() | throws Exception { | if (USE_JNDI) | { | Logger.debug(s_classname,"getting a QueueConnectionFactory"); | return(javax.jms.QueueConnectionFactory) jndiLookup(QUEUECONFAC); | } | else | { | // return new provider-specific QueueConnectionFactory | return null; | } | } public static Object jndiLookup(String name) throws NamingException | { | Context jndiContext = null; | /* try | { | jndiContext = new InitialContext(); | Object o = jndiContext.lookup(name); | } | catch (NamingException e) | { | Logger.error(s_classname,"Could not create JNDI context: " + | e.getMessage(),e); | throw e; | } | */ | Logger.debug(s_classname,"*** \n\n\nthe name to look up is " + name); | Context ctx = new InitialContext(); | String jndiName = ctx.lookup(JNDINAME).toString(); | Logger.debug(s_classname,"*** \n\n\nThe provider name from jndi is " + jndiName.toString()); | Object obj = null; | Hashtable properties = new Hashtable(); | properties.put(Context.INITIAL_CONTEXT_FACTORY, | "org.jnp.interfaces.NamingContextFactory"); | properties.put(Context.PROVIDER_URL,jndiName); | //"168.71.206.252" + ":1099"); | properties.put(Context.URL_PKG_PREFIXES, "org.jboss.naming"); | //properties.put(Context.SECURITY_AUTHENTICATION,"none"); | ctx.close(); | if (jndiContext == null) | { | try | { | jndiContext = new InitialContext(properties); | Hashtable h = jndiContext.getEnvironment(); | Logger.debug(s_classname,"*** jndicontext created " + jndiContext.SECURITY_AUTHENTICATION +"\n" | + h.toString()); | } | catch (NamingException e) | { | Logger.error(s_classname,"Could not create JNDI context: " + | e.getMessage(),e); | throw e; | } | } | try | { | Logger.debug(s_classname,"Looking up " + name + " in JNDI"); | obj = jndiContext.lookup(name); | Logger.debug(s_classname,"*** obj created with jndicontext\n" | + obj.toString() + "'''''"); | } | catch (NamingException e) | { | Logger.error(s_classname,"JNDI lookup failed: " + e.getMessage(),e ); | throw e; | } | jndiContext.close(); | return obj; | } The logging again: 08:00:37,261 DEBUG [main] [gov.ca.boe.afsp.messages.EfilingAsyncObjectMessageClient] send() setting up logging for gov.ca.boe.afsp.messages.JMSMessageUtils 08:00:37,281 DEBUG [main] [gov.ca.boe.afsp.messages.JMSMessageUtils] getting a QueueConnectionFactory 08:00:37,281 DEBUG [main] [gov.ca.boe.afsp.messages.JMSMessageUtils] *** the name to look up is UIL2ConnectionFactory 08:00:37,781 DEBUG [main] [gov.ca.boe.afsp.messages.JMSMessageUtils] *** The provider name from jndi is 168.71.206.231:1099 08:00:37,781 DEBUG [main] [gov.ca.boe.afsp.messages.JMSMessageUtils] *** jndicontext created java.naming.security.authentication {java.naming.provider.url=168.71.206.231:1099, java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jboss.naming:org.jnp.interfaces} 08:00:37,781 DEBUG [main] [gov.ca.boe.afsp.messages.JMSMessageUtils] Looking up UIL2ConnectionFactory in JNDI 08:00:38,002 DEBUG [main] [gov.ca.boe.afsp.messages.JMSMessageUtils] *** obj created with jndicontext [EMAIL PROTECTED]''''' org.jboss.mq.SpyJMSException: Cannot authenticate user; - nested throwable: (java.net.ConnectException: Connection refus ed: connect) at org.jboss.mq.Connection.authenticate(Connection.java:883) at org.jboss.mq.Connection.(Connection.java:238) at org.jboss.mq.Connection.(Connection.java:315) at org.jboss.mq.SpyConnection.(SpyConnection.java:60) at org.jboss.mq.SpyConnectionFactory.createQueueConnection(SpyConnectionFactory.java:116) at gov.ca.boe.afsp.messages.EfilingAsyncObjectMessageClient.send(Unknown Source) at gov.ca.boe.afsp.messages.CommandLineWorkcaseInvoker.main(Unknown Source) Caused by: java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:169) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:452) at java.net.Socket.connect(Socket.java:402) at java.net.Socket.(Socket.java:309) at java.net.Socket.(Socket.java:153) at javax.net.DefaultSocketFactory.createSocket(DashoA6275) at org.jboss.mq.il.uil2.UILServerIL.createConnection(UILServerIL.java:579) at org.jboss.mq.il.uil2.UILServerIL.getSocketMgr(UILServerIL.java:500) at org.jboss.mq.il.uil2.UILServerIL.authenticate(UILServerIL.java:302) at org.jboss.mq.Connection.authenticate(Connection.java:876) ... 6 more 08:01:00,244 ERROR [main] [gov.ca.boe.afsp.messages.EfilingAsyncObjectMessageClient] jmsex Cannot authenticate user; - nested throwable: (java.net.ConnectException: Connection refused: connect) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842420#3842420 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842420 ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user