i m making a rmi based client server application.
At Server side, it consists of an java file running rmi(for binding registries) and all the required interfaces implemeneted invoking other classes meant for various server based operation (which includes a connection with the database).
Now the doubt is
“Where Shall I place the code for configuring ComboPoolDataSource Instance and the getConnection() method so that the configuration can be done when i run the java rmi file and i can invoke .getConnection() from any other java file.
At First…Create the code to initiate the connection in a class containing static methods or variables like this the following..
Once u r done Create another class meant for server operations….
and get the Connections from the Pool…