Afkham,

Why would it be the responsibility of a method called "initTransport"
to initialize the ListingAgent?

Andreas

On Tue, Dec 21, 2010 at 13:54,  <[email protected]> wrote:
> Author: azeez
> Date: Tue Dec 21 12:54:09 2010
> New Revision: 1051479
>
> URL: http://svn.apache.org/viewvc?rev=1051479&view=rev
> Log:
> Fix for AXIS2-3863
>
>
> Modified:
>    
> axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/AxisServlet.java
>
> Modified: 
> axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/AxisServlet.java
> URL: 
> http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/AxisServlet.java?rev=1051479&r1=1051478&r2=1051479&view=diff
> ==============================================================================
> --- 
> axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/AxisServlet.java
>  (original)
> +++ 
> axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/AxisServlet.java
>  Tue Dec 21 12:54:09 2010
> @@ -478,19 +478,21 @@ public class AxisServlet extends HttpSer
>                         "must be configured with a port number. WSDL 
> generation will be " +
>                         "unreliable.");
>             }
> -
> -            ListenerManager listenerManager = new ListenerManager();
> -            listenerManager.init(configContext);
> -            listenerManager.start();
> -            agent = new ListingAgent(configContext);
>
> +            initTransport();
>             initParams();
> -
>         } catch (Exception e) {
>             throw new ServletException(e);
>         }
>     }
> -
> +
> +    protected void initTransport() {
> +        ListenerManager listenerManager = new ListenerManager();
> +        listenerManager.init(configContext);
> +        listenerManager.start();
> +        agent = new ListingAgent(configContext);
> +    }
> +
>     private AxisServletListener getAxisServletListener(String name) {
>         TransportInDescription desc = axisConfiguration.getTransportIn(name);
>         if (desc == null) {
> @@ -550,9 +552,7 @@ public class AxisServlet extends HttpSer
>      */
>     @Override
>     public void init() throws ServletException {
> -        if (this.servletConfig != null
> -                &&
> -                !initCalled) {
> +        if (this.servletConfig != null && !initCalled) {
>             init(this.servletConfig);
>         }
>     }
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to