You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by alex1183 <cr...@gmail.com> on 2013/06/10 09:43:03 UTC

Apache NMS : The connection is already closed

Hello everyone,

I have a problem with my connection server/client :
My project is to make a stomp client in C# with Microsoft Visual C# Express
2010. 
The client must be able to connect to a server Stomp, and then subscribe to
a destination to listen all messages from this destination (See
clientStompFEED_CSharp_lrv.zip).
The libraries that I used as reference are Apache.NMS from
Apache.NMS.Stomp-1.5.3.bin file and Apache.NMS.Stomp from
Apache.NMS.Stomp-1.5.3.src file.

To test this client, I had to implement a simple Stomp server in Java with
Eclipse using the library activemq-all-5.8.0.jar from apache-activemq-5.8.0
file.
I also coded a stomp client in Java, who happens to connect to the Stomp
server java deployed (See STOMP_Java_lrv.zip).

But, when I try to connect my client C# to server Java, the error
Apache.NMS.Stomp.ConnectionClosedException :“The connection is already
closed” occurs.
<http://activemq.2283324.n4.nabble.com/file/n4668045/screen_connectionalreadyclosed.bmp> 

My two projects are attachments so that you can take a look.
clientStompFEED_CSharp_lrv.zip
<http://activemq.2283324.n4.nabble.com/file/n4668045/clientStompFEED_CSharp_lrv.zip>  
STOMP_Java_lrv.zip
<http://activemq.2283324.n4.nabble.com/file/n4668045/STOMP_Java_lrv.zip>  
librairie_client_apache.zip
<http://activemq.2283324.n4.nabble.com/file/n4668045/librairie_client_apache.zip>  



--
View this message in context: http://activemq.2283324.n4.nabble.com/Apache-NMS-The-connection-is-already-closed-tp4668045.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Apache NMS : The connection is already closed

Posted by Timothy Bish <ta...@gmail.com>.
On 06/10/2013 03:43 AM, alex1183 wrote:
> Hello everyone,
>
> I have a problem with my connection server/client :
> My project is to make a stomp client in C# with Microsoft Visual C# Express
> 2010.
> The client must be able to connect to a server Stomp, and then subscribe to
> a destination to listen all messages from this destination (See
> clientStompFEED_CSharp_lrv.zip).
> The libraries that I used as reference are Apache.NMS from
> Apache.NMS.Stomp-1.5.3.bin file and Apache.NMS.Stomp from
> Apache.NMS.Stomp-1.5.3.src file.
>
> To test this client, I had to implement a simple Stomp server in Java with
> Eclipse using the library activemq-all-5.8.0.jar from apache-activemq-5.8.0
> file.
> I also coded a stomp client in Java, who happens to connect to the Stomp
> server java deployed (See STOMP_Java_lrv.zip).
>
> But, when I try to connect my client C# to server Java, the error
> Apache.NMS.Stomp.ConnectionClosedException :“The connection is already
> closed” occurs.
> <http://activemq.2283324.n4.nabble.com/file/n4668045/screen_connectionalreadyclosed.bmp>
>
> My two projects are attachments so that you can take a look.
> clientStompFEED_CSharp_lrv.zip
> <http://activemq.2283324.n4.nabble.com/file/n4668045/clientStompFEED_CSharp_lrv.zip>
> STOMP_Java_lrv.zip
> <http://activemq.2283324.n4.nabble.com/file/n4668045/STOMP_Java_lrv.zip>
> librairie_client_apache.zip
> <http://activemq.2283324.n4.nabble.com/file/n4668045/librairie_client_apache.zip>
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Apache-NMS-The-connection-is-already-closed-tp4668045.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
Do some debugging and see where the exception originates.

-- 
Tim Bish
Sr Software Engineer | RedHat Inc.
tim.bish@redhat.com | www.fusesource.com | www.redhat.com
skype: tabish121 | twitter: @tabish121
blog: http://timbish.blogspot.com/

www.camelone.org : The open source integration conference: