Author |
Message
|
broker_new |
Posted: Fri Jun 20, 2008 6:25 pm Post subject: FTP File |
|
|
 Yatiri
Joined: 30 Nov 2006 Posts: 614 Location: Washington DC
|
I have a pretty straight forward requirement.
My environment is WMB 6.0.3,WMQ 6.0.
MQInput>>>>>Compute>>>>>>JavaComputeNode(JCN).
1)In Compute Node i call a stored procedure and gets the records in the range of 1000 to 10000 and pass the XML message to JCN.
2)In JCN i have written a method to write the XML file into a file(File1.XML).
3)Iam trying to write a second class which picks the same file and FTP to a different Box.If anyone has done this please share the code.
and also iam interested in understanding the performance issues if we are doing a FTP using JCN because the file size may vary from 10MB to 20MB. _________________ IBM ->Let's build a smarter planet |
|
Back to top |
|
 |
Gaya3 |
Posted: Sat Jun 21, 2008 12:41 am Post subject: |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
In JCN you have to use Java API's to do any of the services. _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die |
|
Back to top |
|
 |
broker_new |
Posted: Sat Jun 21, 2008 6:22 am Post subject: |
|
|
 Yatiri
Joined: 30 Nov 2006 Posts: 614 Location: Washington DC
|
I have done it using the JCN(using FTP API).
Is there any way to invoke a script from Com
pute Node where the script executes the FTP commands.
(or) Is there any way to execute the FTP commands on AIX using ESQL
I have one idea but don't know that is the correct way of doing.
Setting the Application triggering whenever a message arrives into the output queue we can trigger the script where the script gets the message from the queue and writes into file and perform the FTP.
Iam trying to understand different ways of doing the things.
Defnetly using the JCN is simple and easy to log the errors. _________________ IBM ->Let's build a smarter planet |
|
Back to top |
|
 |
vinbud117 |
Posted: Sat Jun 21, 2008 10:17 am Post subject: |
|
|
Acolyte
Joined: 22 Jul 2005 Posts: 61
|
you can use the FTP nodes, comes as a support pack for version 6.0.
In 6.1 FTP nodes comes with the product. |
|
Back to top |
|
 |
broker_new |
Posted: Sat Jun 21, 2008 3:23 pm Post subject: |
|
|
 Yatiri
Joined: 30 Nov 2006 Posts: 614 Location: Washington DC
|
Is it..Thanks Vinbud117 for the reply could you post the support pac name.
I know that there is File extender which can do that but has the limitation that it cannot ftp to other ftp server and also we need to purchase it. _________________ IBM ->Let's build a smarter planet |
|
Back to top |
|
 |
vinbud117 |
Posted: Sat Jun 21, 2008 9:34 pm Post subject: |
|
|
Acolyte
Joined: 22 Jul 2005 Posts: 61
|
|
Back to top |
|
 |
broker_new |
Posted: Sun Jun 22, 2008 5:20 am Post subject: |
|
|
 Yatiri
Joined: 30 Nov 2006 Posts: 614 Location: Washington DC
|
yes,I can understand.
Broker has lots of limitations until and unless we use Java Compute Node we cannot achieve some requirements.Sometimes our management tried to leverage Message Broker because of these as everything can be achieved by using Java,J2EE and why to go for Broker. |
|
Back to top |
|
 |
|