History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: AMQ-705
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Hiram Chirino
Reporter: John Sisson
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ActiveMQ

ActiveMQActivationSpec does not validate that DestinationType is set to Topic when SubscriptionDurability is set to Durable

Created: 04/May/06 07:40 AM   Updated: 04/May/06 01:42 PM
Component/s: JCA Container
Affects Version/s: 3.2.1, 3.2.2, 4.0 M4, 3.2.3, 4.0 RC2, 4.0 RC3
Fix Version/s: 4.0, 3.2.4

Time Tracking:
Not Specified

File Attachments: 1. Text File Licensed for inclusion in ASF works AMQ-705-activemq-3.patch (3 kb)
2. Text File Licensed for inclusion in ASF works AMQ-705-incubator-trunk.patch (3 kb)



 Description  « Hide
Found problem when using Geronimo with an incorrectly configured EJB 2.0 MDB that has:

<message-driven-destination>
<destination-type>javax.jms.Queue</destination-type>
<subscription-durability>Durable</subscription-durability>
</message-driven-destination>

The above config doesn't make sense since subscription-durability is only applicable for Topics.

This resulted in a message that didn't directly point to the problem:

C:\test>java -jar geronimo-1.1-SNAPSHOT\bin\deployer.jar --user system --password manager deploy my.ear myplan.xml
Error: Unable to distribute my.ear: JMS settings for
message-driven bean FooMDBean are not valid:
Invalid settings: clientId must be set since durable subscription was requested. subscriptionName must be set since durable subscription was requested.

With the patch applied, the error will now be:

C:\test>java -jar geronimo-1.1-SNAPSHOT\bin\deployer.jar --user system --password manager deploy my.ear wmyplan.xml
Error: Unable to distribute my.ear: JMS settings for
message-driven bean FooMDBean are not valid:
Invalid settings: subscriptionDurability cannot be set to: Durable when destinationType is set to javax.jms.Queue as it is only valid when destinationType is set to javax.jms.Topic. clientId must be set since durable subscription was requested. subscriptionName must be set since durable subscription was requested.



 All   Comments   Work Log   Change History   Subversion Commits   FishEye   Crucible      Sort Order: Ascending order - Click to sort in descending order
John Sisson - 04/May/06 07:43 AM
Attached patch for review for activemq-3 branch.

John Sisson - 04/May/06 07:44 AM
Attached patch for review for incubator trunk.

Hiram Chirino - 04/May/06 01:42 PM
Great patch! Applied!