<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta content="MSHTML 6.00.6000.16915" name="GENERATOR">
</head>
<body>
<div dir="ltr" align="left"><font face="Arial" color="#0000ff" size="2"></font>&nbsp;</div>
<div><span class="447550218-30102009"></span><font face="Arial"><font color="#0000ff"><font size="2">Hi&nbsp;Nestor,</font></font></font></div>
<div><font face="Arial"><font color="#0000ff"><font size="2"></font></font></font>&nbsp;</div>
<div><font><font><font face="Arial"><font color="#0000ff"><font size="2">I<span class="447550218-30102009"> tried some thing similar
</span></font></font></font></font></font></div>
<div><font><font><font face="Arial"><font color="#0000ff"><font size="2"><span class="447550218-30102009"></span></font></font></font></font></font>&nbsp;</div>
<div><font><font><font face="Arial"><font color="#0000ff"><font size="2"><span class="447550218-30102009">Got hold of the marshaller like below , i could then marshall and unmarshall succesfully. But i tried it on a very simple flow.</span></font></font></font></font></font></div>
<div><font><font><font face="Arial"><font color="#0000ff"><font size="2"><span class="447550218-30102009"><font size="2">
<p align="left">Marshaller marshaller = MarshallerFactory.<i>newMarshaller</i>( ksession.getKnowledgeBase(),
</font><b><font color="#7f0055" size="2"><font color="#7f0055" size="2">new</b></font></font><font size="2"> ObjectMarshallingStrategy[]{ MarshallerFactory.<i>newSerializeMarshallingStrategy</i>() } );
</font></p>
<p align="left"><font size="2">&nbsp;</p>
</font></span></font></font></font></font></font></div>
<div><span class="447550218-30102009"></span><font face="Arial"><font color="#0000ff"><font size="2">M<span class="447550218-30102009">ahesh</span></font></font></font><br>
</div>
<div class="OutlookMessageHeader" lang="en-us" dir="ltr" align="left">
<hr tabindex="-1">
<font face="Tahoma" size="2"><b>From:</b> rules-users-bounces@lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org]
<b>On Behalf Of </b>Nestor Tarin Burriel<br>
<b>Sent:</b> Friday, October 30, 2009 12:37 PM<br>
<b>To:</b> Rules Users List<br>
<b>Subject:</b> Re: [rules-users] Serialization of the StatefullKnowledgeSession<br>
</font><br>
</div>
<div></div>
Hi Nair I tried this (see the last comment):<br>
<br>
<a href="https://jira.jboss.org/jira/browse/JBRULES-1946">https://jira.jboss.org/jira/browse/JBRULES-1946</a><br>
<br>
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!<br>
<br>
Cheers,<br>
Nestor<br>
<br>
<div class="gmail_quote">2009/10/30 Nair, Mahesh <span dir="ltr">&lt;<a href="mailto:Mahesh.Nair@qwest.com">Mahesh.Nair@qwest.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div>
<div>
<div><font face="Arial" size="2"><span>Hi,</span></font></div>
<div><font face="Arial" size="2"><span>I am trying to implement one&nbsp;<span>drools </span>
rule flow based feature to my application.</span></font></div>
<div><font face="Arial" size="2"><span>My application consists of a struts2 application as well as a rcp desktop application as its client.
</span></font></div>
<div><font face="Arial" size="2"><span></span></font>&nbsp;</div>
<div><font face="Arial" size="2"><span><span>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.</span></span></font></div>
<div><font face="Arial" size="2"><span><span></span></span></font>&nbsp;</div>
<div><font face="Arial" size="2"><span><span>But the StateFullKnowledgeSession is not serilaizable and hence if I keep it in my http session it will affect the session replication.</span></span></font></div>
<div><font face="Arial" size="2"><span><span></span></span></font>&nbsp;</div>
<div><font face="Arial" size="2"><span><span>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.</span></span></font></div>
<div><font face="Arial" size="2"><span><span></span></span></font>&nbsp;</div>
<div><font face="Arial" size="2"><span><span>One of the approaches we are thinking about is to use the
<font size="2"><font size="2">org.drools.marshalling.Marshaller to do the marshalling and get a byte array output and place it inside the session and umarshall that later.</font></font></span></span></font></div>
<div><font face="Arial" size="2"><span><span>Is this a valid approach? </span></span></font></div>
<div><font face="Arial" size="2"><span><span></span></span></font>&nbsp;</div>
<div><font face="Arial" size="2"><span><span>Thanks</span></span></font></div>
<div><font face="Arial" size="2"><span><span>mahesh</span></span></font></div>
</div>
<br>
<hr>
<font face="Arial" color="gray" size="1">This communication is the property of Qwest and may contain confidential or<br>
privileged information. Unauthorized use of this communication is strictly<br>
prohibited and may be unlawful. If you have received this communication<br>
in error, please immediately notify the sender by reply e-mail and destroy<br>
all copies of the communication and any attachments.<br>
</font></div>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br>
</blockquote>
</div>
<br>
<br>
<hr>
<font face="Arial" color="Gray" size="1">This communication is the property of Qwest and may contain confidential or<br>
privileged information. Unauthorized use of this communication is strictly<br>
prohibited and may be unlawful. If you have received this communication<br>
in error, please immediately notify the sender by reply e-mail and destroy<br>
all copies of the communication and any attachments.<br>
</font>
</body>
</html>