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 » Delete remote queue?

Post new topic  Reply to topic Goto page Previous  1, 2, 3
 Delete remote queue? « View previous topic :: View next topic » 
Author Message
Vitor
PostPosted: Tue Nov 07, 2006 6:01 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Your explaination was fine. My brain shorted out & I developed this sort of blind spot over the part a few posts back when I told you it was a Message Broker turning up on the queue status display....

Vitor wrote:
"dataFlowEngine" sounds more like a Message Broker than an MCA to me - certainly that's what the "DataFlowEngine" in my example is!!


Happy Documentation Reading!
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Blomman
PostPosted: Tue Nov 07, 2006 6:51 am    Post subject: Reply with quote

Master

Joined: 31 Oct 2006
Posts: 230

Hi!

Ok i found this ESQL:
Code:

CREATE PROCEDURE addToMQDestinationList(IN LocalEnvironment REFERENCE, IN newQueue char) BEGIN
  /*******************************************************************************
  * A procedure that will add a queue name to the MQ destination list
  * in the local environment.
  * This list is used by a MQOuput node which has its mode set to Destination list.
  *
  * IN LocalEnvironment: LocalEnvironment to be modified.
  * Set this to OutputLocalEnvironment when calling this procedure
  * IN queue:    queue to be added to the list
  *
  *******************************************************************************/
  DECLARE I INTEGER CARDINALITY(LocalEnvironment.Destination.MQDestinationList.DestinationData[]);
      IF I = 0 THEN
         SET LocalEnvironment.Destination.MQDestinationList.DestinationData[1].queueName = newQueue;
      ELSE
         SET LocalEnvironment.Destination.MQDestinationList.DestinationData[I+1].queueName = newQueue;
      END IF;
   END;


And where do i specify my Qs in the destination list?
And i suppose that i just put the ESQL on my compute node and sets the output node to property "destination list".
Im sorry i am a newbie as u can se..

/Blomman
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Nov 07, 2006 7:12 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

In that code, your Q's are passed as the "newQueue" parameter to that function.

And, yes, set the output node property to DestionationList.

BUT PLEASE GET SOME TRAINING.

WMB is a complicated product and not easy to learn on your own - and you're not likely to get a lot of training here.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Nov 07, 2006 7:12 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Blomman wrote:
And where do i specify my Qs in the destination list?
And i suppose that i just put the ESQL on my compute node and sets the output node to property "destination list".
Im sorry i am a newbie as u can se..

/Blomman


The bit where the ESQL sets ".queueName" is a clue....

There's a matching attribute ".queueManagerName" you might want to research.

You'll need to set the compute node and output node attributes to ensure the list is passed forwards.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Blomman
PostPosted: Tue Nov 07, 2006 9:49 am    Post subject: Reply with quote

Master

Joined: 31 Oct 2006
Posts: 230

Ok ok im training, but i have no teacher...Forums and documentation is my teacher for now...

So i simply create the procedure....
And then calling it and set my queues as parameters??

addToMQDestinationList(OutputLocalEnvironment , MyQ)
//adding my second Q to the list
addToMQDestinationList(OutputLocalEnvironment , MyQ2)

I used to program Java many years ago so thats all i can refer too..

/Blomman
Back to top
View user's profile Send private message
Blomman
PostPosted: Wed Nov 08, 2006 1:35 am    Post subject: Reply with quote

Master

Joined: 31 Oct 2006
Posts: 230

Perhaps i just can do it like this:
Code:

SET OutputLocalEnvironment.Destination.MQDestinationList.DestinationData[1].queueName = 'QUEUE1';
SET OutputLocalEnvironment.Destination.MQDestinationList.DestinationData[2].queueName = 'QUEUE2';


Maybe it would be nicer to use the procedure, but i cant figure out how to call the procedure and put in my Qs as parameters.

/Blomman
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2, 3 Page 3 of 3

MQSeries.net Forum Index » General IBM MQ Support » Delete remote queue?
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.