Author: doogie
Date: Thu Apr 16 20:06:54 2009
New Revision: 765738
URL:
http://svn.apache.org/viewvc?rev=765738&view=revLog:
Switch to the newly introduced GenericDispatcher.newInstance variant.
Modified:
ofbiz/trunk/framework/webslinger/src/org/ofbiz/webslinger/WebslingerContextMapper.java
Modified: ofbiz/trunk/framework/webslinger/src/org/ofbiz/webslinger/WebslingerContextMapper.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/webslinger/src/org/ofbiz/webslinger/WebslingerContextMapper.java?rev=765738&r1=765737&r2=765738&view=diff==============================================================================
--- ofbiz/trunk/framework/webslinger/src/org/ofbiz/webslinger/WebslingerContextMapper.java (original)
+++ ofbiz/trunk/framework/webslinger/src/org/ofbiz/webslinger/WebslingerContextMapper.java Thu Apr 16 20:06:54 2009
@@ -40,6 +40,7 @@
import org.ofbiz.entity.util.EntityUtil;
import org.ofbiz.security.SecurityFactory;
import org.ofbiz.service.GenericDispatcher;
+import org.ofbiz.service.GenericServiceException;
import org.ofbiz.service.LocalDispatcher;
import org.webslinger.AbstractMappingWebslingerServletContextFactory;
import org.webslinger.WebslingerServletContext;
@@ -109,7 +110,11 @@
}
}
System.err.println(readerURLs);
- return GenericDispatcher.getLocalDispatcher(name, delegator, readerURLs, null);
+ try {
+ return GenericDispatcher.newInstance(name, delegator, readerURLs, true, true, true);
+ } catch (GenericServiceException e) {
+ throw (IOException) new IOException(e.getMessage()).initCause(e);
+ }
}
protected Set<String> getSuffixes() throws Exception {