Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jboss complains that our client is not disconnecting cleanly

 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

We use a client to manually publish to our JMS servers (Jboss EAP 4.3, no CP's applied) for testing purposes. For some reason we get Jboss complaining that our client is not closing off properly.

e.g.

20090521 11:01:48.253 WARN [Timer-4] SimpleConnectionManager.handleClientFailure(): A problem has been detected with the connection to remote client a3266w-q8u9wf-fuzaly7g-1-fuzalyfg-4, jmsClientID=b-mhylazuf-1-g7ylazuf-fw9u8q-w6623a. It is possible the client has exited without closing its connection(s) or the network has failed. All connection resources corresponding to that client process will now be removed.

The code we use to publish is below:



The logging we get when we publish:

..
..
11:01:08,689 INFO [TPublisher] Publishing [1/1].
11:01:08,700 INFO [TPublisher] ID:JBM-21504
11:01:08,701 INFO [TPublisher] Closed Producer
11:01:08,701 INFO [TPublisher] Cleaning up producer, session and connection.
11:01:08,701 INFO [TPublisher] Closed Producer
11:01:08,703 INFO [TPublisher] Closed Session
11:01:08,704 INFO [TPublisher] Stopped Connection
11:01:08,715 INFO [TPublisher] Closed Connection
11:01:08,715 INFO [TPublisher] Publish Complete

As far as I can tell we’re following best practices with regards to closing everything down, can anyone spot anything we’re doing wrong?
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We were calling getConnection twice, all good now!
 
Rajkumar Selvam
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You created connection twice with same connection reference object. Please create single connection to publish/subscribe messages.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rajkumar, please do not wake the zombies! And especially do not wake them to tell them the same solution that was already posted.
Other than that, welcome to Java Ranch!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic