How does drools-camel-server unmarshal facts that are not available in the classpath? i.e when KieModule is loaded dynamically.
I am trying to replace camel with spring in execution server. When I issue commands without facts it works fine. But with facts that are dynamically loaded, the unmarshal fails, hence the execution fails.
Example:
The mortgages kjar is dynamically loaded.
<batch-execution lookup="mortgages:mortgages:ikSession">
.
<insert out-identifier="10101" return-object="true" entry-point="DEFAULT">
<org.mortgages.Applicant/>
</insert>
<fire-all-rules/>
</batch-execution>
---- Debugging information ----
message : org.mortgages.Applicant
cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message : org.mortgages.Applicant
class : org.drools.core.command.runtime.rule.InsertObjectCommand
required-type : org.drools.core.command.runtime.rule.InsertObjectCommand
converter-type : org.drools.core.runtime.help.impl.XStreamXML$InsertConverter
path : /batch-execution/insert/org.mortgages.Applicant
line number : 3
class[1] : org.drools.core.command.runtime.BatchExecutionCommandImpl
converter-type[1] : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
version : null
-------------------------------