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 are the differences between resultset and rowset?
What do you mean by odbc?
What is the latest version of JDBC? What are the new features added in that?
How can I determine where a given table is referenced via foreign keys?
Where can I find info, frameworks and example source for writing a JDBC driver?
Why “no suitable driver” error occurs?
Is it possible to connect to multiple databases simultaneously? Using single statement can one update or extract data from multiple databases?
What is jdbc odbc connection?
Which is better jpa or jdbc?
Which is faster jdbc or odbc?
Is java a database?
What is connection pooling and why it is used?
What class.forname does, while loading the drivers?
Explain about multiple implementations and drive manager?
What should be done for auto generating primary key id in a table ?