Question : Pattern for java app

Hi,

I need help and idea for my problem with app.
I describe problem in simply way so it will be abstract and its not exactly what app do.

Now i have app that connect to database and do some things iteratively for each row from a table.
What i want is to start more instances of that app and each one should take care of its part of rows.

Problems i see now is that app can be fired on different databases so i cant iterate through process list.
I was thinking that mutex will be fine. I mean, program is started and futex is created i.e mutex name "app_database_1", second instance create "app_database_2" and all instance will know what number is assigned to them. Next, all rows div by instance running and so on.

But i bet that java have no mutex implemetation



Answer : Pattern for java app

you might find something useful here

http://www.cmcrossroads.com/bradapp/javapats.html
Random Solutions  
 
programming4us programming4us