문제

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

도움이 되었습니까?

해결책

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).)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top