Author: ritchiem
Date: Thu Dec 7 03:15:13 2006
New Revision: 483419
URL: http://svn.apache.org/viewvc?view=rev&rev=483419
Log:
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.
Modified:
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/message/AbstractJMSMessage.java
Modified:
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/message/AbstractJMSMessage.java
URL:
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/message/AbstractJMSMessage.java?view=diff&rev=483419&r1=483418&r2=483419
==============================================================================
---
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/message/AbstractJMSMessage.java
(original)
+++
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/message/AbstractJMSMessage.java
Thu Dec 7 03:15:13 2006
@@ -206,14 +206,12 @@
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