4

I'm trying to run a number of commands, such as:asadmin create-custom-resource, however, I have multiple domains, and I wish to specify which domain to be affected.

How do I run asadmin commands and specify which domain to be affected?

I'm using Glassfish 3.1.2.2

Kevin
  • 4,070
  • 4
  • 45
  • 67

1 Answers1

6

You can't specify a domain directly for most of the asadmin commands.

But you can specify the Domain Administration Server, which controls the domain. It identifies the domain indirectly. To do this just use --host and --port parameters:

asadmin --host localhost --port 4848 create-custom-resource ...

See also:

Community
  • 1
  • 1
unwichtich
  • 13,712
  • 4
  • 53
  • 66