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

Which is better jpa or jdbc?

961


What are the different types of classes in the api component?

1007


What is com mysql jdbc driver?

967


What is drivermanager in java?

996


Give steps to connect to the db using jdbc?

1061


Prepared statements are faster. Why?

1104


What are the steps involved in establishing a connection using jdbc in java?

1026


When do we use execute method in java jdbc?

1025


How many types of JDBC Drivers are present and what are they?

1271


Which is best database for java?

1037


How to test jdbc connection to sql server?

1068


Can I get a null resultset?

1083


What is the limitation of PreparedStatement and how to overcome it?

1186


What is meant by connection string?

1020


What do you mean by batch processing in jdbc?

1053