"green804" wrote :
| This method is running a select against the DB. It takes about .15 seconds to
complete. I'm checking the the transaction timeout value with the sys admin.
|
The default transaction timeout is 5 minutes (=300 seconds) and is set in the
jboss-service.xml in %JBOSS_HOME%\server\< serverName>\conf folder.
"green804" wrote :
| I do not have a transaction attribute on the moethod.
|
So, by default, the transaction attribute of that method will be REQUIRED.
"green804" wrote :
| I do not need transctions for this method. It's a select. Do you have any
examples of how to set the transaction attribute? Can I do it using annotations?
|
Yes, you can set the transaction attribute on that method using annotations. If you
don't need transaction on that method, you can set it as follows:
| @TransactionAttribute(TransactionAttributeType.SUPPORTS)
| public ... getUserData(...) {
See this
http://docs.sun.com/app/docs/doc/819-3669/6n5sg7cm3?a=view for the available
transaction attribute types and their meaning.
"green804" wrote :
| If I was to need a transaction for an update of user data, what should I set the
transaction attribute to?
|
REQUIRED should work. See that link that i mentioned above. That should help you in
deciding the correct transaction attribute type.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4158148#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...