Michał Minicki [
http://community.jboss.org/people/Valgoerad] created the discussion
"Re: JBPM 5, WorkItemHandler as a Spring Bean"
To view the discussion, visit:
http://community.jboss.org/message/577368#577368
--------------------------------------------------------------
Here's the solution:
<drools:ksession id="jpaSingleSessionCommandService"
type="stateful" kbase="knowledgeBase">
<drools:configuration>
<drools:work-item-handlers>
<drools:work-item-handler name="Notification"
ref="refToNotificationWorkItemHandler" />
</drools:work-item-handlers>
<drools:jpa-persistence>
<drools:transaction-manager ref="transactionManager" />
<drools:entity-manager-factory ref="entityManagerFactory"
/>
</drools:jpa-persistence>
</drools:configuration>
</drools:ksession>
<drools:ksession id="jpaSingleSessionCommandService"
type="stateful" kbase="knowledgeBase">
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/577368#577368]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]