[rules-users] 5.1.0 CR1: Drools Spring Configuration Changed?

Mark Proctor mproctor at codehaus.org
Wed Jul 28 17:15:01 EDT 2010


  use the kstore element. You already have the various jpa settings in 
spring as beans. So you can retrieve those and pass them as parameters 
to the kstore in java code; which follows exactly the same interface as 
JPAKnowledgeService.

Mark
On 28/07/2010 15:41, tolitius wrote:
> 1. If there is no answer for this, I will resurrect
> "JPAKnowledgeServiceBean", cause it is actually one place to deal with
> creating / reloading Sessions + it has a good simple APIs:
>
>         createNew...()
>         load...( id )
>
>      hence makes sense.
>
> 2. Under the covers it'll have to probably use "KnowledgeStoreService" and
> /or "JPAKnowledgeService"..
>
> 3. Interesting thing is that I have to recreate "Environment" now every time
> before reloading the Session, otherwise the entityManager is closed, and it
> does not respond to a simple Spring AOP TM wrapping... But that is another
> issue..
>
> /Anatoly
>
>





More information about the rules-users mailing list