Re: [JBoss-user] transaction configuration for performance

2002-07-18 Thread Justin Casp
Thanks for your speedy reply, Dain. I set the transaction attributes of my Session Bean methods to RequiresNew. These methods in turn call the entity finder & abstract accessors. I'm assuming this is what you meant by wrapping my code in a single transaction. I've followed the examples in th

Re: [JBoss-user] transaction configuration for performance

2002-07-18 Thread Dain Sundstrom
You need to wrap your code up in a single transaction. You can use the UserTransaction code given at the end of the chapter, or you can put your code in a Session Bean. The tx attributes are set in the ejb-jar.xml file. If you don't declare tx attributes, the default is Required. Tx attri

[JBoss-user] transaction configuration for performance

2002-07-18 Thread Justin Casp
Hi List, In reading the latest JBossCMP docs, I found a note in the Transactions section of the Optimized Loading chapter that mentions the exact problem I'm having. quote (footnote 21) "It's actually worse than this. JBossCMP executes each of these queries three times; once for each cmp-field