Author: keith
Date: Tue Apr 29 08:45:16 2008
New Revision: 16344
Log:
Making ScraperHostObject use a new ConfigurationContext Rather than use the one
of the server as this can cause problems
Modified:
trunk/mashup/java/modules/hostobjects/src/org/wso2/mashup/hostobjects/scraper/ScraperHostObject.java
Modified:
trunk/mashup/java/modules/hostobjects/src/org/wso2/mashup/hostobjects/scraper/ScraperHostObject.java
==============================================================================
---
trunk/mashup/java/modules/hostobjects/src/org/wso2/mashup/hostobjects/scraper/ScraperHostObject.java
(original)
+++
trunk/mashup/java/modules/hostobjects/src/org/wso2/mashup/hostobjects/scraper/ScraperHostObject.java
Tue Apr 29 08:45:16 2008
@@ -23,6 +23,7 @@
import org.apache.axis2.addressing.EndpointReference;
import org.apache.axis2.client.Options;
import org.apache.axis2.context.ConfigurationContext;
+import org.apache.axis2.context.ConfigurationContextFactory;
import org.apache.axis2.description.AxisService;
import org.apache.axis2.rpc.client.RPCServiceClient;
import org.apache.log4j.Logger;
@@ -34,6 +35,7 @@
import org.wso2.javascript.rhino.JavaScriptEngineConstants;
import org.wso2.javascript.xmlimpl.XML;
import org.wso2.mashup.MashupFault;
+import org.wso2.mashup.MashupConstants;
import org.wso2.wsas.ServerManager;
import javax.xml.namespace.QName;
@@ -122,7 +124,12 @@
AdminUIServletContextListener.contextPath + "/" +
configContext.getServicePath() +
"/ScraperService/scrape";
try {
- RPCServiceClient serviceClient = new RPCServiceClient();
+ String wso2wsasHome =
System.getProperty(MashupConstants.WSO2WSAS_HOME);
+ ConfigurationContext configurationContext =
+
ConfigurationContextFactory.createConfigurationContextFromFileSystem(
+ wso2wsasHome + File.separator +
MashupConstants.WORK_DIRECTORY +
+ File.separator +
MashupConstants.REPO_DIRECTORY);
+ RPCServiceClient serviceClient = new
RPCServiceClient(configurationContext, null);
EndpointReference to = new EndpointReference(serviceEndpoint);
Options options = new Options();
options.setTimeOutInMilliSeconds(2000000);
_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev