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 ji...@apache.org on 2004/04/19 04:49:53 UTC

[jira] Closed: (AXIS-1316) WSDDTargetedChain makeNewInstance didn't pass parameters to SimpleTargetChain

Message:

   The following issue has been closed.

   Resolver: Davanum Srinivas
       Date: Sun, 18 Apr 2004 7:48 PM

Applied your patch.

thanks,
dims
---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1316

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1316
    Summary: WSDDTargetedChain makeNewInstance didn't pass parameters to SimpleTargetChain
       Type: Bug

     Status: Closed
   Priority: Major
 Resolution: FIXED

    Project: Axis
 Components: 
             Deployment / Registries
   Fix Fors:
             current (nightly)
   Versions:
             current (nightly)

   Assignee: 
   Reporter: Jin

    Created: Wed, 14 Apr 2004 10:12 PM
    Updated: Sun, 18 Apr 2004 7:48 PM
Environment: Any

Description:
WSDDTransport extends from WSDDTargetedChain (all from org.apache.axis.deployment.wsdd). The makeNewInstance(EngineConfiguration) method of WSDDTArgetChain however, does not pass the "parameters" (LockableHashtable) to the SimpleTargetChain before returning it. Therefore the parameters configured in the <transport> element in server-config.wsdd file were never passed over to the transport. This affects deploying custom "Query String Plug-in" in Axis Servlet. According to Axis developer guide and reference http://ws.apache.org/axis/java/developers-guide.html#Axis%20Servlet%20Query%20String%20Plug-ins

One can have:

  <transport name="http">
    <parameter name="useDefaultQueryStrings" value="false" /> 
    <parameter name="qs.mystring" value="my.plugin.Class" />
    <requestFlow>
      <handler type="URLMapper"/>
    </requestFlow>
  </transport>

to override the "default query string processors". This bug makes this feature impossible.

Suggest the following changes:

*** WSDDTargetedChain.java	Thu Apr 15 01:04:04 2004
--- WSDDTargetedChain.java(CVS)	Thu Apr 15 01:04:04 2004
***************
*** 172,182 ****
          if (resp != null)
              respHandler = resp.getInstance(registry);
  
!         Handler retVal = new org.apache.axis.SimpleTargetedChain(reqHandler, pivot,
!                                                                  respHandler);
!         retVal.setOptions(getParametersTable());
! 
!         return retVal;
      }
  
      /**
--- 172,179 ----
          if (resp != null)
              respHandler = resp.getInstance(registry);
  
!         return new org.apache.axis.SimpleTargetedChain(reqHandler, pivot,
!                                                        respHandler);
      }
  
      /**


Thanks/


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira