ServiceInvoker would always set DELIVER_TO property
---------------------------------------------------
Key: JBESB-3611
URL:
https://issues.jboss.org/browse/JBESB-3611
Project: JBoss ESB
Issue Type: Enhancement
Security Level: Public (Everyone can see)
Components: Transports
Affects Versions: 4.9 CP1
Reporter: Michael Burman
If ServiceInvoker fails when sending a msg to destination queue, it sets DELIVER_TO
messageProperty before sending it to DeadLetterService. With this functionality the
jbossesb.esb package can send DLQ messages from the database back to the destination
JMS-Queue. However, this functionality does not work when used with JCA and the
JMS-servers' own DLQ-functionality, since there is no DELIVER_TO parameter set.
A following patch would always set the DELIVER_TO property to the messages and would make
the ESB's DLQ-handler work with transacted JCA-queues also. It should not break any
existing functionality, as this value is only read by DBMessageStoreImpl, redeliver(URI
uuid) part.
### Eclipse Workspace Patch 1.0
#P JBossESB
Index: rosetta/src/org/jboss/soa/esb/client/ServiceInvoker.java
===================================================================
--- rosetta/src/org/jboss/soa/esb/client/ServiceInvoker.java (revision 36976)
+++ rosetta/src/org/jboss/soa/esb/client/ServiceInvoker.java (working copy)
@@ -251,13 +251,13 @@
AssertArgument.isNotNull(message, "message");
// Not interested in a reply
try {
+ message.getProperties().setProperty(DELIVER_TO, service);
post(message, new EPRInvoker());
} catch (MessageDeliverException mde) {
if (message.getProperties().getProperty(RedeliverStore.IS_REDELIVERY)==null
&& asyncRedelivery(message)
&& !service.equals(dlqService)) {
message.getProperties().setProperty(MessageStore.CLASSIFICATION,
MessageStore.CLASSIFICATION_RDLVR);
- message.getProperties().setProperty(DELIVER_TO, service);
try {
logger.info("Delivering message
["+message.getHeader()+"] to RDLVRQ.");
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira