Bug in the way Axis2 is setting the out transport.
--------------------------------------------------

         Key: AXIS2-835
         URL: http://issues.apache.org/jira/browse/AXIS2-835
     Project: Apache Axis 2.0 (Axis2)
        Type: Bug

  Components: transports  
 Environment: Mac OS X
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-112)
Java HotSpot(TM) Client VM (build 1.5.0_06-64, mixed mode, sharing)
    Reporter: Chamil Thanthrimudalige
 Assigned to: Deepal Jayasinghe 


In the HTTP scenario it is done from within the method "protected  void 
doService(final HttpRequest request, final HttpResponse response) throws 
HttpException, IOException" in the  
org.apache.axis2.transport.http.server.DefaultHttpServiceProcessor  class.

The code that is there now sets the HTTP transport as the out transport 
irrelevant of the EPR.

Following is the culprit bit of code:

            TransportOutDescription transportOut = 
this.configurationContext.getAxisConfiguration()
                .getTransportOut(new QName(Constants.TRANSPORT_HTTP));
            TransportInDescription transportIn = 
this.configurationContext.getAxisConfiguration()
                .getTransportIn(new QName(Constants.TRANSPORT_HTTP));           
 
        
            msgContext.setConfigurationContext(this.configurationContext);

            String sessionKey = (String) 
this.httpcontext.getAttribute(Constants.COOKIE_STRING);
            if 
(this.configurationContext.getAxisConfiguration().isManageTransportSession()) {
                SessionContext sessionContext = 
this.sessionManager.getSessionContext(sessionKey);
                msgContext.setSessionContext(sessionContext);
            }
            msgContext.setTransportIn(transportIn);
            msgContext.setTransportOut(transportOut);

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to