Hello,
I have a MDB which is connected to a JMS Queue.
If I sends 200 Messages to this queue, circa 120 Messages are triggered to the
MDBs. After this, no more Messages are delivered to the MDBs. I have taken a
look to the Messages Table with Geronimo DB Manager, and there are some
Messages stored. But these messages are not triggered to the MDBs. After
waiting a while, I send a new Message to the Queue and this one is correctly
triggered to one MDB. But after this, the MessagesTable is completely empty.
If I increase the maxSessions Property, more Messages are lost.
Is there any Bug known, or did I something wrong?
Thanks a lot.
Regards.
Jochen
The Configuration of the JMS-Ressource (application-scoped):
<application
xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-1.1">
<dep:environment
xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1">
<dep:moduleId>
<dep:groupId>com.accumio.ae</dep:groupId>
<dep:artifactId>ear</dep:artifactId>
<dep:version>1.0</dep:version>
<dep:type>ear</dep:type>
</dep:moduleId>
<dep:dependencies />
<dep:hidden-classes></dep:hidden-classes>
<dep:non-overridable-classes />
</dep:environment>
<module>
<connector>geronimo-activemq-ra-2.0.1.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>com.accumio.ae.engine</dep:groupId>
<dep:artifactId>jms-resources</dep:artifactId>
<dep:version>1.0</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:type>car</dep:type>
</dep:dependency>
</dep:dependencies>
</dep:environment>
<resourceadapter>
<resourceadapter-instance>
<resourceadapter-name>com.accumio.ae.engine/jms-resources</resourceadapter-name>
<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</connectionfactory-interface>
<connectiondefinition-instance>
<name>com.accumio.ae.engine/VorgangChangedQueueConnectionFactory</name>
<implemented-interface>javax.jms.QueueConnectionFactory</implemented-interface>
<implemented-interface>javax.jms.TopicConnectionFactory</implemented-interface>
<connectionmanager>
<xa-transaction>
<transaction-caching />
</xa-transaction>
<single-pool>
<match-one />
</single-pool>
</connectionmanager>
</connectiondefinition-instance>
</connection-definition>
</outbound-resourceadapter>
</resourceadapter>
<adminobject>
<adminobject-interface>javax.jms.Queue</adminobject-interface>
<adminobject-class>org.apache.activemq.command.ActiveMQQueue</adminobject-class>
<adminobject-instance>
<message-destination-name>com.accumio.ae.engine/VorgangChangedQueue</message-destination-name>
<config-property-setting
name="PhysicalName">com.accumio.ae.engine/VorgangChangedQueue</config-property-setting>
</adminobject-instance>
</adminobject>
</connector>
</module>
</application>
Configuration of the MDB:
<ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd"
version="2.1">
<display-name>AblaufsteuerungMDB</display-name>
<enterprise-beans>
<!-- Message Driven Beans -->
<message-driven>
<display-name>AblaufsteuerungMDB</display-name>
<ejb-name>AblaufsteuerungMDB</ejb-name>
<ejb-class>com.accumio.ae.engine.ablaufsteuerung.mdb.AblaufsteuerungMDB</ejb-class>
<messaging-type>javax.jms.MessageListener</messaging-type>
<transaction-type>Bean</transaction-type>
<message-destination-type>javax.jms.Queue</message-destination-type>
<activation-config>
<activation-config-property>
<activation-config-property-name>destinationType</activation-config-property-name>
<activation-config-property-value>javax.jms.Queue</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>destination</activation-config-property-name>
<activation-config-property-value>com.accumio.ae.engine/VorgangChangedQueue</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>maxSessions</activation-config-property-name>
<activation-config-property-value>4</activation-config-property-value>
</activation-config-property>
</activation-config>
<resource-ref>
<res-ref-name>jdbc/pushAEConnectionPool</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
</message-driven>
</enterprise-beans>
<assembly-descriptor>
</assembly-descriptor>
</ejb-jar>
_______________________________________________________________________
Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 3 Monate
kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=022220