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 the difference between jdbc and jndi?

492


What are dml and ddl?

536


What is while rs next ())?

496


What is an encrypted internet connection?

499


What is execute in java?

514






Why resultset is used in java?

504


What are the common jdbc exceptions?

515


RowSetInternal caller and returns void. What can I do in the readData method?

547


Is jdbctemplate thread safe?

482


What are the factors that the jdbc driver performance depends upon?

520


When do we get java.sql.SQLException: No suitable driver found?

544


How many types of statements are there in jdbc?

493


What is difference between statement and preparedstatement in jdbc?

467


What is an odbc driver?

484


How do I disallow NULL values in a table?

541