Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is the best way, in terms of performance, to do
multiple insert/update statements, a PreparedStatement or
Batch Updates?

Answer Posted / nirmal

The easiest way is to use RMI to start the app and check to
see if it's already running.

The basic structure is this:

The main method of your app checks the RMI registry to see
if the app is started. If so, exit.
Otherwise, the main creates an instance of the app (which
is a remote object) and registers it in the RMI registry.
The class' constructor creates the GUI and displays it.
Alternatively, you could create a "start" method that you
call via RMI to start the app.

Is This Answer Correct ?    2 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the differences between resultset and rowset?

1137


What do you mean by odbc?

1033


What is the latest version of JDBC? What are the new features added in that?

1002


How can I determine where a given table is referenced via foreign keys?

1005


Where can I find info, frameworks and example source for writing a JDBC driver?

938


Why “no suitable driver” error occurs?

1095


Is it possible to connect to multiple databases simultaneously? Using single statement can one update or extract data from multiple databases?

1030


What is jdbc odbc connection?

983


Which is better jpa or jdbc?

915


Which is faster jdbc or odbc?

914


Is java a database?

966


What is connection pooling and why it is used?

1006


What class.forname does, while loading the drivers?

979


Explain about multiple implementations and drive manager?

1054


What should be done for auto generating primary key id in a table ?

978