views:

136

answers:

1

Hi, we just inherited the development of a web application that uses GlassFish. The setup instructions we got have all these manual steps to setup connection pool, JDBC resource and JMS. I'm wondering if there is an API that could allow us to do all this work automatically (e.g. with a script)?

Thanks!

A: 

Hi

Have you seen the asadmin utility. You can script it up to call the utlity to set resource pools, database connection info, message queuing resources etc etc etc.

Here is a link to the asadmin .

You can use the org.glassfish.api.admin.AdminCommand API for your requirement of doing it autmatically, say in JAVA.

This may help AdminCommand API.

Here is some examples for using the API. API Samples This is the docs for extending the console admin utility Extending the Administration Console

Hope that helps,

Bob.

scope_creep
Thanks Bob! This will most probably do the job.I also found the GlassFish AMX (Appserver Management EXtensions) which might also help:https://glassfish.dev.java.net/javaee5/amx/
Dominic Jodoin