You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Ben Stover <bx...@yahoo.co.uk> on 2012/03/19 15:39:54 UTC
Easiest way to (pre-)fill/add new msgs into an ActiveMQ server?
Assume I started a new installed ActiveMQ server on a new server machine.
Now I want to pre-fill (e.g. for presentation or testing purposes) this ActiveMQ server with a couple of
sample msgs.
What is the easiest way to do that?
I don't want to do this manually through the browser interface.
I prefer a batch script where all header fields and the payload are can be entered directly
for each msg.
How can I do this in detail?
How would such a command look like?
Thank you
Ben
Re: Easiest way to (pre-)fill/add new msgs into an ActiveMQ server?
Posted by Marcelo Jabali <ma...@yahoo.com>.
Hi Ben,
Like Thorsten and Jaskirat said you have a few options but you can also run any of those samples shipped with ActiveMQ as well.
Have a look at $AMQ_HOME/example and you can easily run an Ant script with the options described on the build.xml file where you can configure the broker URL, destination, persistence, etc.
Hope this helps,
-Marcelo
On Mar 19, 2012, at 9:15 AM, jaskirat singh wrote:
> Hi Ben
> I always use Java client to send test messages. Write any client code in
> your language and use command line to control it.
>
> Thanks
> Jaskirat
>
> On Mon, Mar 19, 2012 at 9:02 AM, Torsten Mielke <to...@fusesource.com>wrote:
>
>> Hello Ben,
>>
>> You have a couple of options for sending messages to the broker:
>> - Use the web console
>> - use JMX operation (e.g. via JConsole)
>> - use other external tools that aren't provided by ActiveMQ like HermesJMS
>> - write you own little application
>>
>>
>>> I prefer a batch script where all header fields and the payload are can
>> be entered directly for each msg.
>>
>> There is no such tool shipped with ActiveMQ. However you could write one
>> yourself using any scripting language (e.g. Perl, Ruby) and the STOMP
>> protocol.
>>
>>
>> Torsten Mielke
>> torsten@fusesource.com
>> tmielke@blogspot.com
>>
>>
>> On Mar 19, 2012, at 3:39 PM, Ben Stover wrote:
>>
>>> Assume I started a new installed ActiveMQ server on a new server machine.
>>>
>>> Now I want to pre-fill (e.g. for presentation or testing purposes) this
>> ActiveMQ server with a couple of
>>> sample msgs.
>>>
>>> What is the easiest way to do that?
>>> I don't want to do this manually through the browser interface.
>>>
>>> I prefer a batch script where all header fields and the payload are can
>> be entered directly
>>> for each msg.
>>>
>>> How can I do this in detail?
>>> How would such a command look like?
>>>
>>> Thank you
>>> Ben
>>
>>
>>
>>
Re: Easiest way to (pre-)fill/add new msgs into an ActiveMQ server?
Posted by jaskirat singh <ja...@gmail.com>.
Hi Ben
I always use Java client to send test messages. Write any client code in
your language and use command line to control it.
Thanks
Jaskirat
On Mon, Mar 19, 2012 at 9:02 AM, Torsten Mielke <to...@fusesource.com>wrote:
> Hello Ben,
>
> You have a couple of options for sending messages to the broker:
> - Use the web console
> - use JMX operation (e.g. via JConsole)
> - use other external tools that aren't provided by ActiveMQ like HermesJMS
> - write you own little application
>
>
> > I prefer a batch script where all header fields and the payload are can
> be entered directly for each msg.
>
> There is no such tool shipped with ActiveMQ. However you could write one
> yourself using any scripting language (e.g. Perl, Ruby) and the STOMP
> protocol.
>
>
> Torsten Mielke
> torsten@fusesource.com
> tmielke@blogspot.com
>
>
> On Mar 19, 2012, at 3:39 PM, Ben Stover wrote:
>
> > Assume I started a new installed ActiveMQ server on a new server machine.
> >
> > Now I want to pre-fill (e.g. for presentation or testing purposes) this
> ActiveMQ server with a couple of
> > sample msgs.
> >
> > What is the easiest way to do that?
> > I don't want to do this manually through the browser interface.
> >
> > I prefer a batch script where all header fields and the payload are can
> be entered directly
> > for each msg.
> >
> > How can I do this in detail?
> > How would such a command look like?
> >
> > Thank you
> > Ben
>
>
>
>
Re: Easiest way to (pre-)fill/add new msgs into an ActiveMQ server?
Posted by Torsten Mielke <to...@fusesource.com>.
Hello Ben,
You have a couple of options for sending messages to the broker:
- Use the web console
- use JMX operation (e.g. via JConsole)
- use other external tools that aren't provided by ActiveMQ like HermesJMS
- write you own little application
> I prefer a batch script where all header fields and the payload are can be entered directly for each msg.
There is no such tool shipped with ActiveMQ. However you could write one yourself using any scripting language (e.g. Perl, Ruby) and the STOMP protocol.
Torsten Mielke
torsten@fusesource.com
tmielke@blogspot.com
On Mar 19, 2012, at 3:39 PM, Ben Stover wrote:
> Assume I started a new installed ActiveMQ server on a new server machine.
>
> Now I want to pre-fill (e.g. for presentation or testing purposes) this ActiveMQ server with a couple of
> sample msgs.
>
> What is the easiest way to do that?
> I don't want to do this manually through the browser interface.
>
> I prefer a batch script where all header fields and the payload are can be entered directly
> for each msg.
>
> How can I do this in detail?
> How would such a command look like?
>
> Thank you
> Ben