Hi Nestor,
 
I tried some thing similar
 
Got hold of the marshaller like below , i could then marshall and unmarshall succesfully. But i tried it on a very simple flow.

Marshaller marshaller = MarshallerFactory.newMarshaller( ksession.getKnowledgeBase(), new ObjectMarshallingStrategy[]{ MarshallerFactory.newSerializeMarshallingStrategy() } );

 

Mahesh

From: rules-users-bounces@lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] On Behalf Of Nestor Tarin Burriel
Sent: Friday, October 30, 2009 12:37 PM
To: Rules Users List
Subject: Re: [rules-users] Serialization of the StatefullKnowledgeSession

Hi Nair I tried this (see the last comment):

https://jira.jboss.org/jira/browse/JBRULES-1946

The issue is closed, but it still throw me that exception. Try it and check if it works in your enviroment and feed me back please!

Cheers,
Nestor

2009/10/30 Nair, Mahesh <Mahesh.Nair@qwest.com>
Hi,
I am trying to implement one drools rule flow based feature to my application.
My application consists of a struts2 application as well as a rcp desktop application as its client.
 
We are using satefullKnowledgeSession which we want to keep around in the Http Session because it will be used by multiple requests during a user session.
 
But the StateFullKnowledgeSession is not serilaizable and hence if I keep it in my http session it will affect the session replication.
 
I am sure some of you have already faced this issue so was interested to know so of the approaches you took to overcome this hurdle.
 
One of the approaches we are thinking about is to use the org.drools.marshalling.Marshaller to do the marshalling and get a byte array output and place it inside the session and umarshall that later.
Is this a valid approach?
 
Thanks
mahesh


This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly
prohibited and may be unlawful. If you have received this communication
in error, please immediately notify the sender by reply e-mail and destroy
all copies of the communication and any attachments.

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users




This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly
prohibited and may be unlawful. If you have received this communication
in error, please immediately notify the sender by reply e-mail and destroy
all copies of the communication and any attachments.