-
1. Re: JBAS-3321 -- Method attributes and transaction timeout
bill.burke Nov 17, 2006 9:17 AM (in response to weston.price)why does the adapter need to handle this? Can't this be done in an EJB interceptor like it is already done?
-
2. Re: JBAS-3321 -- Method attributes and transaction timeout
weston.price Nov 17, 2006 9:20 AM (in response to weston.price)This is for MDB's where I begin the transaction and enlist the provider (ie inflow) To my knowledge you guys don't set those and even if you did, I don't believe it would have any effect because it has to be set prior to beginning the transaction.
-
3. Re: JBAS-3321 -- Method attributes and transaction timeout
bill.burke Nov 17, 2006 9:22 AM (in response to weston.price)TM.setTransactionTimeout needs to happen *before* the transaction is started?
-
4. Re: JBAS-3321 -- Method attributes and transaction timeout
bill.burke Nov 17, 2006 9:26 AM (in response to weston.price)BTW, wouldn't this need to be done as an ActivationConfigSpec to keep the RAR portable? EIther that or we're gonna have to hack it in through a ThreadLocal variable.
-
5. Re: JBAS-3321 -- Method attributes and transaction timeout
weston.price Nov 17, 2006 9:27 AM (in response to weston.price)According to the API:
"public void setTransactionTimeout(int seconds)
throws SystemException
Modify the timeout value that is associated with transactions started by subsequent invocations of the begin method. If an application has not called this method, the transaction service uses some default value for the transaction timeout."
Again, this is just for inflow so you are talking about a completely new thread with no transaction context. -
6. Re: JBAS-3321 -- Method attributes and transaction timeout
weston.price Nov 17, 2006 9:28 AM (in response to weston.price)Right ActivationSpecConfig would be the only way to go.