aspose file tools*
The moose likes JBoss/WildFly and the fly likes Consumer theads no longer exist Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Consumer theads no longer exist" Watch "Consumer theads no longer exist" New topic
Author

Consumer theads no longer exist

Abhishek Kumar
Ranch Hand

Joined: Dec 19, 2005
Posts: 52
The MDBean which acts as a message consumer in the JMS architecture seems to have died in our JBOSS.

Our JBOSS is running in production.

Basically we observed there is a huge lot of requests pending for the concerned MDBeans to pick up. We observed that the Request dispatcher is correctly sending the data to the concerned queue but then the corresponding MDBean's onMessage method is never invoked. Later we came to know that this consumer or MD Bean does not exist at all.

The concerned MDBean was working fine which all of a sudden seemed to have died as the "listThreadCpuUtilization" method in Server-info of JMX-console does not show the existence of the concerned MDBean or the message consumer.

Now we have lot of pending requests to be processed by this consumer as the pool size of this MDBean was mentioned to be huge. We can restart the jboss to let the things work normally but then it is not allowed.

Some how we need to restart this consumer which seems to have died or non-existant without restarting the jboss. A sample java client accessing these consumers and starting them again will also be handy

Any suggestions or help?


Thanks and Regards,

Abhishek Kumar
Software developer (Apps),
Arbor Networks.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

Try redeploying the MDB. You might have to undeploy, wait until the hot deployer runs, and then redeploy.


JBoss In Action
Abhishek Kumar
Ranch Hand

Joined: Dec 19, 2005
Posts: 52
Hi peter,


How to redeploy one single MDBean out of the whole lot without restarting the server. Can we do it or do you mean to do it from an outside java client.



Regards,
Abhishek
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

You would need to redeploy the app that contains the MDB. There is no way to repdeploy a single MDB (unless it in its own JAR file).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Consumer theads no longer exist