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 » General IBM MQ Support » Script for putting Test Message on a Queue

Post new topic  Reply to topic Goto page Previous  1, 2
 Script for putting Test Message on a Queue « View previous topic :: View next topic » 
Author Message
elixir9999
PostPosted: Fri Oct 09, 2015 6:13 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Fri Oct 09, 2015 6:18 am    Post subject: Reply with quote

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
View user's profile Send private message
smdavies99
PostPosted: Fri Oct 09, 2015 6:19 am    Post subject: Reply with quote

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
View user's profile Send private message
vennela
PostPosted: Fri Oct 09, 2015 9:46 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
mqjeff
PostPosted: Fri Oct 09, 2015 9:49 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

http://www-01.ibm.com/support/knowledgecenter/SSFKSJ_8.0.0/com.ibm.mq.adm.doc/q117770_.htm?lang=en
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
elixir9999
PostPosted: Fri Oct 09, 2015 6:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » General IBM MQ Support » Script for putting Test Message on a Queue
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.