diff options
| author | ogattaz <olivier@gattaz.com> | 2014-07-24 18:30:23 +0200 |
|---|---|---|
| committer | ogattaz <olivier@gattaz.com> | 2014-07-24 18:30:23 +0200 |
| commit | f37883c23f9032ace7e0e780fa0e641859863c0c (patch) | |
| tree | 9a0e7a3c9e6118f4f34dd655255d21ecf966019e /src/main/java/com/c2kernel/process/Gateway.java | |
| parent | 9daf11b2b6b19e385688ae93ce7d261805d8ea4e (diff) | |
CastorXMLUtility enhancements to use specific classloader rather than
the main one and to configure castor if needed
Diffstat (limited to 'src/main/java/com/c2kernel/process/Gateway.java')
| -rw-r--r-- | src/main/java/com/c2kernel/process/Gateway.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/main/java/com/c2kernel/process/Gateway.java b/src/main/java/com/c2kernel/process/Gateway.java index 8a34e72..cd76d0e 100644 --- a/src/main/java/com/c2kernel/process/Gateway.java +++ b/src/main/java/com/c2kernel/process/Gateway.java @@ -106,12 +106,10 @@ public class Gateway // report version info
Logger.msg("Kernel version: "+getKernelVersion());
- // load kernel mapfiles
- try {
- mMarshaller = new CastorXMLUtility(mResource.getKernelResourceURL("mapFiles/"));
- } catch (MalformedURLException e1) {
- throw new InvalidDataException("Invalid Resource Location", "");
- }
+ // load kernel mapfiles giving the resourse loader and the properties of
+ // the application to be able to configure castor
+ mMarshaller = new CastorXMLUtility(mResource, props, "mapFiles/");
+
// init module manager
try {
|
