Author |
Message
|
klr |
Posted: Tue Jun 14, 2011 1:51 am Post subject: Placing a local file into remote queue |
|
|
Apprentice
Joined: 01 Mar 2011 Posts: 31
|
Hi experts,
My scenario is as follows.
I have to pick a file from a folder in local desktop and place in a queue existing on a remote queue manager. I have no MQ related softwares installed in local desktop. Which is the best way to achieve this? Is JMS a good option or any executable Java code is available? Can you please putforth best options.. |
|
Back to top |
|
 |
zpat |
Posted: Tue Jun 14, 2011 1:53 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Ideally don't use files at all. Have the application generate MQ messages directly.
You will need the (free) MQ client installed on the desktop, or at least the JMS/Java part of it.
Is this a manual process, or automatic etc? Scripted etc? GUI?
Look at IBM support pac MA01 (the q program) or maybe MA0J.
What sort of users are they (IT, end-users etc) - is it just for you?
By the way. A "remote" queue manager? I think you mean a queue manager not on the desktop. But the queues will be local queues on that QM (most likely). |
|
Back to top |
|
 |
klr |
Posted: Tue Jun 14, 2011 2:09 am Post subject: |
|
|
Apprentice
Joined: 01 Mar 2011 Posts: 31
|
Yes u r right I meant a remote queue manager to be as u said.
They are the end users and they would have the content in a flat file and place in a folder. And we have to pick this file and convert to idoc in CMH and process. They are very particular that they will use files. We should check for any new files every 5 seconds in taht folder and then process them.
What does this mean "Have the application generate MQ messages directly" Can u pls tell me more in detail. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Jun 14, 2011 2:19 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
What is generating the content in the flat file?
Ideally this should put the content into an MQ message instead.
Or at least have them put the file into an email message or post it to a website.
If they do insist that you have to put this into a file, then you should use MQFTE or Sterling Connect Direct or etc. to read these and put them into an MQ Message.
You should also have them write these files to a shared directory on a server, rather than to their local desktops. |
|
Back to top |
|
 |
zpat |
Posted: Tue Jun 14, 2011 2:24 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
I mean don't use files at all, period.
Change whatever writes the records to a file to put messages to a queue instead.
If you are using stone-age programs like notepad - consider writing your own GUI which will put the data entered into MQ directly.
File watching is a crude way to use MQ. However I would suggest you look at Capitalwares MQ file mover (which is free), although it's designed to send files to files over MQ rather than anything else. (It's open source so may still be useful).
Otherwise you will probably need to code your own Java program to file watch and then put to MQ, unless you have WMB or WMQ/FTE.
Where does the conversion to IDOC take place? |
|
Back to top |
|
 |
|