Question

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.

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top