You are viewing a plain text version of this content. The canonical link for it is here.
Posted to sandesha-dev@ws.apache.org by da...@apache.org on 2008/05/12 18:53:23 UTC

svn commit: r655558 - /webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/workers/SenderWorker.java

Author: davidillsley
Date: Mon May 12 09:53:22 2008
New Revision: 655558

URL: http://svn.apache.org/viewvc?rev=655558&view=rev
Log:
Performance: Reduce the EPR Decorator cost by not modifying application message ReplyTo EPRs
Thanks to Sara Mitchell for help with this patch

Modified:
    webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/workers/SenderWorker.java

Modified: webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/workers/SenderWorker.java
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/workers/SenderWorker.java?rev=655558&r1=655557&r2=655558&view=diff
==============================================================================
--- webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/workers/SenderWorker.java (original)
+++ webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/workers/SenderWorker.java Mon May 12 09:53:22 2008
@@ -260,15 +260,17 @@
 			// sending the message
 			boolean successfullySent = false;
 			
-			//try to redecorate the EPR if necessary
-			if (log.isDebugEnabled())
-				log.debug("Redecorate EPR : " + msgCtx.getEnvelope().getHeader());
-			EndpointReference replyToEPR = msgCtx.getReplyTo();
-			if(replyToEPR!=null){
-				replyToEPR = SandeshaUtil.getEPRDecorator(msgCtx.getConfigurationContext()).decorateEndpointReference(replyToEPR);
-				msgCtx.setReplyTo(replyToEPR); 
+			// No need to redecorate application messages ... only for rm protocol messages
+			if(Sandesha2Constants.MessageTypes.APPLICATION!=senderBean.getMessageType()){
+				//try to redecorate the EPR if necessary
+				if (log.isDebugEnabled())
+					log.debug("Redecorate EPR : " + msgCtx.getEnvelope().getHeader());
+				EndpointReference replyToEPR = msgCtx.getReplyTo();
+				if(replyToEPR!=null){
+					replyToEPR = SandeshaUtil.getEPRDecorator(msgCtx.getConfigurationContext()).decorateEndpointReference(replyToEPR);
+					msgCtx.setReplyTo(replyToEPR); 
+				}
 			}
-			
 			// have to commit the transaction before sending. This may
 			// get changed when WS-AT is available.
 			if(transaction != null) {



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