You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by ch...@apache.org on 2006/05/22 05:32:38 UTC
svn commit: r408556 -
/webservices/sandesha/trunk/src/org/apache/sandesha2/workers/Sender.java
Author: chamikara
Date: Sun May 21 20:32:37 2006
New Revision: 408556
URL: http://svn.apache.org/viewvc?rev=408556&view=rev
Log:
SOAP envelope has to be pre-built to support re-transmissions correctly
Modified:
webservices/sandesha/trunk/src/org/apache/sandesha2/workers/Sender.java
Modified: webservices/sandesha/trunk/src/org/apache/sandesha2/workers/Sender.java
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/src/org/apache/sandesha2/workers/Sender.java?rev=408556&r1=408555&r2=408556&view=diff
==============================================================================
--- webservices/sandesha/trunk/src/org/apache/sandesha2/workers/Sender.java (original)
+++ webservices/sandesha/trunk/src/org/apache/sandesha2/workers/Sender.java Sun May 21 20:32:37 2006
@@ -183,6 +183,12 @@
transaction.commit();
msgCtx.setProperty(Sandesha2Constants.WITHIN_TRANSACTION,Sandesha2Constants.VALUE_FALSE);
try {
+
+ //had to fully build the SOAP envelope to support retransmissions.
+ //Otherwise a 'parserAlreadyAccessed' exception could get thrown in retransmissions.
+ //But this has a performance reduction.
+ msgCtx.getEnvelope().build();
+
//TODO change this to cater for security.
transportSender.invoke(msgCtx);
successfullySent = true;
---------------------------------------------------------------------
To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: sandesha-dev-help@ws.apache.org