geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashwill, Steve (Facilities & Services)" <sashw...@uiuc.edu>
Subject RE: mdb stops consuming from queue after redeploy
Date Thu, 11 Mar 2010 14:34:53 GMT
Both Apps are deployed in separate ear files. Here are the "config"
file(s) contents:

App1:

geronimo-application.xml

<application
xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-1.2">

 

    <environment
xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">

                                <moduleId>

 
<groupId>edu.uiuc.fs</groupId>

 
<artifactId>order2chargeback</artifactId>

                                                <version>1.0b</version>

                                                <type>ear</type>

                                </moduleId>

    </environment>

  

    <module>

       <connector>geronimo-activemq-ra-2.2.rar</connector>

        <connector
xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector-1.2">

            <dep:environment
xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">

                <dep:moduleId>

 
<dep:groupId>org.apache.geronimo.samples</dep:groupId>

                    <dep:artifactId>jms-resources</dep:artifactId>

                    <dep:version>1.2</dep:version>

                    <dep:type>rar</dep:type>

                </dep:moduleId>

                <dep:dependencies>

                    <dep:dependency>

 
<dep:groupId>org.apache.geronimo.configs</dep:groupId>

                        <dep:artifactId>activemq-broker</dep:artifactId>

                        <dep:version>2.2</dep:version>

                        <dep:type>car</dep:type>

                    </dep:dependency>

                </dep:dependencies>

            </dep:environment>

            <resourceadapter>

                <resourceadapter-instance>

 
<resourceadapter-name>jms-resources</resourceadapter-name>

                    

                    <config-property-setting name="ServerUrl">

                        <!--
vm://localhost?jms.useAsyncSend=true?jms.optimizedMessageDispatch=false
-->

                      tcp://localhost:61616

                    </config-property-setting>

                    <config-property-setting
name="QueuePrefetch">1</config-property-setting>

                    <config-property-setting
name="TopicPrefetch">1</config-property-setting>

                    <config-property-setting
name="DurableTopicPrefetch">1</config-property-setting>

                    <nam:workmanager
xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.2">

 
<nam:gbean-link>DefaultWorkManager</nam:gbean-link>

                    </nam:workmanager>

                </resourceadapter-instance>

                <outbound-resourceadapter>

                    <connection-definition>

 
<connectionfactory-interface>javax.jms.ConnectionFactory</connectionfact
ory-interface>

                        <connectiondefinition-instance>

                            <name>FSConnectionFactory</name>

 
<implemented-interface>javax.jms.QueueConnectionFactory</implemented-int
erface>

 
<implemented-interface>javax.jms.TopicConnectionFactory</implemented-int
erface>

                            <connectionmanager>

                                <xa-transaction>

                                    <transaction-caching />

                                </xa-transaction>

                                <!--<local-transaction/>-->

                                <single-pool>

                                    <max-size>300</max-size>

                                    <min-size>10</min-size>

 
<blocking-timeout-milliseconds>5000</blocking-timeout-milliseconds>

 
<idle-timeout-minutes>1</idle-timeout-minutes>

                                    <!--<match-one/>-->

                                    <select-one-assume-match/>

                                </single-pool>

                                <!-- <partitioned-pool/> -->

                            </connectionmanager>

                        </connectiondefinition-instance>

                    </connection-definition>

                </outbound-resourceadapter>

            </resourceadapter>

            <adminobject>

 
<adminobject-interface>javax.jms.Queue</adminobject-interface>

 
<adminobject-class>org.apache.activemq.command.ActiveMQQueue</adminobjec
t-class>

                <adminobject-instance>

 
<message-destination-name>esb.WarehouseSalesOrderQueue</message-destinat
ion-name>

                    <config-property-setting
name="PhysicalName">esb.WarehouseSalesOrderQueue</config-property-settin
g>

                </adminobject-instance>

            </adminobject>

            <adminobject>

 
<adminobject-interface>javax.jms.Queue</adminobject-interface>

 
<adminobject-class>org.apache.activemq.command.ActiveMQQueue</adminobjec
t-class>

                <adminobject-instance>

 
<message-destination-name>esb.BannerCostSettlementQueue</message-destina
tion-name>

                    <config-property-setting
name="PhysicalName">esb.BannerCostSettlementQueue</config-property-setti
ng>

                </adminobject-instance>

            </adminobject>

            <adminobject>

 
<adminobject-interface>javax.jms.Queue</adminobject-interface>

 
<adminobject-class>org.apache.activemq.command.ActiveMQQueue</adminobjec
t-class>

                <adminobject-instance>

 
<message-destination-name>esb.ChampsCostSettlementQueue</message-destina
tion-name>

                    <config-property-setting
name="PhysicalName">esb.ChampsCostSettlementQueue</config-property-setti
ng>

                </adminobject-instance>

            </adminobject>

            <adminobject>

 
<adminobject-interface>javax.jms.Queue</adminobject-interface>

 
<adminobject-class>org.apache.activemq.command.ActiveMQQueue</adminobjec
t-class>

                <adminobject-instance>

 
<message-destination-name>OrderServiceQueue</message-destination-name>

                    <config-property-setting
name="PhysicalName">OrderServiceQueue</config-property-setting>

                </adminobject-instance>

            </adminobject>

            <adminobject>

 
<adminobject-interface>javax.jms.Queue</adminobject-interface>

 
<adminobject-class>org.apache.activemq.command.ActiveMQQueue</adminobjec
t-class>

                <adminobject-instance>

 
<message-destination-name>OrderConfirmationQueue</message-destination-na
me>

                    <config-property-setting
name="PhysicalName">OrderConfirmationQueue</config-property-setting>

                </adminobject-instance>

            </adminobject>

            <adminobject>

 
<adminobject-interface>javax.jms.Queue</adminobject-interface>

 
<adminobject-class>org.apache.activemq.command.ActiveMQQueue</adminobjec
t-class>

                <adminobject-instance>

 
<message-destination-name>OrderInvoiceQueue</message-destination-name>

                    <config-property-setting
name="PhysicalName">OrderInvoiceQueue</config-property-setting>

                </adminobject-instance>

            </adminobject>

            <adminobject>

 
<adminobject-interface>javax.jms.Queue</adminobject-interface>

 
<adminobject-class>org.apache.activemq.command.ActiveMQQueue</adminobjec
t-class>

                <adminobject-instance>

 
<message-destination-name>OrderStatusQueue</message-destination-name>

                    <config-property-setting
name="PhysicalName">OrderStatusQueue</config-property-setting>

                </adminobject-instance>

            </adminobject>

            <adminobject>

 
<adminobject-interface>javax.jms.Queue</adminobject-interface>

 
<adminobject-class>org.apache.activemq.command.ActiveMQQueue</adminobjec
t-class>

                <adminobject-instance>

 
<message-destination-name>esb.EmailServiceQueue</message-destination-nam
e>

                    <config-property-setting
name="PhysicalName">esb.EmailServiceQueue</config-property-setting>

                </adminobject-instance>

            </adminobject>

            <adminobject>

 
<adminobject-interface>javax.jms.Queue</adminobject-interface>

 
<adminobject-class>org.apache.activemq.command.ActiveMQQueue</adminobjec
t-class>

                <adminobject-instance>

 
<message-destination-name>esb.TecsysChangeOrderScopeQueue</message-desti
nation-name>

                    <config-property-setting
name="PhysicalName">esb.TecsysChangeOrderScopeQueue</config-property-set
ting>

                </adminobject-instance>

            </adminobject>

            <adminobject>

 
<adminobject-interface>javax.jms.Queue</adminobject-interface>

 
<adminobject-class>org.apache.activemq.command.ActiveMQQueue</adminobjec
t-class>

                <adminobject-instance>

 
<message-destination-name>TecsysPurchaseOrderQueue</message-destination-
name>

                    <config-property-setting
name="PhysicalName">TecsysPurchaseOrderQueue</config-property-setting>

                </adminobject-instance>

            </adminobject>

            <adminobject>

 
<adminobject-interface>javax.jms.Queue</adminobject-interface>

 
<adminobject-class>org.apache.activemq.command.ActiveMQQueue</adminobjec
t-class>

                <adminobject-instance>

 
<message-destination-name>DellPurchaseOrderQueue</message-destination-na
me>

                    <config-property-setting
name="PhysicalName">DellPurchaseOrderQueue</config-property-setting>

                </adminobject-instance>

            </adminobject>

            <adminobject>

 
<adminobject-interface>javax.jms.Queue</adminobject-interface>

 
<adminobject-class>org.apache.activemq.command.ActiveMQQueue</adminobjec
t-class>

                <adminobject-instance>

 
<message-destination-name>OMaxPurchaseOrderQueue</message-destination-na
me>

                    <config-property-setting
name="PhysicalName">OMaxPurchaseOrderQueue</config-property-setting>

                </adminobject-instance>

            </adminobject>

            <adminobject>

 
<adminobject-interface>javax.jms.Queue</adminobject-interface>

 
<adminobject-class>org.apache.activemq.command.ActiveMQQueue</adminobjec
t-class>

                <adminobject-instance>

 
<message-destination-name>esb.UpdateOMaxSummaryPoQueue</message-destinat
ion-name>

                    <config-property-setting
