Creating domains

Additional domains can be created from the command line by issuing the following command:

asadmin create-domain domainname 

The preceding command takes several parameters to specify ports where the domain will listen for several services (HTTP, Admin, JMS, IIOP, secure HTTP, and so on); type the following command in the command line to see its parameters:

asadmin create-domain --help

If we want several domains to execute concurrently on the same server, these ports must be chosen carefully since specifying the same ports for different services (or even the same service across domains) will prevent one of the domains from working properly.

The default ports for the default domain1 domain are listed in the following table:

Service

Port

Admin

4848

HTTP

8080

Java Messaging System (JMS)

7676

Internet Inter-ORB Protocol (IIOP)

3700

Secure HTTP (HTTPS)

8181

Secure IIOP

3820

Mutual Authorization IIOP

3920

Java Management Extensions (JMX) Administration

8686

Please note that when creating a domain, the only port that needs to be specified is the admin port, if other ports are not specified, the default ports listed in the table will be used. Care must be taken when creating a domain, since, as explained above, two domains cannot run concurrently in the same server if any of their services listen for connections on the same port.

An alternate method of creating a domain without having to specify ports for every service is to issue the following command:

asadmin create-domain --portbase [port number] domainname

The value of the --portbase parameter dictates the base port for the domain; ports for the different services will be offsets of the given port number. The following table lists the ports assigned to all the different services:

Service

Port

Admin

portbase + 48

HTTP

portbase + 80

Java Messaging System (JMS)

portbase + 76

Internet Inter-ORB Protocol (IIOP)

portbase + 37

Secure HTTP (HTTPS)

portbase + 81

Secure IIOP

portbase + 38

Mutual Authorization IIOP

portbase + 39

Java Management Extensions (JMX) Administration

portbase + 86

 

Of course, care must be taken when choosing the value for portbase, making sure that none of the assigned ports collide with any other domain.

As a rule of thumb, creating domains using a portbase number greater than 8000 and divisible by 1000 should create domains that don't conflict with each other, for example, it should be safe to create a domain using a portbase of 9000, another one using a portbase of 10000, so on and so forth.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.7.102