ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » use JMS 1.1

Post new topic  Reply to topic
 use JMS 1.1 « View previous topic :: View next topic » 
Author Message
wmq_guy
PostPosted: Fri Nov 12, 2004 10:16 am    Post subject: use JMS 1.1 Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Fri Nov 12, 2004 2:22 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
wmq_guy
PostPosted: Sat Nov 13, 2004 6:55 am    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Sat Nov 13, 2004 1:41 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

for the MQ Version type at command prompt
Code:
mqver

For the support of JMS check out the documentation links and go to using Java:
http://www.mqseries.net/phpBB2/viewtopic.php?t=18349

Enjoy
Back to top
View user's profile Send private message Send e-mail
wmq_guy
PostPosted: Mon Nov 15, 2004 9:36 am    Post subject: Reply with quote

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
Code:
getBodyLength()
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
View user's profile Send private message
fjb_saper
PostPosted: Mon Nov 15, 2004 10:49 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
wmq_guy
PostPosted: Mon Nov 15, 2004 1:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » use JMS 1.1
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.