Author |
Message
|
elixir9999 |
Posted: Fri Oct 09, 2015 6:13 am Post subject: |
|
|
Novice
Joined: 24 Sep 2015 Posts: 10
|
Hi Vitor
I am too thinking on the same lines, but I am only aware of amqsput or Q utility to put msg on the Queue without any external help from any other application.
Could you if possible guide me in the right direction what could be used here instead of amqsput since TWS can run a command or run a script on the server at max.
Thanks
Sumit |
|
Back to top |
|
 |
Vitor |
Posted: Fri Oct 09, 2015 6:18 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
elixir9999 wrote: |
Could you if possible guide me in the right direction |
Vitor wrote: |
The amqsput sample application is just that - a sample. If it doesn't do what you want (e.g. doesn't handle long messages, doesn't read directly from a file system) then change it |
Vitor wrote: |
It sounds to me like you need to extend or replace amqsput with something that suits you better. |
What did you think this was, if not guidance?  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
smdavies99 |
Posted: Fri Oct 09, 2015 6:19 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
I use amqsput AND Rfhutil in a lot of my testing.
For example, I loaded up a queue earlier today with some 46000 messages (dumped from PROD) in order to test some changes to a flow.
Because they were all in a file I can repeat the test as many times as I need to do.
Because IBM provide the source to this and other tools such as amqsget it is easy to modify them to do exactly what you want.
For example,
I have modified amqsget to NOT wrap each message with 'message <' + '>'
It also has different text mesages including a summary of the number of messages read from the queue
my version of amqsput also outputs the number of message written to the queue.
I have been using these modified utils for getting on for 10 years.
All part of the MQ toolbox that you acquire/develop over the years. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
vennela |
Posted: Fri Oct 09, 2015 9:46 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
I think Q program is pretty good for your need because it doesn't restrict you on the message size
Also, you can wrap everything into another shell script or windows script and supply that wrapper script to TWS. |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Oct 09, 2015 9:49 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
|
Back to top |
|
 |
elixir9999 |
Posted: Fri Oct 09, 2015 6:50 pm Post subject: |
|
|
Novice
Joined: 24 Sep 2015 Posts: 10
|
Thank you so very much guys, for your help.
Will try different scenarios possible and see which works best for us.
You guys make a world of difference to new beginners like me when we know, we have someone like you helping us.
Thanks
Sumit |
|
Back to top |
|
 |
|