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 » General IBM MQ Support » Java API for namelists?????

Post new topic  Reply to topic
 Java API for namelists????? « View previous topic :: View next topic » 
Author Message
santosh_ganti
PostPosted: Sat May 15, 2004 4:19 am    Post subject: Java API for namelists????? Reply with quote

Newbie

Joined: 18 Apr 2004
Posts: 5

Is there a Java API available to access namelists objects. More specifically to obtain the namelist Names attribute.

I believe that I should be able to get the Names attribute using MQCA_NAMES selector but I do not know how to invoke MQINQ using Java.

Can someone Please Help!!!
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Sat May 15, 2004 9:38 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

RTM. This is explained in the manual.

- Go and download the pdf called WebSphere MQ Using Java
- Go to Chapter 7 and read the section entitled "Getting and setting attribute values"
- Note you will be dealing with a MQManagedObject rather than a queue but the principles are the same.

Regards,
Roger Lacroix
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
santosh_ganti
PostPosted: Thu May 20, 2004 6:55 am    Post subject: Reply with quote

Newbie

Joined: 18 Apr 2004
Posts: 5

Well I tried to access the Namelist as suggested in the Reply, by creating an instance of MQManagedObject and then assigning it to a MQQueue constructor which took the name of the NameList object and QueueManager object of the QueuManager on which the NameList was created. But the Object type is not being recognized, giving 2085 0x00000825 MQRC_UNKNOWN_OBJECT_NAME error,even though the NameList object name was right. I believe the call should work if I am able to change the Object Type from the default Queue to a NameList. How do I do that???
Please infor whether I am on the right track in dealing with the NameList objects. I am appending a code snippet to indicate the code logic:-
Code:
MQManagedObject nameListObj;
      nameListObj = new MQQueue(qMngr,"NAMELIST1",openOptions,null,null,null);


Please respond!
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 » General IBM MQ Support » Java API for namelists?????
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.