How to specify domain name while creating jdbc resource/connection pool in glassfish 3

杀马特。学长 韩版系。学妹 提交于 2019-12-25 01:56:10

问题


I have multiple domains in a glassfish 3 server. I am able to login to different domains using glassfish admin console and I want to create jdbc resource/connection pool for a particular domain (say domain2). I know, I can create it using admin console. But I want to do it through CLI. I checked the format of create-jdbc-connection-pool and create-jdbc-resource commands. It does not take any parameter where I can specify the domain name.

Can somebody tell me how to do this using CLI.

Thanks in advance.


回答1:


The resources are stored within the domain, so you implicitly define the domain when logging in. If you login to domain2, the resources are created in domain2. You can further define the target of the resource by using --target clause on each create-blah command. The target would be a server or a cluster within the domain you have logged in and issue the command against.



来源:https://stackoverflow.com/questions/20189162/how-to-specify-domain-name-while-creating-jdbc-resource-connection-pool-in-glass

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