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
What is in term of jdbc a datasource?
Give steps to connect to the db using jdbc?
What is executeupdate in java?
List the common jdbc exceptions ?
Explain about Join?
Write an sql to find all records having all numeric characters in a field ?
What is the meaning of “dirty read” in the database?
What is the different between ResultSet and RowSet?
What are the differences between setmaxrows(int) and setfetchsize(int)?
Why do we need a jdbcrowset like wrapper around resultset?
How to connect html page to database using jdbc?
What are the differences between statement and preparedstatement interface?
What does executequery return in java?
What is the purpose of jdbc resultset interface?
What class.forname will do while loading drivers of jdbc?