This content has been marked as final.
Show 2 replies
-
1. Re: Persistent messages not being deleted
flindet Nov 23, 2004 2:47 PM (in response to flindet)Here is my ejb-jar.xml:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd"> <ejb-jar> <display-name>RedialMessageJAR</display-name> <enterprise-beans> <message-driven> <display-name>RedialMessageEJB</display-name> <ejb-name>RedialMessageEJB</ejb-name> <ejb-class>gov.ca.doj.redial.receiver.RedialMessageBean</ejb-class> <transaction-type>Container</transaction-type> <acknowledge-mode>Auto-acknowledge</acknowledge-mode> <message-driven-destination> <destination-type>javax.jms.Topic</destination-type> <subscription-durability>Durable</subscription-durability> </message-driven-destination> <resource-ref> <res-ref-name>jms/TopicConnectionFactory</res-ref-name> <res-type>javax.jms.TopicConnectionFactory</res-type> <res-auth>Container</res-auth> </resource-ref> <resource-env-ref> <resource-env-ref-name>jms/TopicName</resource-env-ref-name> <resource-env-ref-type>javax.jms.Topic</resource-env-ref-type> </resource-env-ref> </message-driven> </enterprise-beans> </ejb-jar>
-
2. Re: Persistent messages not being deleted
flindet Nov 23, 2004 4:46 PM (in response to flindet)PROBLEM RESOLVED
Sorry, I have resolved my problem. The problem was that another developer and I were usingdifferent subscription-id's when testing our MDB. This created two subscriptions in our JMS_SUBSCRIPTIONS table, causing the Topic to attempt delivery to both subscriptions. Because we only ran one MDB with one of the subscription-id's at any given time, messages would stack in the database due to the lack of a listener for one of the subscription-id's.
This is a non-issue. The topic did exactly what it was supposed to do. We were just confused because we didn't expect two subscriptions. Sorry!