Showing posts with label Weblogic domain template. Show all posts
Showing posts with label Weblogic domain template. Show all posts

How to create weblogic domain template using weblogic template builder?

Domain templates are used to create(or extend weblogic server domains) with pre-configured resources such as JDBC, security realms, external libraries, log4j components. So when you create new domain you do not need to go to server console and create resources such as data source, etc.  While creating domain by using template you will have those resources configured already for you.

Lets say, you have a team of 10 people and you like everybody to have same configuration, then create a template share with the team. Even it is very much useful if you have new member in the team.

Domain templates can be built in many ways. This blog covers how to built using weblogic domain template builder.

Lets get started.

Step 1:

Go to Start Menu->All programs->weblogic10gR3->Tools->Domain Template Builder
or

go to c:\bea\wlserver_10.3\common\bin in command prompt. and type config_builder.cmd












Step 2:

Select create a domain template. If you are creating template for the first time.
Select create extension template if you are extending a existing template.

We will go with create domain template.

Step 3: Select a Template tab. Click on Basic Weblogic Server domain option. Click next











Step 4: Enter the name of template and other info. Click next.












Step 5:  Using Add Button, Select libraries you want to add under lib folder. copy jdbc data sources you would like to have under config/jdbc folder. If you want to have log4j configuration, copy log4j.xml under domain_root folder.

Click next










 Step 6: Select data base for the domain and click next.











Step 7: Enter Admin Server Name and port numbers. Click next.










Step 8: Enter username and password. Click next. Select No if you don want to add users/groups/roles











Step 9: Click next










Step 10: Click next












Step 11: Click next











Step 12: Click Create











Step 13: Click done.










This will create a domain template(jar file) which can be used to create domain.

When creating domain using domain config wizard, do select  2nd option which is "base this domain on existing template" as shown below and browse the template jar file and continue.











Good luck. Please let me know if you have any issues.