You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by aj...@apache.org on 2005/09/05 08:32:02 UTC

svn commit: r278678 - /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/clientapi/InOutMEPClient.java

Author: ajith
Date: Sun Sep  4 23:31:55 2005
New Revision: 278678

URL: http://svn.apache.org/viewcvs?rev=278678&view=rev
Log:
Fixed the messsage ID(relates to) problem. The reason for that is the client not sending the message id. Now the system is configured to send the msg id all the time

Modified:
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/clientapi/InOutMEPClient.java

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/clientapi/InOutMEPClient.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/clientapi/InOutMEPClient.java?rev=278678&r1=278677&r2=278678&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/clientapi/InOutMEPClient.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/clientapi/InOutMEPClient.java Sun Sep  4 23:31:55 2005
@@ -123,6 +123,11 @@
                                          final MessageContext msgctx)
             throws AxisFault {
         prepareInvocation(axisop, msgctx);
+
+        // The message ID is sent all the time
+        String messageID = String.valueOf(System.currentTimeMillis());
+        msgctx.setMessageID(messageID);
+        //
         if (useSeparateListener) {
             //This mean doing a Request-Response invocation using two channel. If the 
             //transport is two way transport (e.g. http) Only one channel is used (e.g. in http cases
@@ -217,12 +222,14 @@
 
             AxisEngine engine = new AxisEngine(syscontext);
             checkTransport(msgctx);
-
+            //Use message id all the time!
+            String messageID = String.valueOf(System.currentTimeMillis());
+            msgctx.setMessageID(messageID);
+            ////
             if (useSeparateListener) {
                 //the invocation happen via a seperate Channel, so we should set up the
                 //information need to correlated the response message and invoke the call back
-                String messageID = String.valueOf(System.currentTimeMillis());
-                msgctx.setMessageID(messageID);
+
                 axisop.setMessageReceiver(callbackReceiver);
                 callbackReceiver.addCallback(messageID, callback);
                 //set the replyto such that the response will arrive at the transport listener started