Re: [rules-users] Using JBPM 5 with Container Managed Persistence

2011-08-23 Thread Nicolas LE BAS
Hi,

Container Managed Persistence refers to Entity Beans, and there are no
Entity Beans anymore in EJB3. So I assume you're refering to Container
Managed Transactions.

The transaction needs to be started after the StatefulKnowledgeSession
has been created; so with CMT you would need to create the session
before the EJB is called. But since the EJB itself is creating the
session, I can think of no standard way to do that as of JavaEE 6. Even
an interceptor should be called after the transaction has begun with CMT.

Probably the easiest for you would be to create an EJB3 interceptor that
deals with the boilerplate (creates/disposes the session and
starts/commits/rolls back the transaction).

Hope this helps,
Nick

On 11-08-17 09:02 AM, houghvw wrote:
> Hi,
> 
> Is there any documentation on how to configure JBPM 5 with container managed
> persistence using EJB3. It works using bean managed persistence. But would
> make life much easier if I did not have to manage the tx myself.
> 
> Regards
> Hough
> 
> --
> View this message in context: 
> http://drools.46999.n3.nabble.com/Using-JBPM-5-with-Container-Managed-Persistence-tp3261549p3261549.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Using JBPM 5 with Container Managed Persistence

2011-08-22 Thread houghvw
Hi,

Thanks for the reply. I use JBPM for some business transaction flow
orchestration. I run the JBPM layer over a stateless session bean layer to
manage business logic underpinned by jpa for persistence. My stateless
session beans are all container managed beans so having JPBM use bean
managed persistence is a bit messy in my architecture.

Regards
Hough

--
View this message in context: 
http://drools.46999.n3.nabble.com/Using-JBPM-5-with-Container-Managed-Persistence-tp3261549p3277179.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Using JBPM 5 with Container Managed Persistence

2011-08-22 Thread Marco Rietveld
Hi Hough, 

Unfortunately, there isn't any documentation on this (Container Managed
Persistence w/ jBPM 5) that I know of. I've asked around a little and
couldn't find any. 

What are you using transactions for in your case? jBPM itself has some
mechanisms that manage transactions. 

Regards, 
Marco


houghvw wrote:
> 
> Hi,
> 
> Is there any documentation on how to configure JBPM 5 with container
> managed persistence using EJB3. It works using bean managed persistence.
> But would make life much easier if I did not have to manage the tx myself.
> 
> Regards
> Hough
> 


--
View this message in context: 
http://drools.46999.n3.nabble.com/Using-JBPM-5-with-Container-Managed-Persistence-tp3261549p3274929.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Using JBPM 5 with Container Managed Persistence

2011-08-17 Thread houghvw
Hi,

Is there any documentation on how to configure JBPM 5 with container managed
persistence using EJB3. It works using bean managed persistence. But would
make life much easier if I did not have to manage the tx myself.

Regards
Hough

--
View this message in context: 
http://drools.46999.n3.nabble.com/Using-JBPM-5-with-Container-Managed-Persistence-tp3261549p3261549.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users