[jboss-user] [EJB 3.0] - Re: Altering the transaction timeout

2007-06-12 Thread rlj
Hi There

I'm so glad to hear someone got this working.
Can anyone of you please see my thread here:
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050135#4050135
.. and tell my what I'm doing wrong.

I'm using Struts and I'm not calling any other methods on that specific bean or 
any other bean (in the current request that is). So my call-chain is only one 
step deep.

As you can se at the code-example in my thread I've also tried to set the 
TransactionAttribute REQUIRES_NEW

The Bean-method get called from my StrutsActionServlet.

Regards 

/RLJ

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053615#4053615

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053615
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Altering the transaction timeout

2007-06-11 Thread hbarca
Hi Toni,

Oh, my mistake, I put the annotation in the wrong place (at one level deeper in 
the call chain). Now it works to me, with a SLSB. You have to make sure you put 
the annotation in the bean implementation code, at the method starting the 
transaction. By default, a transaction starts when the first call to a session 
bean method is beeing made from the user code, if no other transaction 
annotations have been used.
Hope it will work for you too.

Horia

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053061#4053061

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053061
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Altering the transaction timeout

2007-06-08 Thread toni
Hi hbaraca,

if I place the @TransactionTiemout annotation on one of my action methods of my 
SFSB's, which get called, when user clicks on an action link, then the timeout 
is being ignored. So it does not work for me.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052439#4052439

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052439
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Altering the transaction timeout

2007-06-07 Thread hbarca
Toni, did the annotation work for you?
It doesn't work for me...
I'm using JBoss 4.0.4, can be this a reason why TransactionTimeout does not 
work on EJB bussines methods?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052155#4052155

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052155
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Altering the transaction timeout

2007-05-04 Thread wolfc
Transaction timeout only works on the method where the transaction is actually 
started. Either make sure you put the annotation there or add transaction 
attribute REQUIRES_NEW on your method.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043094#4043094

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043094
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Altering the transaction timeout

2007-05-03 Thread toni
I have tried this on my session bean, but I still run into a TransactionTimeout 
exception. I used the following my stateful session bean:


  | @org.jboss.annotation.ejb.TransactionTimeout(1000)
  | 

Changing the timeout in jta-service.xml on the other hand works. I'm using seam 
1.1 - could it be that this is only supported in higher versions of seam?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042980#4042980

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042980
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Altering the transaction timeout

2007-02-24 Thread petemuir
Thanks for the reply James and sorry for the delay in replying - my forum 
subscriptions went wrong for a bit ;)

I'll try this out on Monday.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021586#4021586

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4021586
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Altering the transaction timeout

2007-02-16 Thread JamesWoodward
Yes, in your session bean, you need to annotate your long running method as 
follows:

@org.jboss.annotation.ejb.TransactionTimeout(3000)
public void doSomethingThatTakesAges() {

...
   
}

James

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4017545#4017545

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4017545
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user