[jboss-svn-commits] JBL Code SVN: r9054 - labs/jbossesb/trunk/product/samples/trailblazer/esb/src/org/jboss/soa/esb/samples/trailblazer/actions.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Sat Jan 27 22:09:15 EST 2007


Author: daniel.brum at jboss.com
Date: 2007-01-27 22:09:15 -0500 (Sat, 27 Jan 2007)
New Revision: 9054

Modified:
   labs/jbossesb/trunk/product/samples/trailblazer/esb/src/org/jboss/soa/esb/samples/trailblazer/actions/CreditAgencyActions.java
Log:
clean up

Modified: labs/jbossesb/trunk/product/samples/trailblazer/esb/src/org/jboss/soa/esb/samples/trailblazer/actions/CreditAgencyActions.java
===================================================================
--- labs/jbossesb/trunk/product/samples/trailblazer/esb/src/org/jboss/soa/esb/samples/trailblazer/actions/CreditAgencyActions.java	2007-01-28 03:08:15 UTC (rev 9053)
+++ labs/jbossesb/trunk/product/samples/trailblazer/esb/src/org/jboss/soa/esb/samples/trailblazer/actions/CreditAgencyActions.java	2007-01-28 03:09:15 UTC (rev 9054)
@@ -59,10 +59,11 @@
 		int score = rand.nextInt(n+1);
 		
 		//send back the reply
-		replyMessage = MessageFactory.getInstance().getMessage(MessageType.JBOSS_XML);
-		replyMessage.getBody().setContents(Integer.toString(score).getBytes());
+		replyMessage = MessageFactory.getInstance().getMessage(MessageType.JBOSS_XML);		
+		_logger.info("CreditAgency sending back a credit score of " + score);
+		replyMessage.getBody().setContents(Integer.toString(score).getBytes());		
 		EPR replyEPR = message.getHeader().getCall().getReplyTo();
-		CourierFactory.getCourier(replyEPR).deliver(message);       
+		CourierFactory.getCourier(replyEPR).deliver(replyMessage);       
 		
 		//send the message back to the action processing chain
 		return message;
@@ -77,5 +78,8 @@
 		
 		return message;
 	}
+	
+	
+}
 
-}
+




More information about the jboss-svn-commits mailing list