0 Replies Latest reply on Jan 29, 2012 11:16 AM by jaabax

    When should I use statement cache

    jaabax

      hi

      I'm reading the JBoss AS 7 new released book and there is a section describing statement caches (page 58)

      but I didn't understand it very well

       

      when should I use this feature?

      and what if I'm using EJB with entity managers to control my transactions?

       

      an xml piece from the book

       

      <statement>

      <track-statements>true</track-statements>

      <prepared-statement-cache-size>10</prepared-statement-cache-size>

      <share-prepared-statements/>

      </statement>

       

      thanks in advance!