summaryrefslogtreecommitdiff
path: root/qpid/java/client
diff options
context:
space:
mode:
authorMartin Ritchie <ritchiem@apache.org>2006-12-07 11:15:13 +0000
committerMartin Ritchie <ritchiem@apache.org>2006-12-07 11:15:13 +0000
commitcdc3fc912f44c62a7b69f9e60759c600b593b5b7 (patch)
tree5e608ef211ae4dd816ec4228cd16ae5b76cad321 /qpid/java/client
parent522aa6902f957f7c9f1bef631a7e69eef904c474 (diff)
downloadqpid-python-cdc3fc912f44c62a7b69f9e60759c600b593b5b7.tar.gz
QPID-152
This was just an oversight the Header has a _type string but was never used. Put in methods to call set/get it. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@483419 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/client')
-rw-r--r--qpid/java/client/src/main/java/org/apache/qpid/client/message/AbstractJMSMessage.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/qpid/java/client/src/main/java/org/apache/qpid/client/message/AbstractJMSMessage.java b/qpid/java/client/src/main/java/org/apache/qpid/client/message/AbstractJMSMessage.java
index fbb55ae289..329153534b 100644
--- a/qpid/java/client/src/main/java/org/apache/qpid/client/message/AbstractJMSMessage.java
+++ b/qpid/java/client/src/main/java/org/apache/qpid/client/message/AbstractJMSMessage.java
@@ -206,14 +206,12 @@ public abstract class AbstractJMSMessage extends AMQMessage implements javax.jms
public String getJMSType() throws JMSException
{
- //fixme wrong QPID-152
- return getMimeType();
+ return getJmsContentHeaderProperties().getType();
}
public void setJMSType(String string) throws JMSException
{
- //throw new JMSException("Cannot set JMS Type - it is implicitly defined based on message type");
- // this is not spec comliant, should not throw the message
+ getJmsContentHeaderProperties().setType(string);
}
public long getJMSExpiration() throws JMSException