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/jelly/jelly-tags/jms/src/java/org/apache/commons/jelly/tags/jms OnMessageTag.java
Date Mon, 03 Feb 2003 17:58:00 GMT
jstrachan    2003/02/03 09:58:00

  Modified:    jelly/jelly-tags/jms/src/java/org/apache/commons/jelly/tags/jms
                        OnMessageTag.java
  Log:
  Patched mistake in <jms:onMessage> tag which was incorrectly settting the context,
rather than the message as a variable when a Message is received
  
  Revision  Changes    Path
  1.3       +6 -7      jakarta-commons-sandbox/jelly/jelly-tags/jms/src/java/org/apache/commons/jelly/tags/jms/OnMessageTag.java
  
  Index: OnMessageTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/jelly/jelly-tags/jms/src/java/org/apache/commons/jelly/tags/jms/OnMessageTag.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- OnMessageTag.java	26 Jan 2003 06:24:47 -0000	1.2
  +++ OnMessageTag.java	3 Feb 2003 17:58:00 -0000	1.3
  @@ -100,14 +100,13 @@
   			throw new JellyTagException("This tag must be nested within a ConsumerTag like the subscribe
tag");
   		}			
   
  -
   		final JellyContext childContext = context.newJellyContext();
   		final Script script = getBody();
   		final XMLOutput childOutput = output; 
   		
   		MessageListener listener = new MessageListener() {
   			public void onMessage(Message message) {
  -				childContext.setVariable(var, childContext);
  +				childContext.setVariable(var, message);
   				try {
   					script.run(childContext, childOutput);
   				}
  
  
  

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


Mime
View raw message