| Summary: | Different behaviour of MDB TCK under 0.14 | ||
|---|---|---|---|
| Product: | Red Hat Enterprise MRG | Reporter: | Jiri Pechanec <jpechane> |
| Component: | qpid-jca | Assignee: | messaging-bugs <messaging-bugs> |
| Status: | CLOSED NOTABUG | QA Contact: | MRG Quality Engineering <mrgqe-bugs> |
| Severity: | urgent | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 2.0 | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-12-20 11:08:28 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Solved by changing JBoss TCK integration layer |
MDB TCKs that use topics are failing with 0.14 client. They were working with 0.10. Take for example com/sun/ts/tests/jms/ee/mdb/mdb_msgPropsT The TCK integration layer creates on the fly topic to which an MDB is bound. The code for this purpose is topic = session.createTopic(name + ";{create:always, link:{x-bindings:[{exchange: 'amq.topic', key : '" + name + "'}]}}"); final MessageProducer producer = session.createProducer(topic); producer.close(); And follows the proposal at #734059. Regardless of it it seems that the messages are delivered multiple times to MDB which causes havoc in the test. If I modify JBoss EJB DD to this form <message-driven> <ejb-name>MDB_TOPIC</ejb-name> <destination-jndi-name>jms_ee_mdb_mdb_msgPropsT_MDB_TOPIC</destination-jndi-name> <mdb-user>j2ee</mdb-user> <mdb-passwd>j2ee</mdb-passwd> <resource-adapter-name>qpid-ra.rar</resource-adapter-name> <activation-config> <activation-config-property> <activation-config-property-name>ConnectionURL</activation-config-property-name> <activation-config-property-value>amqp://guest:guest@/test?brokerlist='tcp://mrg01.mw.lab.eng.bos.redhat.com:5672'&sync_ack='true'&maxprefetch='0'</activation-config-property-value> </activation-config-property> <activation-config-property> <activation-config-property-name>maxSession</activation-config-property-name> <activation-config-property-value>1</activation-config-property-value> </activation-config-property> </activation-config> Then the test is passing again. So it seems that the culprit is defaul maxSession set to 15