[jboss-user] [EJB 3.0] - I need to set batch size in EJB3.0 application

qbacomarch do-not-reply at jboss.com
Wed Jul 19 08:54:59 EDT 2006


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?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959125#3959125

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959125



More information about the jboss-user mailing list