users@glassfish.java.net

Re: How to create a connection pool ?

From: <glassfish_at_javadesktop.org>
Date: Mon, 02 Apr 2007 12:27:24 PDT

Thank you for the answer kshitiz_saxena.

Jagadish didn't show an example making my issue more hard to solve.
With you example I solved my problem and I did a batch file to make more easy the proccess..

$APPSDIR/bin/addresources.bat
[code]
@echo off
echo Adding resources to server..
cd .
asadmin add-resources --user admin --port 4848 --host localhost c:/protocolo_datasource.xml
[/code]

See the following output:
[code]
C:\Java\glassfish-v2-b33e\bin>addresources.bat
Adding resources to server..
 =========================
Added Resource Type: jdbc-connection-pool
 =========================
Added Resource Type: jdbc-resource
Command add-resources executed successfully.

C:\Java\glassfish-v2-b33e\bin>
[/code]

Thank you guys!
[Message sent by forum member 'guikeller' (guikeller)]

http://forums.java.net/jive/thread.jspa?messageID=210905