axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From axis-...@ws.apache.org
Subject [jira] Created: (AXIS-1527) Using multiple AxisServlet in webapp share the same AxisEngine
Date Tue, 24 Aug 2004 07:45:20 GMT
Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1527

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1527
    Summary: Using multiple AxisServlet in webapp share the same AxisEngine
       Type: Wish

     Status: Unassigned
   Priority: Major

    Project: Axis
 Components: 
             Basic Architecture

   Assignee: 
   Reporter: Guillaume Sauthier

    Created: Tue, 24 Aug 2004 12:44 AM
    Updated: Tue, 24 Aug 2004 12:44 AM
Environment: Linux Debian

Description:
I'm using AxisServlet multiple time in my webapp with different configuration for each servlet.

Here is my web.xml :
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
 <display-name>WebApp Dispatching SOAP Requests to SSBs</display-name>
   <servlet-name>My Web Services</servlet-name>
   <servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class>
   <init-param>
     <param-name>axis.serverConfigFile</param-name>
     <param-value>server-config-0.wsdd</param-value>
   </init-param>
 </servlet>
 <servlet-mapping>
   <servlet-name>My Web Services</servlet-name>
   <url-pattern>/My Web Services/*</url-pattern>
 </servlet-mapping>
 <servlet>
   <servlet-name>OtherWebServices</servlet-name>
   <servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class>
   <init-param>
     <param-name>axis.serverConfigFile</param-name>
     <param-value>server-config-1.wsdd</param-value>
   </init-param>
 </servlet>
 <servlet-mapping>
   <servlet-name>OtherWebServices</servlet-name>
   <url-pattern>/OtherWebServices/*</url-pattern>
 </servlet-mapping>
</web-app>

I have developed my own EngineConfigurationFactory to load the specified config file.
But when I try this, I discover that the AxisEngine was loaded only once and was shared between
my AxisServlet instances.
That happens because when we store the Engine, we store it inside the ServletContext (that
is shared between servlets) under a name that is not unique among the servlets : ATTR_AXIS_ENGINE
= "AxisEngine"

is this possible to prefix this name with the servlet name to uniquely identify the Engine
?

Regards
Guillaume


---------------------------------------------------------------------
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


Mime
View raw message