name="PhysicalName">esb.UpdateOMaxSummaryPoQueue</config-property-settin
g>

                </adminobject-instance>

            </adminobject>

           

            <adminobject>

 
<adminobject-interface>javax.jms.Queue</adminobject-interface>

 
<adminobject-class>org.apache.activemq.command.ActiveMQQueue</adminobjec
t-class>

                <adminobject-instance>

 
<message-destination-name>InvoiceSettlementQueue</message-destination-na
me>

                    <config-property-setting
name="PhysicalName">InvoiceSettlementQueue</config-property-setting>

                </adminobject-instance>

            </adminobject>

            <adminobject>

 
<adminobject-interface>javax.jms.Queue</adminobject-interface>

 
<adminobject-class>org.apache.activemq.command.ActiveMQQueue</adminobjec
t-class>

                <adminobject-instance>

 
<message-destination-name>ErrorLogQueue</message-destination-name>

                    <config-property-setting
name="PhysicalName">ErrorLogQueue</config-property-setting>

                </adminobject-instance>

            </adminobject>            

        </connector>

    </module>

</application>

 

App2:

 

geronimo-application.xml

 

 

<application
xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-2.0"

    xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">

 

    <dep:environment>

        <dep:moduleId>

            <dep:groupId>edu.uiuc.fs</dep:groupId>

            <dep:artifactId>hrentear</dep:artifactId>

            <dep:version>${project.version}</dep:version>

            <dep:type>ear</dep:type>

        </dep:moduleId>

    </dep:environment>

    <module>

    <connector>geronimo-activemq-ra-2.2.rar</connector>

        <connector
xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector-1.2">

            <dep:environment>

                <dep:moduleId>

 
<dep:groupId>org.apache.geronimo.samples</dep:groupId>

                    <dep:artifactId>jms-resources</dep:artifactId>

                    <dep:version>1.2</dep:version>

                    <dep:type>rar</dep:type>

                </dep:moduleId>

                <dep:dependencies>

                    <dep:dependency>

 
<dep:groupId>org.apache.geronimo.configs</dep:groupId>

                        <dep:artifactId>activemq-broker</dep:artifactId>

                        <dep:version>2.2</dep:version>

                        <dep:type>car</dep:type>

                    </dep:dependency>

                </dep:dependencies>

            </dep:environment>

            <resourceadapter>

                <resourceadapter-instance>

 
<resourceadapter-name>jms-resources</resourceadapter-name>

                    <config-property-setting name="ServerUrl">

                        vm://localhost

                    </config-property-setting>

                    <config-property-setting
name="QueuePrefetch">1</config-property-setting>

                    <config-property-setting
name="TopicPrefetch">1</config-property-setting>

                    <config-property-setting
name="DurableTopicPrefetch">1</config-property-setting>

                    <nam:workmanager
xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.2">

 
<nam:gbean-link>DefaultWorkManager</nam:gbean-link>

                    </nam:workmanager>

                </resourceadapter-instance>

                <outbound-resourceadapter>

                    <connection-definition>

 
<connectionfactory-interface>javax.jms.ConnectionFactory</connectionfact
ory-interface>

                        <connectiondefinition-instance>

                            <name>FSConnectionFactory</name>

 
<implemented-interface>javax.jms.QueueConnectionFactory</implemented-int
erface>

 
<implemented-interface>javax.jms.TopicConnectionFactory</implemented-int
erface>

                            <connectionmanager>

                                <xa-transaction>

                                    <transaction-caching />

                                </xa-transaction>

                                <single-pool>

                                    <max-size>100</max-size>

                                    <min-size>60</min-size>

 
<blocking-timeout-milliseconds>5000</blocking-timeout-milliseconds>

 
<idle-timeout-minutes>0</idle-timeout-minutes>

                                    <select-one-assume-match/>

                                </single-pool>

                            </connectionmanager>

                        </connectiondefinition-instance>

                    </connection-definition>

                </outbound-resourceadapter>

            </resourceadapter>

            <adminobject>

 
<adminobject-interface>javax.jms.Topic</adminobject-interface>

 
<adminobject-class>org.apache.activemq.command.ActiveMQTopic</adminobjec
t-class>

                <adminobject-instance>

 
<message-destination-name>TimerAdapterTopic</message-destination-name>

                    <config-property-setting
name="PhysicalName">TimerAdapterTopic</config-property-setting>

                </adminobject-instance>

            </adminobject>

        </connector>

    </module>

</application>

 

openejb-jar.xml

 

<openejb-jar xmlns="http://www.openejb.org/xml/ns/openejb-jar-2.1"

             xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.2"

 
