aspose file tools*
The moose likes JBoss/WildFly and the fly likes Jboss complains that our client is not disconnecting cleanly Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Jboss complains that our client is not disconnecting cleanly" Watch "Jboss complains that our client is not disconnecting cleanly" New topic
Author

Jboss complains that our client is not disconnecting cleanly

Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

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?

Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

We were calling getConnection twice, all good now!
Rajkumar Selvam
Greenhorn

Joined: Apr 20, 2009
Posts: 1
You created connection twice with same connection reference object. Please create single connection to publish/subscribe messages.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5779
    
    7

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!


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jboss complains that our client is not disconnecting cleanly
 
Similar Threads
javax.jms.JMSException: Communication exception.
MDB deployment on JBoss
JMS: Problem with Consumer Program
JMS: Problem with Consumer Program
read message from Topic