<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I'll bite, although most likely I'm missing something obvious here <br>
<br>
Code sample itself is clear enough (and builds cleanly with maven), and
I *think* I can see the intention from the various Spring aspects and
config files (although I'm not sure of the purpose of the aspects. ....
yet!)<br>
<br>
Looking at the example (DroolsTest.java) what I see is the Drools
classes being loaded pretty much as normal (no Spring)<br>
<br>
What I expected to see in the sample was:<br>
1) Test gets a handle to the Spring config file<br>
2) Spring auto-configuring the beans based on the contents of this
file..<br>
3) A call (via a bean that we've obtained from the Spring Context)
which causes the Rule engine to fire<br>
4) A 2nd config file showing how to configure Spring transactions /
proxy etc<br>
<br>
What can I do to help? Given that this isn't in SVN yet , what's the
best way to manage the code?<br>
<br>
Paul<br>
<br>
<br>
Mark Proctor wrote:
<blockquote cite="mid:47953794.9030409@codehaus.org" type="cite">--------
Original Message --------
  <br>
  <br>
You can declare the transaction beans as follows:
  <br>
&lt;bean id="droolsTransactionManager"
  <br>
class="org.drools.spring.core.DroolsTransactionManager"&gt;
  <br>
&nbsp;&nbsp; &lt;property name="workingMemory" ref="workingMemory"/&gt;
  <br>
&lt;/bean&gt;
  <br>
  <br>
&lt;bean id="txProxyTemplate" abstract="true"
  <br>
class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"&gt;
  <br>
&nbsp;&nbsp; &lt;property name="proxyTargetClass"&gt;
  <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;value&gt;true&lt;/value&gt;
  <br>
&nbsp;&nbsp; &lt;/property&gt;
  <br>
&nbsp;&nbsp; &lt;property name="transactionManager"
ref="droolsTransactionManager"/&gt;
  <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;property name="transactionAttributes"&gt;
  <br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;props&gt;
  <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;prop
key="newStatefullSession*"&gt;PROPAGATION_REQUIRED&lt;/prop&gt;
  <br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;/props&gt;
  <br>
&nbsp;&nbsp; &lt;/property&gt;
  <br>
&lt;/bean&gt;
  <br>
  <br>
The last one is only a proxy for the transaction, to declare the
pointcuts.
  <br>
I think the classes for aspects in Ales implementation can be
  <br>
implemented this way for spring, if not it will be needed to look at :
  <br>
<a class="moz-txt-link-freetext" href="http://static.springframework.org/spring/docs/2.5.x/reference/aop.html">http://static.springframework.org/spring/docs/2.5.x/reference/aop.html</a>
  <br>
but I need time for that.
  <br>
  <br>
The DroolsTransactionManager is for standalone use.
  <br>
  <br>
It was added rule base configuration support for the bean factory of
  <br>
Geoffrey as well to set the type.
  <br>
  <br>
Here are information about getting Resources like URL, input stream,
file...
  <br>
<a class="moz-txt-link-freetext" href="http://static.springframework.org/spring/docs/2.5.x/reference/resources.html">http://static.springframework.org/spring/docs/2.5.x/reference/resources.html</a>
  <br>
  <br>
  <br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
rules-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-dev">https://lists.jboss.org/mailman/listinfo/rules-dev</a>
  </pre>
</blockquote>
<br>
</body>
</html>