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 exceptions in jdbc?
Once I have the Java 2 SDK, Standard Edition, from Sun, what else do I need to connect to a database?
What is jdbc thin client?
Is jdbc a protocol?
Explain the various types of locking system in jdbc?
Explain about DSN?
What are the standard isolation levels defined by JDBC?
Is jdbc part of j2ee?
Explain what should be done when a SQL exception is raised?
Describe how the jdbc application works.
What are restrictions on triggers?
How can I create a custom RowSetMetaData object from scratch?
Is there another way of dealing with the result set that could execute faster?
What protocol does jdbc use?
What is the role of the jdbc drivermanager class?