Automatic JDBC Realm configuration

≡放荡痞女 提交于 2019-12-18 18:09:12

问题


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


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



来源:https://stackoverflow.com/questions/7852293/automatic-jdbc-realm-configuration

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!