[jboss-user] [JBoss Messaging] - Re: ERROR: Cannot find delivery to cancel
noxis
do-not-reply at jboss.com
Fri Jul 27 11:24:58 EDT 2007
"timfox" wrote : Can you please give instructions on how to replicate?
1. Queue with RedeliveryDelay = 5000
2. MDB
config:
| @MessageDriven(activationConfig = {
| @ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Queue"),
| @ActivationConfigProperty(propertyName="destination", propertyValue="queue/queueName"),
| @ActivationConfigProperty(propertyName="maxSession", propertyValue="1")
| })
|
onMessage():
| try {
| SocketAddress sockAddr = new InetSocketAddress(InetAddress.getByName(123.123.123.123), 1234);
| Socket sock = new Socket();
| sock.setSoTimeout(0);
| sock.setTcpNoDelay(true);
| sock.connect(sockAddr, 40000);
| } catch (Throwable te) {
| log.error("Stack trace:", te);
| mdc.setRollbackOnly();
| }
|
3. Stateless Bean with xxx() method which inserts something into the queue.
4. Client which calls xxx() in a loop:
| TestJBM t = (TestJBM) (new InitialContext()).lookup("TestJBMBean/remote");
| while (true) {
| t.xxx();
| Thread.sleep(20000);
| }
|
After 2 minutes I have errors mentioned in a first post.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068263#4068263
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068263
More information about the jboss-user
mailing list