Author: keith Date: Thu Aug 7 01:29:51 2008 New Revision: 20526 URL: http://wso2.org/svn/browse/wso2?view=rev&revision=20526
Log: Fixing init function to run on a restart Modified: trunk/mashup/java/modules/core/src/org/wso2/mashup/transport/MainServlet.java Modified: trunk/mashup/java/modules/core/src/org/wso2/mashup/transport/MainServlet.java URL: http://wso2.org/svn/browse/wso2/trunk/mashup/java/modules/core/src/org/wso2/mashup/transport/MainServlet.java?rev=20526&r1=20525&r2=20526&view=diff ============================================================================== --- trunk/mashup/java/modules/core/src/org/wso2/mashup/transport/MainServlet.java (original) +++ trunk/mashup/java/modules/core/src/org/wso2/mashup/transport/MainServlet.java Thu Aug 7 01:29:51 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
