posted 19 years ago
Hi Jeanne ,
Thanks for the reply. I did understand your point regarding the closing of resultsets and using column names instead of "*" in a SQL statement.
But I would also like to know one more thing.
Please look at the following piece of code
/******************************************************************/
DataSource ds = (DataSource) ctx.lookup("jdbc/MySQL");
//jdbc/MySQL is the jndi of datasource deployed in weblogic server
Connection con = ds.getConnection();
/******************************************************************/
Here I am looking up a datasource object which resides in application
server. The application server runs in different JVM.
Then as you have told in the previous reply that we can't referece object in different JVM, how am i getting a reference of DataSource object in the client JVM???
Also if we look at the connection object, I am using
ds.getConnection()
to obtain the connection object.
Where is this connection object, is it in the Application server where the DataSource object is or is it in the client machine.
If it is in the application server then is it not again a remote reference???