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 » WebSphere Message Broker (ACE) Support » Read ESQL PROCEDURE name from DB

Post new topic  Reply to topic
 Read ESQL PROCEDURE name from DB « View previous topic :: View next topic » 
Author Message
matuwe
PostPosted: Fri Apr 16, 2010 12:54 am    Post subject: Read ESQL PROCEDURE name from DB Reply with quote

Master

Joined: 05 Dec 2007
Posts: 296

HI , I need to store the EQSL procedure name or Module name on the database. I want to try and make a dynamic call using one compute node and use the value I got from there database to call the relavent procedure.

Is this possible or am I just sucking my thumb?
Back to top
View user's profile Send private message
matuwe
PostPosted: Fri Apr 16, 2010 1:32 am    Post subject: Reply with quote

Master

Joined: 05 Dec 2007
Posts: 296

Hi sorry, just to explain myself better, I want to be able to save trasformation types on the DB per interface. So I have XSLT and ESQL.

I managed to get XSLT file name read from the database, change the XSLT Dynamically at runtime to use the name from the DB and do the trasformation.

Can I do the same for ESQL? or will I have to create multiple compute nodes and use a route node to send to the right one?
Back to top
View user's profile Send private message
kimbert
PostPosted: Fri Apr 16, 2010 2:00 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

I believe others have implemented dynamic transformations using XSLT taken out of a WSRR repository.
Back to top
View user's profile Send private message
matuwe
PostPosted: Fri Apr 16, 2010 2:05 am    Post subject: Reply with quote

Master

Joined: 05 Dec 2007
Posts: 296

I am good with XSLT, works like magic. Only ESQL is my problem for now..

Can I do something like this
Quote:

DECLARE s_First CHARACTER 'CopyMessageHeaders()';
DECLARE s_Second CHARACTER 'CopyEntireMessage()';
DECLARE I INTEGER 1;
DECLARE J INTEGER 2;

WHILE I < J DO
IF I = J THEN
EVAL(s_Second); OR
CALL s_Second;
--
ELSE
EVAL(s_First); OR
CALL s_First;
END IF;




Or can I have a dynamically set the computeNode module name, like we would do it for other node (FileOutput, email, MQOut) ?
Back to top
View user's profile Send private message
matuwe
PostPosted: Tue Apr 20, 2010 11:11 pm    Post subject: Reply with quote

Master

Joined: 05 Dec 2007
Posts: 296

OWWW It works. I havd to put the whole command as a string including the CALL. Hope this helps someone in future.

Code:

DECLARE s_First CHARACTER 'CALL CopyMessageHeaders();' ;
DECLARE s_Second CHARACTER 'CALL CopyEntireMessage();' ;
DECLARE I INTEGER 1;
DECLARE J INTEGER 2;

WHILE I < J DO
IF I = J THEN
EVAL(s_Second);
 
ELSE
EVAL(s_First);

END IF;

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 » WebSphere Message Broker (ACE) Support » Read ESQL PROCEDURE name from DB
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.