users@glassfish.java.net

Re: How to create a connection pool ?

From: <glassfish_at_javadesktop.org>
Date: Mon, 02 Apr 2007 06:50:52 PDT

Thanks for reply but..

[code]
C:\Java\glassfish-v2-b33e\bin>asadmin add-resources c:\tmp\protocolo_datasource.xml
Invalid user or password
CLI137 Command add-resources failed.
[/code]

Here is my protocolo_datasource.xml
[code]
<resources>
    <jdbc-connection-pool
        name="ProtocoloDS"
        datasource-classname="oracle.jdbc.pool.OracleDataSource"
        res-type="javax.sql.DataSource">
        <property name="url" value="jdbc:oracle:thin:@192.168.2.29:1521:ORCL"/>
        <property name="user" value="pro"/>
        <property name="password" value="pro"/>
    </jdbc-connection-pool>

    <jdbc-resource
        enabled="true"
        jndi-name="jdbc/ProtocoloDS"
        object-type="user"
        pool-name="ProtocoloDS"/>
</resources>
[/code]

And there is a command on the way..
[code]
AS_INSTALL_DIR/bin/asadmin add-resources /home/mydir/mysql_type4_datasource.xml
[/code]

I need to know what this command do , what files will be changed to make a template file to send to the programmers..

We don't want to do this in all pc's , do not have an easy way?

Thank you in advice.
[Message sent by forum member 'guikeller' (guikeller)]

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