[rules-users] Drools 6.0.1 xstream marshaling via camel config not working
Mark Proctor
mproctor at codehaus.org
Wed Jan 8 14:30:32 EST 2014
you have your marshal and unmarshal the wrong way around. Please follow the example application:
https://github.com/droolsjbpm/droolsjbpm-integration/blob/master/drools-camel-server-example/src/main/resources/camel-server.xml
https://github.com/droolsjbpm/droolsjbpm-integration/blob/master/drools-camel-server-example/src/main/resources/knowledge-services.xml
Mark
On 8 Jan 2014, at 15:58, jroman <roman.jesus at wanadoo.es> wrote:
> Hi all,
>
> I am not sure if I have met a bug in kie-camel-xstream marshalling (drools
> 6.0.1). The use case is:
>
> Java client: MiniRESTClient.java
> - Build a list of commands, group them under a BatchExecutionCommand and
> send them to a camel route.
>
> Camel route: camel-client.xml
> - Marshal the commad, send it to a drools server and unmarshal the result.
>
>
> The problem is that the marshalling part seams to fail with:
>
>
> It seams that the xstream marshaler is building a java.util.ArrayList
> instead of the expected org.apache.cxf.message.MessageContentsList
>
> The funny thing is that, if I explicitly do the marshaling in the java
> client with:
>
>
>
> And remove the
>
> from the policy definition no exception is thrown and the client-server
> communication works as expected. Besides, I have the reverse policy in the
> server side and there is no problem there.
>
> Am I doing something wrong?
>
> I think I have attached everything needed to test the case: my_tests.zip
> <http://drools.46999.n3.nabble.com/file/n4027607/my_tests.zip>
>
> Thanks for reading down to here and for any help you could provide.
>
>
>
>
> -----
> --
> jroman
> --
> View this message in context: http://drools.46999.n3.nabble.com/Drools-6-0-1-xstream-marshaling-via-camel-config-not-working-tp4027607.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
More information about the rules-users
mailing list