Glassfish already does something very similar with add-resources
subcommand. I filed this issue in 8/2006, trying to simplify its use:
https://glassfish.dev.java.net/issues/show_bug.cgi?id=930
> asadmin.bat help add-resources
NAME
add-resources - creates the resources specified in an XML
file
SYNOPSIS
add-resources
[--terse={true|false}][ --echo={true|false} ]
[ --interactive={true|false} ] [ --host host]
[--port port] [--secure| -s ] [ --user admin_user]
[--passwordfile filename] [--help]
[ --target target]
xml_file_path
DESCRIPTION
The add-resources command creates the resources named in the
specified XML file. The xml_file_path is the path to the XML
file containing the resources to be created. The DOCTYPE
must be specified as in the resources.xml file.
This command is supported in remote mode only.
-cheng
Wolfram Rittmeyer wrote:
> Jason Lee wrote:
>> Hi. :) I have a possible GAP submission to run by everyone. I
>> detailed it as best I could here:
>>
>> https://glassfish.dev.java.net/issues/show_bug.cgi?id=4490
>>
>> I wanted to bring that up here to make sure right eyes see it. :)
>> Before I spend too much (read as: any :) time trying to implement
>> that, I want to make sure it's a feature what oversight... committee
>> GlassFish has is actually interested in. There's no sense in writing
>> something no one wants.
>
> Hi Jason,
>
> I think using asadmin create-jdbc-connection-pool and asadmin
> create-jdbc-resource already offer a simple way to add resources.
>
> I personally do prefer a scripting solution to xml but that's just me.
> Since you stated in your RFE that you are missing the xml-based
> configuration I wonder if it offers additional functionality. In other
> words: Is it just a matter of taste which solution to use (given that
> the xml-solution gets implemented) or are there use-cases where you
> think the xml-solution offers more flexibility or power?
>
> BTW: This mail of mine is just born out of curiosity. I am no member
> of the GF team and thus only interested in why you propose this
> solution ;-)
>
>
> --
> Wolfram Rittmeyer
>
>>
>> Any feedback -- both in terms of features/functionality as well as
>> desirability -- is eagerly solicited. :P Thanks!
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>