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

Creating Domain in weblogic server

Thursday, July 23, 2009

Here I am using weblogic 9.2. Although the steps are same, the screens may vary in Weblogic 10x. The
following are steps required to create a new domain in the Weblogic.

By Creating Domain we can isolate our application, servers, workshop from others. This will help us in
assigning multiple servers to multiple project resources with single installation of Weblogic.

We can create Domain in 2 ways.

1. From command prompt.

2. From start menu programs.

From Command Prompt:

1. Go to %BEA_HOME%/weblogic92/common/bin.

2. Then run config.cmd (config.sh incase of Linux versions) file. This will bring the following screen.


From start menu programs:

1. From the Programs > BEA Weblogic > Tools > configuration wizard, then you will get above screen.


2. Click on Next. Select the option: "Generate a domain configured automatically…"


3. Give the Username and password


4. Select the Development mode on the left side (We can change to production mode, incase, after creating the
domain) and also select the desired JDK version. Suggest to leaving it to Sun JDK.


5. To customize the server settings, click on Yes


6. Enter the desired port for Weblogic server and choose SSL incase it is needed (these can be changed after the
installation as well)


7. Add for any managed servers and any WL instances that needed to configured.


8. Change the domain summary if needed


9. Enter the name of the domain. The domain will be created in the directory
%BEA_HOME%\user_projects\domains (by default). Click on Create to create the domain.


10. Once the domain is created, check the “Start Admin Server” to start the server automatically and click on
“Done” to finish the wizard.


To start the Weblogic domain that we created, use the following navigation

Start > Programs > BEA Products > User Projects > <domain>_name > Start Admin Server for Weblogic
Server Domain to start the server.
Replace <domain> with the domain name that is given in the previous screen.


You can download this concept in pdf Creating Domain in Weblogic.pdf


Tags:Weblogic, Creating Domain StepbyStep process.

Deleting/Removing Domain in weblogic server

In weblogic, we don't have elegant solution to remove the domain.

It would be sufficient to remove the domain directory <<BEA_HOME>>/user_projects/<<Domain Name>>.

But make sure to stop all servers/services in the domain before removing the domain.

Datasource creation in weblogic server

Tuesday, July 21, 2009

Configuring datasource in weblogic server is very easy.
Start the weblogic server and give correct url for weblogic console. For example

http://localhost:7001/console.


Login to the server domain with credentials.
Click Lock & Edit Button and then goto services-->jdbc-->datasources and click on new button.


In this form choose name, JNDI Name, Database type and database driver and click next.


And again click next and give database details such as Database Name, Host Name, Port, Database user Name, Password, Confirm Password. The following fig will explains the concept.


And click next. Now to test connection click on Test Configuration, if the given details are correct it will displays “connection test succeeded”.


And click next button.
Now check the AdminServer and click finish button.


And now click the Activate Changes Button.


And now you can use jndiname "jdbc:/sampletest" in your application.


You can download this concept in pdf Creating Datasource in WeblogicServer.pdf