File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Pending Messages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Pending Messages" Watch "Pending Messages" New topic

Pending Messages

Nidhi Juneja

Joined: Oct 07, 2002
Posts: 27
Hi All,
Need to have some clarification on the acknowledge-mode.
In my application I have a MDB which publishes to a topic ( say TOPIC-A ).
While creating the TopicSession I pass the acknowledgement mode as Session.AUTO_ACKNOWLEDGE and I commit the session after publishing.
The MDB is container managed transaction.

There are 2 subscribers of this topic
1) MDB (which also has container managed transaction )and 2) JMS Subscriber

When I look in weblogic console for the details for TOPIC-A, it increments the 'Message Pending' everytime I send a message, although i can see all the messages being consumed and none is lost. And as per BEA
Pending means the message could have been:
* sent in a transaction but not committed.
* received and not acknowledged.
* received and not committed.
* subject to a redelivery delay (as of WebLogic JMS 6.1 or later).
* subject to a delivery time (as of WebLogic JMS 6.1 or later).

Can anybody shed some light on why it is happening.
I agree. Here's the link:
subject: Pending Messages
It's not a secret anymore!