commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject cvs commit: jakarta-commons-sandbox/messenger/src/conf subscribe.xml
Date Mon, 08 Jul 2002 15:15:24 GMT
jstrachan    2002/07/08 08:15:24

  Modified:    messenger maven.xml
               messenger/src/java/org/apache/commons/messagelet
                        BridgeMDO.java
               messenger/src/conf subscribe.xml
  Log:
  updated to add some demos to maven-ng's maven.xml file
  
  Revision  Changes    Path
  1.2       +19 -3     jakarta-commons-sandbox/messenger/maven.xml
  
  Index: maven.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/messenger/maven.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- maven.xml	8 Jul 2002 14:37:36 -0000	1.1
  +++ maven.xml	8 Jul 2002 15:15:24 -0000	1.2
  @@ -1,8 +1,7 @@
   <project default="java:jar" xmlns:j="jelly:core">
   
  -  <!-- runs a sample number of subscriptions -->	
  -  <goal name="subscribe" prereqs="java:compile">
  -  
  +  <goal name="set.classpath" prereqs="java:compile">
  +
     	<echo>
   		Using JMS from lib dir ${jms.lib.dir} and config dir ${jms.classes.dir}
       </echo>
  @@ -19,11 +18,28 @@
         </fileset>
   	</path>
   	
  +  </goal>
  +  		
  +  <!-- runs a sample number of subscriptions -->	
  +  <goal name="demo.subscribe" prereqs="set.classpath">
  +  
       <java classname="org.apache.commons.messagelet.Main" fork="yes">
         <classpath refid="jms.classpath"/>
   
         <arg value="src/conf/subscribe.xml"/>
         <arg value="${messenger.xml}"/>
  +    </java>
  +  </goal>
  +	
  +  <goal name="demo.send" prereqs="set.classpath"
  +    description="Sends a message for processing by an MDO">
  +    
  +    <java classname="org.apache.commons.messenger.tool.Producer" fork="yes">
  +      <classpath refid="jms.classpath"/>
  +      <arg value="queue"/>
  +      <arg value="my.input"/>
  +      <arg value="src/conf/sampleMessage.txt"/>
  +      <sysproperty key="org.apache.commons.messenger" value="${messenger.xml}"/>
       </java>
     </goal>
   	
  
  
  
  1.4       +1 -0      jakarta-commons-sandbox/messenger/src/java/org/apache/commons/messagelet/BridgeMDO.java
  
  Index: BridgeMDO.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/messenger/src/java/org/apache/commons/messagelet/BridgeMDO.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- BridgeMDO.java	8 Jul 2002 14:37:36 -0000	1.3
  +++ BridgeMDO.java	8 Jul 2002 15:15:24 -0000	1.4
  @@ -110,6 +110,7 @@
                   if ( log.isDebugEnabled() ) {
                       log.debug( "Sending message to: " + destination );
                   }
  +                
                   getOutputMessenger().send( destination, outputMessage );
               }
               acknowledge(message);
  
  
  
  1.7       +1 -1      jakarta-commons-sandbox/messenger/src/conf/subscribe.xml
  
  Index: subscribe.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/messenger/src/conf/subscribe.xml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- subscribe.xml	8 Jul 2002 14:37:36 -0000	1.6
  +++ subscribe.xml	8 Jul 2002 15:15:24 -0000	1.7
  @@ -2,7 +2,7 @@
   <subscriptions>
   
     <!-- bridge to another JMS provider -->
  -  <subscription connection="queue" subject="my.input" selector="b='12'">
  +  <subscription connection="queue" subject="my.input2" selector="b='12'">
       <bridge outputConnection="queue" outputSubject="my.output"/>
     </subscription>
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message