jQuery in Action, 2nd edition
The moose likes EJB and other Java EE Technologies and the fly likes Batch update in EJB Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "Batch update in EJB" Watch "Batch update in EJB" New topic
Author

Batch update in EJB

Hd Desai
Ranch Hand

Joined: Aug 04, 2003
Posts: 65
Hello,

I am using WSAD 5.1 and Db2 8.1 and using EJB 2.0 CMP.

I want to insert records in the database in batch.

How to acheive batch update in EJB 2.0 CMP.

Thanks in advance.
Mike Henry
Greenhorn

Joined: Dec 18, 2003
Posts: 6
Hello,

Why not use an EJB home method.


An EJB Home method is not specific to any entity.
(Perfect for batch processing)


To use it mention the method in the home interface





Then in your bean class place ejbHome<methodName> method (the return values and parameters must match, notice also capital first letter)





Combine this with an ejbSelect and you're done.

Does this help?
(excuse the typos but it this should give you something to check out)


Mike


:-D People who smile, do it 'cause they know something, To Learn what... do as they do.
Hd Desai
Ranch Hand

Joined: Aug 04, 2003
Posts: 65
Hi Mike,

thnx a lot for update...

I will surely try this and see if it helps.

thanks.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Batch update in EJB
 
Similar Threads
Batch updation
Batch updates using home inerface
Entity EJB Question...
Using CMP & JPA in same application
Mapping 4 database tables using single CMP bean