[rules-users] Serialization of the StatefullKnowledgeSession

Nair, Mahesh Mahesh.Nair at qwest.com
Fri Oct 30 12:29:19 EDT 2009


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20091030/c45f6458/attachment.html 


More information about the rules-users mailing list