[JBoss Messaging] - How to browse the DLQ?
by Aurélien Lansmanne
Aurélien Lansmanne [http://community.jboss.org/people/alansmanne] created the discussion
"How to browse the DLQ?"
To view the discussion, visit: http://community.jboss.org/message/585449#585449
--------------------------------------------------------------
Hello,
I've been trying to read the messages from the Jboss DLQ for some times... but without success.
First, i've tried to use a QueueBrowser. I thought it could display the messages in the DLQ as they are stuck there and never received by any client.
Queue DLQueue = ServiceLocator.getInstance().getQueue("queue/DLQ");
QueueConnectionFactory queueConnectionFactory = ServiceLocator.getInstance().getQueueConnectionFactory("ConnectionFactory"); //Service locator is a wrapper that does (QueueConnectionFactory) context.lookup("qConnFactoryName")
QueueConnection queueConnection = queueConnectionFactory.createQueueConnection();
QueueSession queueSession = queueConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
QueueBrowser DLQBrowser = queueSession.createBrowser(DLQueue);
Enumeration<?> dlqEnum = DLQBrowser.getEnumeration();
while (dlqEnum.hasMoreElements()) {
Object object = dlqEnum.nextElement();
// Do something with object
}
queueConnection.close();
But the enumeration is empty...
I've also tried to use the JMX-console. When I click on name=DLQ,service=Queue, then listMessageCounter(), i can see that there are indeed 100 messages in the DLQ. But when I try to browse them :
* listScheduledMessages() : empty ...
* listMessages() : empty...
* listInProcessMessages() : empty...
Then, I tried to open the HSQL database myself with DBVisualizer to browse the JMS_MESSAGES table. But I was only able to see some messages IDS, but not the message itself.
My last option is to use a Message Listener on the DLQ and do all the business to store them somewhere I can easily access... if I can't use any of the previous options.
Any help is appreciated.
Aurélien Lansmanne.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/585449#585449]
Start a new discussion in JBoss Messaging at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 10 months
[jBPM] - display process diagram
by Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion
"display process diagram"
To view the discussion, visit: http://community.jboss.org/message/622889#622889
--------------------------------------------------------------
Hello,
I'm using jbpm5.1 and i noticed that when i add extra nodes to a process, jbpm-console throws an exception (Could not find info for node new_id_of_node of process the_process_id) when trying to display the diagram at the point of reaching the new node.
Has anyone else noticed this??
Basically what happens is that org.jbpm.integration.console.graph.GraphViewerPluginImpl has already initialised kbase variable and within its method getDiagramInfo() ,the kbase does not return the new bpmn diagram containing the new node. Everything else works fine as it is normally updated, except the kbase of this class. If it doesn't happen to anyone else then it's maybe my configs and i apologise.
However if this is the case one possible solution would be to make kbase=null and call getDiagramInfo() after having checked first the bpmn file as is and before throwing the exception i.e. right before line 93 of method getActiveNodeInfo() where the check if (!found) {....}
Any other ideas??
Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/622889#622889]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 10 months