JDBC Realm auto configuration

I want to know if it is possible to create a Realm JDBC configuration in Glassfish 3.1 without an admin console, for example creating a data source using glassfish-resources.xml . When developers download my GIT repository, he doesn’t like to configure Glassfish, it is configured during deployment.

Sincerely, Munir

+2
file-descriptor glassfish jdbcrealm
source share
1 answer

I would create a shell script or batch file in which the required asadmin commands are asadmin . Here you can find the full example: Creating JDBC objects using asadmin

(Btw, DTD The GlassFish resource descriptor does not contain a body tag (include create-auth-realm ).)

+1
source share

All Articles