[rules-dev] [Fwd: Drools Spring] feedback please

Mark Proctor mproctor at codehaus.org
Mon Jan 21 19:23:48 EST 2008


-------- Original Message --------

You can declare the transaction beans as follows:
<bean id="droolsTransactionManager"
class="org.drools.spring.core.DroolsTransactionManager">
    <property name="workingMemory" ref="workingMemory"/>
</bean>

<bean id="txProxyTemplate" abstract="true"
class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
    <property name="proxyTargetClass">
        <value>true</value>
    </property>
    <property name="transactionManager" ref="droolsTransactionManager"/>
        <property name="transactionAttributes">
	<props>
            <prop key="newStatefullSession*">PROPAGATION_REQUIRED</prop>
	</props>
    </property>
</bean>

The last one is only a proxy for the transaction, to declare the pointcuts.
I think the classes for aspects in Ales implementation can be
implemented this way for spring, if not it will be needed to look at :
http://static.springframework.org/spring/docs/2.5.x/reference/aop.html
but I need time for that.

The DroolsTransactionManager is for standalone use.

It was added rule base configuration support for the bean factory of
Geoffrey as well to set the type.

Here are information about getting Resources like URL, input stream, file...
http://static.springframework.org/spring/docs/2.5.x/reference/resources.html


-------------- next part --------------
A non-text attachment was scrubbed...
Name: drools-spring.zip
Type: application/zip
Size: 162272 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/rules-dev/attachments/20080122/91ae6e8d/attachment.zip 


More information about the rules-dev mailing list