如何在Glassfish 3中创建jdbc资源/连接池时指定域名 [英] How to specify domain name while creating jdbc resource/connection pool in glassfish 3

查看:82
本文介绍了如何在Glassfish 3中创建jdbc资源/连接池时指定域名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在glassfish 3服务器中有多个域.我能够使用glassfish管理控制台登录到其他域,并且我想为特定域(例如domain2)创建jdbc资源/连接池.我知道,我可以使用管理控制台创建它.但是我想通过CLI做到这一点.我检查了create-jdbc-connection-poolcreate-jdbc-resource命令的格式.我可以在其中指定域名的任何参数都不需要.

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.

有人可以告诉我如何使用CLI进行此操作.

Can somebody tell me how to do this using CLI.

谢谢.

推荐答案

资源存储在域中,因此您在登录时隐式定义域.如果登录到domain2,则会在.您可以通过在每个create-blah命令上使用--target子句来进一步定义资源的target.目标将是您登录并向其发出命令的域内的servercluster.

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.

这篇关于如何在Glassfish 3中创建jdbc资源/连接池时指定域名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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