I have a XML file containing about 20K person names.
For each person I need to perform some update in my DB.
Then, when if the entire process completed successfully, I need to change a perform a final update in the DB. (I set a status - successfull)
If I try to do all the process (20k persons) in a single transaction, I get a timeout exception.
So I splitted the TX in many small TX. One Tx per person.
Now, calling 20k EJB in a loop cause my application to slow down dramatically!!
Some guy told me to use a msg driven bean, but I dont see how this will solve my problem. Since I need to keep a trace of whats going on in my entire process in order to set the status (suddess/fail).
Someone have an idea?