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 the difference between jdbc and jndi?
What are dml and ddl?
What is while rs next ())?
What is an encrypted internet connection?
What is execute in java?
Why resultset is used in java?
What are the common jdbc exceptions?
RowSetInternal caller and returns void. What can I do in the readData method?
Is jdbctemplate thread safe?
What are the factors that the jdbc driver performance depends upon?
When do we get java.sql.SQLException: No suitable driver found?
How many types of statements are there in jdbc?
What is difference between statement and preparedstatement in jdbc?
What is an odbc driver?
How do I disallow NULL values in a table?