This content has been marked as final.
Show 2 replies
-
1. Re: EJB SQL query on each entity method
lafr Aug 17, 2005 3:34 PM (in response to bingimund)What's the transaction setting for the entity bean ? It should also be set to Required.
If it is, then this should not happen.
Update JBoss to 4.0.2 e.g. to see if it still happens in the latest official release. -
2. Re: EJB SQL query on each entity method
baumgarten Aug 18, 2005 3:06 AM (in response to bingimund)I use the following in ejb's jbosscmp-jdbc.xml:
<read-ahead>
on-find
<page-size>255</page-size>
</read-ahead>
to load all attributes in one SELECT.
For more information look at chapter "11.7.3. Read-ahead" in the The JBoss 4 Application Server Guide.