Use of RTI and MQ stages
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 38
- Joined: Fri Apr 22, 2005 6:07 am
Use of RTI and MQ stages
Hi All,
I am new to RTI and MQ stages. Can anyone please explain what is the main purpose of these stages?
My requirement is to trigger my datastage jobs from Java (not using shell or perl script). I am thinking to go with work around solution.
1. Java class will send the message having job parameter information (configuration) to MQ Server as a queu
2. MQ stage should contineously hunt for the message and read this message from queu as and when it is avaiable.
3. Once the end of message is read job should be finished and store this information in a sequential file
4. Post job subroutine should call unix shell which in turn should call other jobs based on the configuration file created by the job
My question:
Is it possible using MQ Stage? Can I use RTI stage for achieving above things?
Thanks in advance.
-Amit
I am new to RTI and MQ stages. Can anyone please explain what is the main purpose of these stages?
My requirement is to trigger my datastage jobs from Java (not using shell or perl script). I am thinking to go with work around solution.
1. Java class will send the message having job parameter information (configuration) to MQ Server as a queu
2. MQ stage should contineously hunt for the message and read this message from queu as and when it is avaiable.
3. Once the end of message is read job should be finished and store this information in a sequential file
4. Post job subroutine should call unix shell which in turn should call other jobs based on the configuration file created by the job
My question:
Is it possible using MQ Stage? Can I use RTI stage for achieving above things?
Thanks in advance.
-Amit
-
- Premium Member
- Posts: 38
- Joined: Fri Apr 22, 2005 6:07 am
-
- Premium Member
- Posts: 38
- Joined: Fri Apr 22, 2005 6:07 am
Hi All,
If we have MQ stage used as source which reads queue from MQ Server, I want the job should be kicked off based on the availability of the message in queue. I just want to send one message with end of flag. The job should trigger itself only when there is any message in the queue and it should terminate once it get eof flag. I want to trigger rest of the jobs from this using Post Job Subroutine shell script.
I can send messages in the queue whenever I need to trigger the job. Every message will be having end of flag just to terminate the processing.
Is it possible using MQ stage. Important point to remember is I don't want to invoke the job using shell script. I want the job having MQ should trigger-off by itself.
Thanks,
-Amit
If we have MQ stage used as source which reads queue from MQ Server, I want the job should be kicked off based on the availability of the message in queue. I just want to send one message with end of flag. The job should trigger itself only when there is any message in the queue and it should terminate once it get eof flag. I want to trigger rest of the jobs from this using Post Job Subroutine shell script.
I can send messages in the queue whenever I need to trigger the job. Every message will be having end of flag just to terminate the processing.
Is it possible using MQ stage. Important point to remember is I don't want to invoke the job using shell script. I want the job having MQ should trigger-off by itself.
Thanks,
-Amit
-
- Participant
- Posts: 612
- Joined: Thu May 03, 2007 4:59 am
- Location: Melbourne
Re: Use of RTI and MQ stages
Above said is possible. You will have to run a job which always listen to MQ for this. In a seq keep looping this job. When a msg hits MQ process it and loop back
Last edited by JoshGeorge on Mon May 07, 2007 2:24 am, edited 1 time in total.
Joshy George
<a href="http://www.linkedin.com/in/joshygeorge1" ><img src="http://www.linkedin.com/img/webpromo/bt ... _80x15.gif" width="80" height="15" border="0"></a>
<a href="http://www.linkedin.com/in/joshygeorge1" ><img src="http://www.linkedin.com/img/webpromo/bt ... _80x15.gif" width="80" height="15" border="0"></a>
-
- Participant
- Posts: 612
- Joined: Thu May 03, 2007 4:59 am
- Location: Melbourne
No Dispute on that capability. But after reading one msg it does not go back by it self and wait for the next msg.trobinson wrote:The MQStage is capability of keeping the job alive and listening for messages by itself 24X7 if required. No Sequence looping mechanism required.
Joshy George
<a href="http://www.linkedin.com/in/joshygeorge1" ><img src="http://www.linkedin.com/img/webpromo/bt ... _80x15.gif" width="80" height="15" border="0"></a>
<a href="http://www.linkedin.com/in/joshygeorge1" ><img src="http://www.linkedin.com/img/webpromo/bt ... _80x15.gif" width="80" height="15" border="0"></a>
-
- Participant
- Posts: 612
- Joined: Thu May 03, 2007 4:59 am
- Location: Melbourne
Try it out for yourselves you'll be surenick.bond wrote:You sure?But after reading one msg it does not go back by it self and wait for the next msg.
Joshy George
<a href="http://www.linkedin.com/in/joshygeorge1" ><img src="http://www.linkedin.com/img/webpromo/bt ... _80x15.gif" width="80" height="15" border="0"></a>
<a href="http://www.linkedin.com/in/joshygeorge1" ><img src="http://www.linkedin.com/img/webpromo/bt ... _80x15.gif" width="80" height="15" border="0"></a>
-
- Premium Member
- Posts: 38
- Joined: Fri Apr 22, 2005 6:07 am
Hi All,
[img]But%20after%20reading%20one%20msg%20it%20does%20not%20go%20back%20by%20it%20self%20and%20wait%20for%20the%20next%20msg.[/img]
But I can always call back this job using unix script so that it can again start hunting for the next message in the queue.
Please correct me if this is wrong.
Thanks,
-Amit
[img]But%20after%20reading%20one%20msg%20it%20does%20not%20go%20back%20by%20it%20self%20and%20wait%20for%20the%20next%20msg.[/img]
But I can always call back this job using unix script so that it can again start hunting for the next message in the queue.
Please correct me if this is wrong.
Thanks,
-Amit