01: /*
02: * ChainBuilder ESB
03: * Visual Enterprise Integration
04: *
05: * Copyright (C) 2007 Bostech Corporation
06: *
07: * This program is free software; you can redistribute it and/or modify it
08: * under the terms of the GNU General Public License as published by the
09: * Free Software Foundation; either version 2 of the License, or (at your option)
10: * any later version.
11: *
12: * This program is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14: * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15: * for more details.
16: *
17: * You should have received a copy of the GNU General Public License along with
18: * this program; if not, write to the Free Software Foundation, Inc.,
19: * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20: *
21: *
22: * $Id: SoapServlet.java 8702 2007-08-23 21:02:31Z mpreston $
23: */
24: package com.bostechcorp.cbesb.runtime.component.http.server;
25:
26: import javax.servlet.ServletConfig;
27: import javax.servlet.ServletException;
28:
29: import org.apache.axis2.Constants;
30: import org.apache.axis2.context.ConfigurationContext;
31: import org.apache.axis2.transport.http.AxisServlet;
32:
33: public class SoapServlet extends AxisServlet {
34:
35: /**
36: *
37: */
38: private static final long serialVersionUID = -2256618621948422459L;
39:
40: private ConfigurationContext savedConfigContext;
41:
42: /**
43: *
44: */
45: public SoapServlet(ConfigurationContext configContext) {
46: super ();
47: this .configContext = configContext;
48: this .savedConfigContext = configContext;
49: }
50:
51: /*
52: * (non-Javadoc)
53: *
54: * @see org.apache.axis2.transport.http.AxisServlet#initConfigContext(javax.servlet.ServletConfig)
55: */
56: protected ConfigurationContext initConfigContext(
57: ServletConfig config) throws ServletException {
58: // nothing to do, just return the configuration context. Avoid loading
59: // the configuration from default location (WAR)
60: this.savedConfigContext.setProperty(
61: Constants.CONTAINER_MANAGED, Constants.VALUE_TRUE);
62: return this.savedConfigContext;
63: }
64:
65: }
|