سؤال

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:

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

See also:

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top