admin@glassfish.java.net

Re: setting jdbc resource

From: Paul M Davies (Oracle) <"Paul>
Date: Thu, 19 Aug 2010 16:03:07 -0700

Hi Lidia,

The deprecated syntax message is displayed because the asadmin utility
options --user, --host, and --port are specified after the set
subcommand. This syntax has been deprecated since GF v3.

To remove the distraction of the deprecated syntax message, specify
these options before the set subcommand, as suggested by the message.

Regards,
-Paul

On 08/19/10 15:45, Lidia Marchioni wrote:
> Hi all
>
> We have the following test from v2 test base:
>
> asadmin set --user admin --host asqe-xeon-1 --port 4848
> sa_server1.resources.jdbc-resource.jdbc/jdbcresDB.pool_name=NewPool
> Deprecated syntax, instead use:
> asadmin --port 4848 --host asqe-xeon-1 --user admin set [options] ...
> sa_server1 :
> sa_server1.resources.jdbc-resource.jdbc/jdbcresDB.pool-name=NewPool
>
> sa_server1.resources.jdbc-resource.jdbc/jdbcresDB.pool-name=NewPool
>
> Command set executed successfully.
>
>
> The issue is that the above test expects the command to fail and the
> following output string:
>
> is not found in list of jdbc connection pools
>
> I thought perhaps the command was wrong, but verified on v2.1 branch
> and the test looks the same there. Could someone please let me know
> if this change of behaviour is expected or an unwanted regression?
> I'll update the test accordingly.
>
> Thanks
> Lidia
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>


-- 
Oracle <http://www.oracle.com>
Paul Davies| Principal Technical Writer| +1.408.276.3413
Oracle GlassFish Server Documentation
4140 Network Circle, Santa Clara CA 95054, USA
Green Oracle <http://www.oracle.com/commitment> 	Oracle is committed to 
developing practices and products that help protect the environment