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
Which is better jpa or jdbc?
What are the different types of classes in the api component?
What is com mysql jdbc driver?
What is drivermanager in java?
Give steps to connect to the db using jdbc?
Prepared statements are faster. Why?
What are the steps involved in establishing a connection using jdbc in java?
When do we use execute method in java jdbc?
How many types of JDBC Drivers are present and what are they?
Which is best database for java?
How to test jdbc connection to sql server?
Can I get a null resultset?
What is the limitation of PreparedStatement and how to overcome it?
What is meant by connection string?
What do you mean by batch processing in jdbc?