It seems to me that an environment is not the best place for an operation that<br>could depend on the session and/or a client's request. It could be used additionally,<br>but not without the direct approach.<br>-W<br><br>
<div class="gmail_quote">On 21 April 2011 02:23, Mark Proctor <span dir="ltr"><<a href="mailto:mproctor@codehaus.org">mproctor@codehaus.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On 20/04/2011 22:19, ljnelson wrote:<br>
> I filed a pull request to fix this issue:<br>
> <a href="https://github.com/droolsjbpm/drools/pull/7" target="_blank">https://github.com/droolsjbpm/drools/pull/7</a><br>
</div>I just checked the code and it seems we have two conflict approaches. So<br>
currently the method you are replacing calls:<br>
public ObjectMarshallingStrategyStore<br>
getObjectMarshallingStrategyStore() {<br>
if ( this.marshallingStore == null ) {<br>
this.marshallingStore = new ObjectMarshallingStrategyStore(<br>
<br>
(ObjectMarshallingStrategy[]) this.environment.get(<br>
EnvironmentName.OBJECT_MARSHALLING_STRATEGIES ) );<br>
}<br>
return this.marshallingStore;<br>
}<br>
<br>
Notice it uses the environment. That means you must inject yoru<br>
strategies into the ENV and they will get picked up.<br>
<br>
But on the other hand we clearly made strategies part of the<br>
MarshallingConfiguration which is a member field on DefaultMarshaller<br>
and currently being ignored.<br>
<br>
I'm not sure why we have both at this stage, will need to sleep on it to<br>
refresh my mind on the best way forward.<br>
<font color="#888888"><br>
Mark<br>
</font><div><div></div><div class="h5">> Best,<br>
> Laird<br>
><br>
> --<br>
> View this message in context: <a href="http://drools.46999.n3.nabble.com/Serialization-errors-bug-JBRULES-2976-filed-tp2843422p2843834.html" target="_blank">http://drools.46999.n3.nabble.com/Serialization-errors-bug-JBRULES-2976-filed-tp2843422p2843834.html</a><br>
> Sent from the Drools: Developer (committer) mailing list mailing list archive at Nabble.com.<br>
> _______________________________________________<br>
> rules-dev mailing list<br>
> <a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
><br>
><br>
<br>
<br>
_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
</div></div></blockquote></div><br>