The weblogic provides several tools for creating domains and template and one of them is pack and unpack command.It is easy to use these commands but it does not allow you to customize the contents of your domain or template as other tools do
The pack command creates a template archive (.jar) file that contains a subset of a domain ,which(domain) is already created by the user.
Lets suppose i have a domain cluster in my following directory
C:\bea\user_projects\domains
I will use pack command to use all the feature of this domain to create a new dummy domain.
The pack command will be
pack -domain=C:\bea\user_projects\domains\Cluster -template=C:\bea\user_templates\mydomain.jar -template_name="My WebLogic Domain"
Here C:\bea\user_projects\domains\Cluster is my existing domain
C:\bea\user_templates\mydomain.jar is the template location i am providing and i have given a random name to the jar file mydomain.jar
-template_name="My WebLogic Domain" again is a random name i have specified you can specify your own name over here.
YOu need to run this script in the following directory
C:\bea\wlserver_10.3\common\bin
Once you will run this script you will create a template mydomain.jar in the following location C:\bea\user_templates
So now we will try to create a new domain using the unpack command.
Unpack Creates a full domain or a subset of a domain.
so i will be using the following command
unpack -template=C:\bea\user_templates\mydomain.jar -domain=C:\bea\user_projects\domains\my_new_domain
We are using the template we have created in the first step i.e mydomain.jar
and we are creating a new domain called my_new_domain in the following directory
C:\bea\user_projects\domains
If you will check the domain newly created you will get the startWeblogic.cmd which can be used to start the domain.
2 comments:
Thanks Atul.
I am always in touch with your blog.:)
Good Job Arpit..
Post a Comment