activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dipoody <>
Subject Unable to write data to the transport connection
Date Mon, 31 Jul 2017 06:04:38 GMT
Hi Team, 

I am getting the following error while try to establish ActiveMQ session
after creating successful connection. 
“Unable to write data to the transport connection: An existing connection
was forcibly closed by the remote host” 

I am using Apache.NMS.ActiveMQ dll for connecting to queue using 

Please find the code snippet used for connecting the queue: 

                connecturi = new Uri(connectionURI); 
                    factory = new NMSConnectionFactory(connecturi); 
                catch (Exception ex) 
                    factory = new
                connection = factory.CreateConnection(); 
                session = connection.CreateSession();
                destination = SessionUtil.GetDestination(session,
"queue://queueName"); //Name of the Queue 
                consumer = session.CreateConsumer(destination); //To consume
the message from MQ         

                IMessage message; 

I am getting exception on the highlighted line(bold). 

Give some inputs to resolve the issue. 

Deepak Varghese 

View this message in context:
Sent from the ActiveMQ - Dev mailing list archive at

View raw message