The Jakarta DBCP sub-project under the Commons project is what you are looking for.
You can use it in your stand alone app without the need for JNDI access. It is used by jakarta tomcat
to provide connection pooling to webapps through JNDI lookup.


More details here : http://jakarta.apache.org , look under the Commons project.

Vanita Shroff wrote:

Hello:

Would anyone have a code snippet on how to create connection pooling using
SAPDB (without using application server) for
(1) a client-server Swing-based GUI application. The client makes a database
connection to the server and fetches the row and displays it.
(2) Using JNDI.

I am using the DbConnectionBroker.java available from sourceforge.net and
can
(1) Create the datasource on the server with
INITIAL_CONTEXT_FACTORY, "com.sun.jndi.fscontext.RefFSContextFactory")

(2) create the connections on the server.

But do not understand whether I can access the server pooled connections
using JNDI from the client? If yes, how? If no, is RMI the only option of
creating the pooled connections and accessing it from client.

Thanks,
Vanita Shroff

_______________________________________________
sapdb.general mailing list
[EMAIL PROTECTED]
http://listserv.sap.com/mailman/listinfo/sapdb.general





_______________________________________________ sapdb.general mailing list [EMAIL PROTECTED] http://listserv.sap.com/mailman/listinfo/sapdb.general

Reply via email to