xmlns:security="http://geronimo.apache.org/xml/ns/security-1.1"

 
xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">

 

   <dep:environment>

        <dep:moduleId>              

                <dep:groupId>edu.uiuc.fs</dep:groupId>

                <dep:artifactId>hrentear</dep:artifactId>

                <dep:version>${project.version}</dep:version>

                <dep:type>car</dep:type>

        </dep:moduleId>

        <dep:dependencies>

            <dep:dependency>

                <dep:groupId>edu.uiuc.fs</dep:groupId>

                <dep:artifactId>woentear</dep:artifactId>

                <dep:version>1.11</dep:version>

                <dep:type>ear</dep:type>

            </dep:dependency>

            <dep:dependency>

                <groupId>org.apache.geronimo.configs</groupId>

                <artifactId>activemq-broker</artifactId>

                <version>2.2</version>

                <type>car</type>

            </dep:dependency>

            <dep:dependency>

                <dep:groupId>console.dbpool</dep:groupId>

                <dep:artifactId>timekeeping</dep:artifactId>

                  <dep:version>1.0</dep:version>

                  <dep:type>rar</dep:type>

            </dep:dependency>

            <5 console.dbpool dependencies removed>

      </dep:dependencies>

   </dep:environment>

    <enterprise-beans>

            <message-driven>

                    <ejb-name>MobileTimecardAdapter</ejb-name>

                    <resource-adapter>

                            <resource-link>jms-resources</resource-link>

                    </resource-adapter>

            </message-driven>

            <message-driven>

                    <ejb-name>EarnCodeImportAdapter</ejb-name>

                    <resource-adapter>

                            <resource-link>jms-resources</resource-link>

                    </resource-adapter>

            </message-driven>

            <message-driven>

                    <ejb-name>BannerToolsAdapter</ejb-name>

                    <resource-adapter>

                            <resource-link>jms-resources</resource-link>

                    </resource-adapter>

            </message-driven>

            <message-driven>

                    <ejb-name>TimecardCleanupAdapter</ejb-name>

                    <resource-adapter>

                            <resource-link>jms-resources</resource-link>

                    </resource-adapter>

            </message-driven>

    </enterprise-beans>

</openejb-jar>

 

 

 

From: Kevan Miller [mailto:kevan.miller@gmail.com] 
Sent: Thursday, March 11, 2010 6:53 AM
To: user@geronimo.apache.org
Subject: Re: mdb stops consuming from queue after redeploy

 

 

On Mar 10, 2010, at 5:33 PM, Ashwill, Steve (Facilities & Services)
wrote:





Hello,

 

We have multiple applications deployed on Geronimo 2.2.

Two of these are using message queues for processing async messages. It
seems that if we redeploy one of the apps then the other app's mdbs stop
consuming messages(the consumer count drops to 0, but it doesn't do it
every time).  The display below was taken while all is OK

App1

Connection Factory                FSConnectionFactory
Application-scoped              running                  

Queue                                    ErrorLogQueue
Application-scoped              running       1   0  

Queue                                    OrderServiceQueue
Application-scoped              running       0   0  

Queue                                    esb.xxxxxxChangeOrderScopeQueue
Application-scoped              running       4   0  

Queue                                    esb.xxxxxxCostSettlementQueue
Application-scoped              running       4   1  

Queue                                    InvoiceSettlementQueue
Application-scoped              running       1   0  

Queue                                    OrderStatusQueue
Application-scoped              running       1   0  

Queue                                    OrderInvoiceQueue
Application-scoped              running       1   0  

Queue                                    esb.EmailServiceQueue
Application-scoped              running       0   0  

Queue                                    esb.UpdatexxxxSummaryPoQueue
Application-scoped              running       0   0  

Queue                                    xxxPurchaseOrderQueue
Application-scoped              running       1   0  

Queue                                    OrderConfirmationQueue
Application-scoped              running       1   0  

Queue                                    xxxxxxPurchaseOrderQueue
Application-scoped              running       1   0  

Queue                                    esb.xxxxxxCostSettlementQueue
Application-scoped              running       4   0  

Queue                                    xxxxPurchaseOrderQueue
Application-scoped              running       1   0  

Queue                                    esb.WarehouseSalesOrderQueue
Application-scoped              running       4   0  

 

App2

Connection Factory                          FSConnectionFactory
Application-scoped                        running                       

Topic                                                TimerAdapterTopic
Application-scoped                        running           4   6   

 

Anyone have any ideas?

 

How are your apps packaged? Where are your JMS Resources packaged? Are
they deployed separately? Or in the same EAR?

 

--kevan


Mime
View raw message