Author |
Message
|
wmq_guy |
Posted: Fri Nov 12, 2004 10:16 am Post subject: use JMS 1.1 |
|
|
Acolyte
Joined: 21 Oct 2004 Posts: 50
|
on an windows xp box running WMQ 5.3 with WAS 5.1,
do you need to be on a particualr CSD to use JMS 1.1 capabilities?
currently using CSD5.
thank you |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Nov 12, 2004 2:22 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
You should be fine.
However if you can I would advise you to move to CSD08
Enjoy  |
|
Back to top |
|
 |
wmq_guy |
Posted: Sat Nov 13, 2004 6:55 am Post subject: |
|
|
Acolyte
Joined: 21 Oct 2004 Posts: 50
|
cool. Glad to hear that.
How do you know exactly what version you are using?
Is there some command, method, or something to get this JMS 1.1 version
thanks. |
|
Back to top |
|
 |
fjb_saper |
Posted: Sat Nov 13, 2004 1:41 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
|
Back to top |
|
 |
wmq_guy |
Posted: Mon Nov 15, 2004 9:36 am Post subject: |
|
|
Acolyte
Joined: 21 Oct 2004 Posts: 50
|
hmm.
well, I know I get the MQversion /csd from running mqver, but I was inquiring how I can find out the JMS version, if Im in fact using JMS 1.1
You said earlier I should be okay with the setup I have but when I am reading in a Bytesmessage, I want to use the
method but it is saying it is undefined?
how do you truly know what version of JMS you are using, not MQ version..doesnt really say in the 'using java'
JMS 1.0 or JMS 1.1
thanks again |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Nov 15, 2004 10:49 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
out of the Using Java manual:
Quote: |
BytesMessage
is, by default, a sequence of bytes as defined by the JMS 1.0.2 specification
and associated Java documentation. |
This means the method you are looking for is not available.
However this part is out of the documentation before CSD08.
With each patch additional functionality can be added and you have to regularly check it.
Latest edition:
Using Java page 300:
Quote: |
getBodyLength (JMS 1.1 only) public long getBodyLength() throws JMSException Get the number of bytes in the message body when the message is in read-only mode. The value returned can be used to allocate a byte array. The value is the entire length of the message body regardless of where the pointer for reading the message is currently located. Returns: The number of bytes in the message Throws: v JMSException if JMS fails to read the message because of an internal JMS error. v MessageNotReadableException if the message is in write-only mode. |
So I would check which version of MQ is installed and wich version of the JMS.jar is used by your app server.
Enjoy  |
|
Back to top |
|
 |
wmq_guy |
Posted: Mon Nov 15, 2004 1:14 pm Post subject: |
|
|
Acolyte
Joined: 21 Oct 2004 Posts: 50
|
thanks man.
I went ahead and installed the newest CSD8 and looked at the new manual you referred to. I made sure my build paths in WSAD are pointing to the newest jars...
still nothing..
-------------
Update.
I had to move the new jms.jar to the top of the build path in WSAD and voila...
thanks again for the help. |
|
Back to top |
|
 |
|