diff options
| author | Rajith Muditha Attapattu <rajith@apache.org> | 2009-06-02 19:53:23 +0000 |
|---|---|---|
| committer | Rajith Muditha Attapattu <rajith@apache.org> | 2009-06-02 19:53:23 +0000 |
| commit | daaa78571f0bcb478f3e63d2a84cb03adc0eadd7 (patch) | |
| tree | 38dd1aab8a562ef16822efa4391ce43dc018ec04 /qpid/java/client/src | |
| parent | 4032bf8071990156a95889f01f505d757263647a (diff) | |
| download | qpid-python-daaa78571f0bcb478f3e63d2a84cb03adc0eadd7.tar.gz | |
This is a fix for QPID-1887
The TimeToLiveTest should be enough to cover this case.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@781141 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/client/src')
| -rw-r--r-- | qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer_0_10.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer_0_10.java b/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer_0_10.java index b8c5fc8faf..22824d9f1c 100644 --- a/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer_0_10.java +++ b/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer_0_10.java @@ -98,13 +98,11 @@ public class BasicMessageProducer_0_10 extends BasicMessageProducer deliveryProp.setTimestamp(currentTime); if (timeToLive > 0) { - deliveryProp.setExpiration(currentTime + timeToLive); - message.setJMSExpiration(currentTime + timeToLive); + deliveryProp.setTtl(timeToLive); } else { - deliveryProp.setExpiration(0); - message.setJMSExpiration(0); + deliveryProp.setTtl(0); } message.setJMSTimestamp(currentTime); } |
