Discussion:
[openjms-developer] no msg ack using .receiveNoWait
Jim
2006-04-25 16:56:25 UTC
Permalink
Hi. I've got a problem where, when the client calls queueReceiver.receiveNoWait
() using session.AUTO_ACKNOWLEDGE, the client receives the msg but it is not
removed from the queue. If I call receiveNoWait() again in the same loop,
OpenJMS won't resend the message I already read, so it knows somehow that I
already received it but it doesn't get deleted. If I close the client and
restart, I'll receive the same msg again. Also, if I use .receive(1) instead of
receiveNoWait(), everything works normally and the msg gets deleted. What gives?

I'm using OpenJMS version 0.7.7-alpha-3 with all the default configs, and the
tcp connector. Everything is running on my local machine.

Thanks.
Jim
Tim Anderson
2006-05-02 23:03:42 UTC
Permalink
Raised as bug 1480739:
https://sourceforge.net/tracker/index.php?func=detail&aid=1480739&group_id=5
4559&atid=474136

I'll try and look at it later in the week.

-Tim
-----Original Message-----
Behalf Of Jim
Sent: Wednesday, 26 April 2006 2:56 AM
Subject: [openjms-developer] no msg ack using .receiveNoWait
Hi. I've got a problem where, when the client calls
queueReceiver.receiveNoWait
() using session.AUTO_ACKNOWLEDGE, the client receives the
msg but it is not removed from the queue. If I call
receiveNoWait() again in the same loop, OpenJMS won't resend
the message I already read, so it knows somehow that I
already received it but it doesn't get deleted. If I close
the client and restart, I'll receive the same msg again.
Also, if I use .receive(1) instead of receiveNoWait(),
everything works normally and the msg gets deleted. What gives?
I'm using OpenJMS version 0.7.7-alpha-3 with all the default
configs, and the tcp connector. Everything is running on my
local machine.
Thanks.
Jim
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to make
your job easier Download IBM WebSphere Application Server
v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&
dat=121642
_______________________________________________
openjms-developer mailing list
https://lists.sourceforge.net/lists/listinfo/openjms-developer
Tim Anderson
2006-05-25 12:02:56 UTC
Permalink
This is now fixed in CVS.
If you want to try it out, you'll have to check out the sources
using the instructions on page:
http://sourceforge.net/cvs/?group_id=54559
As Sourceforge have recently changed the CVS repositories around.

Regards,

Tim
From: Tim Anderson
https://sourceforge.net/tracker/index.php?func=detail&aid=1480
739&group_id=5
4559&atid=474136
I'll try and look at it later in the week.
-Tim
-----Original Message-----
Jim
Sent: Wednesday, 26 April 2006 2:56 AM
Subject: [openjms-developer] no msg ack using .receiveNoWait
Hi. I've got a problem where, when the client calls
queueReceiver.receiveNoWait
() using session.AUTO_ACKNOWLEDGE, the client receives the
msg but it
is not removed from the queue. If I call
receiveNoWait() again in the same loop, OpenJMS won't resend the
message I already read, so it knows somehow that I already
received it
but it doesn't get deleted. If I close the client and restart, I'll
receive the same msg again.
Also, if I use .receive(1) instead of receiveNoWait(), everything
works normally and the msg gets deleted. What gives?
I'm using OpenJMS version 0.7.7-alpha-3 with all the
default configs,
and the tcp connector. Everything is running on my local machine.
Thanks.
Jim
Loading...