You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by James Strachan <ja...@yahoo.co.uk> on 2002/05/07 18:04:36 UTC
[messenger] JMS send Ant task available....
For testing its often useful to fire in a bunch of messages to some JMS
consumer then wait for something to happen. I've added a simple little Ant
task to the Messenger project that allows you to use the Ant <fileset>
mechanism to find a bunch of files to send as JMS text messages to some JMS
connection and destination.
Its all available in Jakarta's CVS repository now. Here's an example of it
in use...
<!-- define the new task -->
<taskdef
name="jmsSend"
classname="org.apache.commons.messenger.task.ProducerTask">
<classpath refid="test.classpath"/>
</taskdef>
<!-- now lets use it in some target... -->
<jmsSend
messengerName="someConnection"
configuration="src/test/Messenger.xml"
subject="MY.QUEUE"
sleep="2000">
<!-- send all XML documents we find in this directory tree -->
<fileset dir="src/test/data" includes="**/*.xml"/>
</jmsSend>
James
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>