[jboss-user] [JBoss Seam] - Re: Transaction demarcation problem

2008-01-23 Thread [EMAIL PROTECTED]
Probably not a topic for the Seam forum, try the EJB3 forum. And, as a courtesy to your readers, please try to format you post and code snippets in more readable way. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122725#4122725 Reply to the post : http://w

[jboss-user] [JBoss Seam] - Re: Transaction demarcation on EJB3/Seam methods

2007-10-04 Thread clemente.cioffi
HI, I'd like using this kind of annotation: @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW). Consider that I have this situation: 1)I call a first method of ejb3/seam marked with the above annotation. 2)Inside that method I call another method that I want starts in a different tr

[jboss-user] [JBoss Seam] - Re: Transaction demarcation on EJB3/Seam methods

2007-10-03 Thread thejavafreak
What kind of transaction demarcation/ annotation do you want to use? Doesn't EJB3 by default already demarcate transaction before and after the method is invoked? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091324#4091324 Reply to the post : http://www.j

[jboss-user] [JBoss Seam] - Re: Transaction Demarcation

2007-06-17 Thread evdelst
When you call a method from within a session bean on the same bean, you have to call it using the interface (if you want transaction attributes to work, and any other interceptors). You are probably calling on 'this' at the moment, which means the container doesn't get a chance to do its magic.

[jboss-user] [JBoss Seam] - Re: Transaction Demarcation

2007-06-15 Thread dustismo
Toni, I am trying to do exactly what you describe but am having no luck. Could you possibly give a small example of how you achieved the transactions? many thanks, Dustin View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054926#4054926 Reply to the post : ht

[jboss-user] [JBoss Seam] - Re: Transaction Demarcation

2007-05-04 Thread toni
Well my last post actually refers not to your last post, but the one before. What you assume in your last post I thought before and made all the session beans stateful - but that did not help either. It's seems to be that on reentrant calls the annotations are ignored. By introducing another SF

[jboss-user] [JBoss Seam] - Re: Transaction Demarcation

2007-05-04 Thread toni
Hi Christian, thanks for you help. That seems to be the reason. I introduced another session bean and now its working! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043179#4043179 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mod

[jboss-user] [JBoss Seam] - Re: Transaction Demarcation

2007-05-04 Thread [EMAIL PROTECTED]
Oh, it's not re-entrant, its sLsb called by sFsb. Anyway, enable logging (no, I don't search the Wiki for you) and don't guess. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043177#4043177 Reply to the post : http://www.jboss.com/index.html?module=bb&op=pos

[jboss-user] [JBoss Seam] - Re: Transaction Demarcation

2007-05-04 Thread [EMAIL PROTECTED]
anonymous wrote : 3. scheduleMessages() gets called on SLSB1 by SFSB1 Maybe because it's a re-entrant call? I don't know, ask on the EJB3 forum. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043176#4043176 Reply to the post : http://www.jboss.com/index.ht

[jboss-user] [JBoss Seam] - Re: Transaction Demarcation

2007-05-04 Thread toni
How and where ca I turn this on? I noticed something very interesing so: I used "@TransactionAttribute(TransactionAttributeType.NEVER)" on the first call to the SLSB (stateless) and the transaction gets stopped! In the logfile I see: 007-05-04 14:56:08,090 ERROR [org.jboss.ejb.txtimer.Timer

[jboss-user] [JBoss Seam] - Re: Transaction Demarcation

2007-05-04 Thread [EMAIL PROTECTED]
You need to enable logging for the transaction service in your server and watch when transactions are created and when they are committed. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043154#4043154 Reply to the post : http://www.jboss.com/index.html?modu

[jboss-user] [JBoss Seam] - Re: Transaction Demarcation

2007-05-04 Thread toni
Well thank you for clarifying this! I was already wondering why seam would introduce an extra transaction annotation, which lacks some of the EJB3 transactional attributes. anonymous wrote : | By the way, you can always use the TransactionalSeamPhaseListener and @TransactionAttribute(REQUIRE

[jboss-user] [JBoss Seam] - Re: Transaction Demarcation

2007-05-04 Thread [EMAIL PROTECTED]
Exactly View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043126#4043126 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043126 ___ jboss-user mailing list jboss-user@lists.jboss.

[jboss-user] [JBoss Seam] - Re: Transaction Demarcation

2007-05-04 Thread toni
So you are saying that "@Transactional" should only be used on Seam components, which are missing the tags @Stateless or @Stateful? And that seam components which are tagged with @Stateless or @Stateful should refer/use "@TransactionAttribute" instead ? View the original post : http://www.jbos

[jboss-user] [JBoss Seam] - Re: Transaction Demarcation

2007-05-04 Thread [EMAIL PROTECTED]
@Transactional is a hint for JavaBeans! It is not used if you have EJB 3.0 components. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043104#4043104 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043104 ___

[jboss-user] [JBoss Seam] - Re: Transaction Demarcation

2007-05-04 Thread toni
"[EMAIL PROTECTED]" wrote : By the way, you can always use the TransactionalSeamPhaseListener and @TransactionAttribute(REQUIRES_NEW) to suspend the existing transaction during a particular method call in INVOKE APPLICATION. Your method then executes in a new transaction context - which is comm

[jboss-user] [JBoss Seam] - Re: Transaction Demarcation

2007-05-04 Thread [EMAIL PROTECTED]
By the way, you can always use the TransactionalSeamPhaseListener and @TransactionAttribute(REQUIRES_NEW) to suspend the existing transaction during a particular method call in INVOKE APPLICATION. Your method then executes in a new transaction context - which is committed when the method returns

[jboss-user] [JBoss Seam] - Re: Transaction Demarcation

2007-05-04 Thread [EMAIL PROTECTED]
Transaction != Persistence Context As long as there is a persistence context, you can lazy load stuff. Just use the UserTransaction API or EJB3 transaction annotations to set transaction boundaries. The RENDER RESPONSE phase, and any data access not in the INVOKE APPLICATION PHASE (where your

[jboss-user] [JBoss Seam] - Re: Transaction Demarcation

2007-05-03 Thread toni
Hi, I'm still trying to figure out how to span several transactions within the scope of one web request/response. I guess using a TransactionalSeamPhaseListener is not an option, because it always starts a transaction at the beginning and end of the request ie response respectively. So I gues

[jboss-user] [JBoss Seam] - Re: Transaction Demarcation

2007-05-03 Thread toni
Well, I don't think I can use the EJB3 notations in seam. I tried and it does not work or have any effect. Trying to acces a user transaction I got: java.lang.IllegalStateException: Container MessageManager: it is illegal to inject UserTransaction So this does not seem to be an option either.

[jboss-user] [JBoss Seam] - Re: Transaction Demarcation

2007-04-28 Thread denis-karpov
What do you need is user transactions. | import javax.ejb.TransactionManagement; | import javax.ejb.TransactionManagementType; | | | @TransactionManagement(TransactionManagementType.BEAN) | public class Q... | @In | private EntityManager entityManager; |

[jboss-user] [JBoss Seam] - Re: Transaction Demarcation

2007-04-27 Thread iradix
Check out @TransactionAttribute in the EJB3 spec. http://trailblazer.demo.jboss.com/EJB3Trail/services/transaction/ If you're not using EJB3 Hibernate might have it's own transaction annotations but I'm not aware of them. View the original post : http://www.jboss.com/index.html?module=bb&op=