users@glassfish.java.net

Re: windows batch file asadmin

From: Felipe Gaścho <fgaucho_at_gmail.com>
Date: Sun, 11 Oct 2009 16:12:02 +0200

a second trial:

arena-puj>asadmin create-jdbc-connection-pool --datasourceclassname
com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource --restype
javax.sql.ConnectionPoolDataSource --property
"User=root:Password=adminadmin:URL=jdbc\\:mysql\\://localhost\\:3306/arena"
jdbc/arenaPool

com.sun.enterprise.admin.cli.CommandException: remote failure: Invalid
property syntax:
User=root:Password=adminadmin:URL=jdbc\\:mysql\\://localhost\\:3306/arena

2009/10/11 Felipe Gaścho <fgaucho_at_gmail.com>:
> I am trying to translate my setup.sh to a windows *.bat file, but this line:
>
> arena-puj>asadmin --user= create-jdbc-connection-pool
> --datasourceclassname
> com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource --restype
> javax.sql.ConnectionPoolDataSource --property
> "User=;Password=;URL=jdbc\\:mysql\\://localhost\\:3306/arena"
> jdbc/arenaPool
>
> causes this error:
>
> com.sun.enterprise.admin.cli.CommandException: remote failure: Invalid
> property syntax:
> User=;Password=;URL=jdbc\\:mysql\\://localhost\\:3306/arena
>
>
> what is the proper syntax for the properties in windows ??
>
> * under linux it works fine...... bu with : instead of ;
>
> --
> Looking for a client application for this service:
> http://fgaucho.dyndns.org:8080/arena-http/wadl
>



-- 
Looking for a client application for this service:
http://fgaucho.dyndns.org:8080/arena-http/wadl