[jboss-user] [jBPM] - Re: Persistence and Transaction Management

2013-07-19 Thread Marco Rietveld
Marco Rietveld [https://community.jboss.org/people/marco.rietveld] created the 
discussion

Re: Persistence and Transaction Management

To view the discussion, visit: https://community.jboss.org/message/828773#828773

--
Pure local transactions and local transactions *with spring* are unfortunately 
very different things. Both are true. 

5.4.x supports local transactions +using a spring transaction manager+, but 
does not support pure local transactions with a normal transaction manager.
--

Reply to this message by going to Community
[https://community.jboss.org/message/828773#828773]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1containerType=14container=2034]

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

[jboss-user] [jBPM] - Re: Persistence and Transaction Management

2013-07-19 Thread Thomas Setiabudi
Thomas Setiabudi [https://community.jboss.org/people/thomas.setiabudi] created 
the discussion

Re: Persistence and Transaction Management

To view the discussion, visit: https://community.jboss.org/message/828775#828775

--
Hi Marco,

Oh I just knew about that. 

Ok thank you very much.


Regards,
Thomas Setiabudi
--

Reply to this message by going to Community
[https://community.jboss.org/message/828775#828775]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1containerType=14container=2034]

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

[jboss-user] [jBPM] - Re: Persistence and Transaction Management

2013-07-18 Thread Thomas Setiabudi
Thomas Setiabudi [https://community.jboss.org/people/thomas.setiabudi] created 
the discussion

Re: Persistence and Transaction Management

To view the discussion, visit: https://community.jboss.org/message/828751#828751

--
Hi,

I saw the JIRA issue status is Coding in Progress for this
 https://issues.jboss.org/browse/JBPM-3282 
https://issues.jboss.org/browse/JBPM-3282
And also it says that the fix version will be jBPM 6.x

but I got a question why when JBPM5.4 is released, it says that jBPM5.4 Final 
can support using RESOURCE_LOCAL transaction?
 http://docs.jboss.org/jbpm/v5.4/userguide/ch.integration.html#d0e7880 
http://docs.jboss.org/jbpm/v5.4/userguide/ch.integration.html#d0e7880

So which one is true? this issue has been resolved in jBPM5.4 Final or we still 
need to wait untuk jBPM 6.x for this?


Regards,
Thomas Setiabudi
--

Reply to this message by going to Community
[https://community.jboss.org/message/828751#828751]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1containerType=14container=2034]

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

[jboss-user] [jBPM] - Re: Persistence and Transaction Management

2013-07-18 Thread Thomas Setiabudi
Thomas Setiabudi [https://community.jboss.org/people/thomas.setiabudi] created 
the discussion

Re: Persistence and Transaction Management

To view the discussion, visit: https://community.jboss.org/message/828752#828752

--
Hi,

I saw the JIRA issue status is Coding in Progress for this
 https://issues.jboss.org/browse/JBPM-3282 
https://issues.jboss.org/browse/JBPM-3282
And also it says that the fix version will be jBPM 6.x

but I got a question why when JBPM5.4 is released, it says that jBPM5.4 Final 
can support using RESOURCE_LOCAL transaction?
 http://docs.jboss.org/jbpm/v5.4/userguide/ch.integration.html#d0e7880 
http://docs.jboss.org/jbpm/v5.4/userguide/ch.integration.html#d0e7880

So which one is true? this issue has been resolved in jBPM5.4 Final or we still 
need to wait untuk jBPM 6.x for this?


Regards,
Thomas Setiabudi
--

Reply to this message by going to Community
[https://community.jboss.org/message/828752#828752]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1containerType=14container=2034]

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

[jboss-user] [jBPM] - Re: Persistence and Transaction Management

2011-07-25 Thread Marco Rietveld
Marco Rietveld [http://community.jboss.org/people/marco.rietveld] created the 
discussion

Re: Persistence and Transaction Management

To view the discussion, visit: http://community.jboss.org/message/617412#617412

--
Marco P (and others), 

To some degree the following javadoc explains why it's necessary to have JTA in 
drools/jBPM: 

 
http://docs.jboss.org/jbpm/v5.1/javadocs/org/drools/persistence/jpa/JPAKnowledgeService.html
 
http://docs.jboss.org/jbpm/v5.1/javadocs/org/drools/persistence/jpa/JPAKnowledgeService.html
--

Reply to this message by going to Community
[http://community.jboss.org/message/617412#617412]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1containerType=14container=2034]

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


[jboss-user] [jBPM] - Re: Persistence and Transaction Management

2011-07-22 Thread Marco Rietveld
Marco Rietveld [http://community.jboss.org/people/marco.rietveld] created the 
discussion

Re: Persistence and Transaction Management

To view the discussion, visit: http://community.jboss.org/message/617007#617007

--
Hi Marco, 

Thanks very much for posting all of this! 

Could you maybe clarify +why+ you want to use  application-managed persistence 
with jBPM? 


You probably know this, but for clarification: 
RESOURCE_LOCAL means that you want the entityManager (e.g. the persistence 
layer) to be managed by the application. Application-managed persistence is 
most often used by servlets, EJB's, and locally running java applications 
because these are in essence small programs that don't need the extra overhead 
that container-managed persistence brings with it. 

These programs usually open a persistence context/connection, get the stuff 
they need, commit the stuff they changed, and clean it all up: there is no 
usually no need for fine-grained control transactions. 

In my opinion, jBPM does need more fine grained control over transactions. It 
needs this because +when+ objects/data (and which objects/data) are persisted 
is a more complicated question. JTA gives you this control.  Furthermore, I 
think there might be cases when you want to commit some objects while leaving 
other objects in the persistence context (logging objects vs. process context 
information). 

In short, 1. jBPM needs to be sure that the persistence context is always 
available, which would be more work for jBPM with application-managed/ 
(container-managed persistence just works.. :-)) and 2. jBPM needs fine-grained 
control over transactions, which is easier with JTA. 

Does that make any sense? If I'm missing something, please point it out!
--

Reply to this message by going to Community
[http://community.jboss.org/message/617007#617007]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1containerType=14container=2034]

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


[jboss-user] [jBPM] - Re: Persistence and Transaction Management

2011-07-21 Thread Marco Piraccini
Marco Piraccini [http://community.jboss.org/people/mpiraccini] created the 
discussion

Re: Persistence and Transaction Management

To view the discussion, visit: http://community.jboss.org/message/616609#616609

--
I added an issue to Jira about that:  https://issues.jboss.org/browse/JBPM-3282 
https://issues.jboss.org/browse/JBPM-3282
Anyway I see also that it seems to be a drools issue (unfortunately marked as 
wont'fix  :( ):  https://issues.jboss.org/browse/JBRULES-2289 
https://issues.jboss.org/browse/JBRULES-2289
There's any chance of that issue reopening?
--

Reply to this message by going to Community
[http://community.jboss.org/message/616609#616609]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1containerType=14container=2034]

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


[jboss-user] [jBPM] - Re: Persistence and Transaction Management

2011-07-08 Thread Marco Piraccini
Marco Piraccini [http://community.jboss.org/people/mpiraccini] created the 
discussion

Re: Persistence and Transaction Management

To view the discussion, visit: http://community.jboss.org/message/614099#614099

--
A though about that. 
It seems that the RESOURCE_LOCAL transaction-type is not supported. 
Indeed if I simply delete  transaction-type=JTA from the persistence.xml, 
this NPE is thrown.

Caused by: java.lang.NullPointerException
    at 
org.drools.persistence.SingleSessionCommandService.init(SingleSessionCommandService.java:138)
    ... 36 more

The cause is that the SingleSessionCommandService try to set a sessionId that 
has not been generated in that line:

((InternalKnowledgeRuntime) ksession).setId( this.sessionInfo.getId() );

I don't know if that is an issue (JBPM is supposed to support the 
RESOURCE_LOCAL transaction type?). Anyway, if the RESOURCE_LOCAL is not 
supported, the API should detect this situation and communicate that in a more 
nicer way...
Could we add an issue to Jira about that?
--

Reply to this message by going to Community
[http://community.jboss.org/message/614099#614099]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1containerType=14container=2034]

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


[jboss-user] [jBPM] - Re: Persistence and Transaction Management

2011-07-06 Thread Marco Piraccini
Marco Piraccini [http://community.jboss.org/people/mpiraccini] created the 
discussion

Re: Persistence and Transaction Management

To view the discussion, visit: http://community.jboss.org/message/613676#613676

--
Ok, I solved by myself  :) 
Simply, the RESOURCE_LOCAL as transaction-type seems not to be supported 
(indeed, the Documentation talks about JTA). I changed 
transaction-type=RESOURCE_LOCAL to transaction-type=JTA and now it works.
--

Reply to this message by going to Community
[http://community.jboss.org/message/613676#613676]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1containerType=14container=2034]

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


[jboss-user] [jBPM] - Re: Persistence and Transaction Management

2011-07-05 Thread Marco Piraccini
Marco Piraccini [http://community.jboss.org/people/mpiraccini] created the 
discussion

Re: Persistence and Transaction Management

To view the discussion, visit: http://community.jboss.org/message/613404#613404

--
Any comment?
The documentation says:

Whenever you do not provide transaction boundaries inside your application, 
the engine will automatically execute each method invocation on the 
engine in a separate transaction 

So, if I do not specify the TransactionManager (and do not start a transaction 
programmatically) I expect that a transaction manager is used transparently by 
JBPM. Indeed, it seems that org.drools.persistence.jta.JtaTransactionManager is 
used by default (throwing a NPE!). But that is quite confusing, since the 
persistence-unit's transaction-type is RESOURCE_LOCAL.

Any hint about that?
--

Reply to this message by going to Community
[http://community.jboss.org/message/613404#613404]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1containerType=14container=2034]

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