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
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:See also: