Automatic JDBC Realm configuration
Asked Answered
O

1

2

I want to know if it's possible to create JDBC Realm configuration in Glassfish 3.1 without admin console, like creation of a Data Source with the glassfish-resources.xml. When developers download my GIT repository they don't like to configure Glassfish, it's configured in deployment time.

Best regards Mounir

Osculation answered 21/10, 2011 at 16:17 Comment(0)
A
1

I'd create a shell script or batch file which runs the required asadmin commands. Here you can find a complete example: Creating JDBC Objects Using asadmin

(Btw, DTD of GlassFish Resources Descriptor does not contain any realm-related tag (include create-auth-realm).)

Addend answered 21/10, 2011 at 20:47 Comment(2)
Yeah it's seem the only solution to do this, but can I run this script at deployment time ?Osculation
AFAIK, just by hand. (I think that's fine. I wouldn't be happy if one of the applications silently reconfigure Glassfish during deployment.)Addend

© 2022 - 2024 — McMap. All rights reserved.