WebLogic‎ > ‎Domain Creation‎ > ‎

Creating a domain by using weblogic.Server

To start a domain creation with the help of weblogic.Server class and it will start the server also is given as follows:
 
java -XX:MaxPermSize=512m -Dweblogic.RootDirectory=.
-Dweblogic.Domain=domain2 -Dweblogic.Name=Server2 -Dweblogic.management.username=weblogic
-Dweblogic.management.password=weblogic -Dweblogic.ListenAddress=WLHost.com
-Dweblogic.ListenPort=9015 weblogic.Server
 
Let us see new scenario 
If we have config.xml file copied from an existing domain then we can run the server with the override the exiting values present in the urconfig.xml file with ListenAddress, ListenPort new values given in command line.
 
No config.xml was found.
Would you like the server to create a default configuration and boot? (y/n): y
 
The response 'y' indicates to the weblogic.Server to create a domain directyory with all required files and directories for it.
If you don't specify the ListenAddress then weblogic will search for all possible network channels to connect with the given port.
 
java -XX:MaxPermSize=512m -Dweblogic.RootDirectory=. -Dweblogic.ConfigFile=urconfig.xml
-Dweblogic.Domain=domain2 -Dweblogic.Name=Server2 -Dweblogic.management.username=weblogic
-Dweblogic.management.password=weblogic -Dweblogic.ListenAddress=WLHost.com
-Dweblogic.ListenPort=9015 weblogic.Server
 
Here the domain can be created only single server instance, and we cannot add managed server and cluster etc. if we have already a config.xml file available then we can specify using  -Dweblogic.ConfigFile=urconfig.xml.
 
 
Comments