<!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">
Mark <br>
<br>
All you need to know about Spring: You write your code as JavaBeans,
and Spring does the rest. <br>
<br>
Yep, I have some code to do steps 1-3 that I talk about below, so a
branch in SVN would help me add it to the project. <br>
<br>
Did Xavier? mention if he planned to more work on this ?<br>
<br>
Paul<br>
<br>
Mark Proctor wrote:
<blockquote cite="mid:47979753.6070303@codehaus.org" type="cite">
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
Paul Browne wrote:
<blockquote cite="mid:47977AAD.8030807@firstpartners.net" type="cite">
<meta content="text/html;charset=ISO-8859-1"
http-equiv="Content-Type">
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>
</blockquote>
I know nothing about spring. But it people believe this is a good
starting base, I'll create a branch and add it in so people can work on
it. So shall I add this now?<br>
<blockquote cite="mid:47977AAD.8030807@firstpartners.net" type="cite"><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>
<bean id="droolsTransactionManager" <br>
class="org.drools.spring.core.DroolsTransactionManager"> <br>
<property name="workingMemory" ref="workingMemory"/> <br>
</bean> <br>
<br>
<bean id="txProxyTemplate" abstract="true" <br>
class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
<br>
<property name="proxyTargetClass"> <br>
<value>true</value> <br>
</property> <br>
<property name="transactionManager"
ref="droolsTransactionManager"/> <br>
<property name="transactionAttributes"> <br>
<props> <br>
<prop
key="newStatefullSession*">PROPAGATION_REQUIRED</prop> <br>
</props> <br>
</property> <br>
</bean> <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 moz-do-not-send="true" 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 moz-do-not-send="true" 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 moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a>
<a moz-do-not-send="true" 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>
<pre wrap="">_______________________________________________
rules-dev mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a>
<a moz-do-not-send="true" 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>
<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>