I am trying to make a batch update work in EJB. The following sample code works fine inside EJB:
But the foll0wing code causes "invalid batch command" Exception. I am not able to understand what is going wrong. The only difference here is I am creating the arraylist of objects and looping thru the array list to create my batch.
Thanks for your help
Sri Rangan
Ranch Hand
Joined: Dec 08, 2001
Posts: 160
posted
0
In fact i am getting the "java.sql.Exception: missing in or out parameter at index:: 1" But it seems I am setting all the parameter correctly.
Originally posted by Sri Rangan: In fact i am getting the "java.sql.Exception: missing in or out parameter at index:: 1" But it seems I am setting all the parameter correctly.
you'll have to let us know what SQL is prepared ( QUERY_RET_DETAILS ). Otherwise, it looks fine. Jamie