|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Java API for namelists????? |
« View previous topic :: View next topic » |
Author |
Message
|
santosh_ganti |
Posted: Sat May 15, 2004 4:19 am Post subject: Java API for namelists????? |
|
|
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 |
|
 |
RogerLacroix |
Posted: Sat May 15, 2004 9:38 pm Post subject: |
|
|
 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 |
|
 |
santosh_ganti |
Posted: Thu May 20, 2004 6:55 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|