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 is in term of jdbc a datasource?

904


Give steps to connect to the db using jdbc?

1003


What is executeupdate in java?

872


List the common jdbc exceptions ?

987


Explain about Join?

990


Write an sql to find all records having all numeric characters in a field ?

943


What is the meaning of “dirty read” in the database?

1015


What is the different between ResultSet and RowSet?

1006


What are the differences between setmaxrows(int) and setfetchsize(int)?

1049


Why do we need a jdbcrowset like wrapper around resultset?

1227


How to connect html page to database using jdbc?

878


What are the differences between statement and preparedstatement interface?

965


What does executequery return in java?

902


What is the purpose of jdbc resultset interface?

978


What class.forname will do while loading drivers of jdbc?

918