Author: keith Date: Thu Aug 7 01:29:58 2008 New Revision: 20527 URL: http://wso2.org/svn/browse/wso2?view=rev&revision=20527
Log: Fixing init function to run on a restart Modified: branches/mashup/java/1.5/java/modules/core/src/org/wso2/mashup/transport/MainServlet.java Modified: branches/mashup/java/1.5/java/modules/core/src/org/wso2/mashup/transport/MainServlet.java URL: http://wso2.org/svn/browse/wso2/branches/mashup/java/1.5/java/modules/core/src/org/wso2/mashup/transport/MainServlet.java?rev=20527&r1=20526&r2=20527&view=diff ============================================================================== --- branches/mashup/java/1.5/java/modules/core/src/org/wso2/mashup/transport/MainServlet.java (original) +++ branches/mashup/java/1.5/java/modules/core/src/org/wso2/mashup/transport/MainServlet.java Thu Aug 7 01:29:58 2008 @@ -100,10 +100,11 @@ } catch (UserStoreException e) { log.error("Error initializing email verifier.", e); } - initMashups(configCtx.getAxisConfiguration()); + initMashups(configCtx); } - private void initMashups(AxisConfiguration axisConfig) { + private void initMashups(ConfigurationContext configCtx) { + AxisConfiguration axisConfig = configCtx.getAxisConfiguration(); PersistenceManager persistenceMgr = new PersistenceManager(); // This property is set in the DB to figure out weather the Mashup Server has started. @@ -139,7 +140,7 @@ service); engine.getCx().putThreadLocal( JavaScriptEngineConstants.AXIS2_CONFIGURATION_CONTEXT, - axisConfig); + configCtx); // Load the JavaScriptHostObjects that are spefified using the parameter // <parameter name="javascript.hostobjects"> in the axis2.xml JavaScriptEngineUtils _______________________________________________ Mashup-dev mailing list [email protected] http://mailman.wso2.org/cgi-bin/mailman/listinfo/mashup-dev
