How to run asadmin command for a specific domain in a glass box?

I am trying to execute several commands, for example: asadmin create-custom-resourcehowever I have several domains and I want to indicate which domain should be affected.

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

I am using Glassfish 3.1.2.2

+4
source share
1 answer

You cannot specify a domain directly for most teams asadmin.

But you can specify the domain administration server that controls the domain. It recognizes the domain indirectly. To do this, simply use the parameters --hostand --port:

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

See also:

+4

Source: https://habr.com/ru/post/1527236/


All Articles