0 Replies Latest reply on Jul 19, 2006 8:54 AM by qbacomarch

    I need to set batch size in EJB3.0 application

    qbacomarch

      Hi,

      As I wrote in topic, I need to set batch size in my simple application, that gets all rows from one, unrelated table from a database.

      Here's my entity bean:

      @Entity
      @Table(name="EJBTEST")
      public class EJBTestEntity implements Serializable {
      
       @Id
       @GeneratedValue(strategy = GenerationType.AUTO)
       private int id;
      
       private String imie;
      
       private String nazwisko;
      
       private int rocznik;
      
      ...
      
      }
      


      As I trace session in database, I get that it is fetching the data in 15-element packs. The same information the JBoss gives me "JDBC batch size: 15".

      Is there any method to change this size programmatically?