自动JDBC领域配置 [英] Automatic JDBC Realm configuration

查看:110
本文介绍了自动JDBC领域配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以在没有管理控制台的情况下在Glassfish 3.1中创建JDBC Realm配置,如使用 glassfish-resources.xml 创建数据源。
当开发人员下载我的GIT存储库时,他们不喜欢配置Glassfish,而是在部署时配置它。



最好的问候
Mounir

解决方案

我会创建一个shell脚本或批处理文件,它运行所需的 asadmin 命令。
在这里您可以找到一个完整的示例:使用asadmin创建JDBC对象 p>

(顺便说一下, DTD 不包含任何与领域相关的标记(包括 create- auth-realm )。)


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

这篇关于自动JDBC领域配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