Saturday, 27 August 2011

How to create a Managed Server in Weblogic Server 11g

1. Login to Weblogic administrator console.
2. In the Left pane we can see "Environment" tree. Expand the tree we can see the link "Servers". Click that Link
3. We can see the "Summary of Servers" page. Click the "New" button to add Server.
Weblogic Server 11g Servers summary page

4. Provide the server name, ip address and port it want to run as shown in the screen shot. Click the "Next" button.

5. Click the "Finish" button to create the server and we can see the server is created successfully.

6. Now back to "Summary of Servers" page. Click through the Link "ManagedServer1". Now we can see the properties and
   advanced settings page for this Managed Server.


7. Select the Machine name as shown in the screen shot. Note that every server is associated with machine. Click the
   save button to save the configurations.
8. Now this is the important configuration note it carefully. When you want to start or stop the Managed server through
   Nodemanager or in console, we want to provide some parameters to start the server. Go to Configuration-->Server Start tab.
   Provide the details as shown below. Java home is the path name where we installed Java. Java Vendor is "Sun". If we
   installed some other JDK provide that vendor name for example IBM JDK,JRockit vendors are different. Then provide the
   BEA home is the path where we installed Weblogic Server. Root Directory is the Path where we installed our "Domain".
   Here it is "DeveloperDomain" which is the domain name installed in our system. Then provide the path where weblogic.jar
   is installed as weblogic loads jar files during runtime.

9. Now Provide the where our security policy file is located as shown in the screen shot and provide the weblogic administrator
   username and password and also confirm the password. Click the Save button to save the configurations. Please note that
   all these settings are mandatory to start and stop the Managed Servers  

How to create a Machine in Weblogic Server 11g


1. Login to weblogic administrator console.
2. In the Left Pane we can see "Environment" tree. Expand the tree we can see the Link "Machines".Click that Link
Weblogic Server 11g Machine Configuration Page

3. We can see the "summary of Machines" page. Click the "New" button to add Machine.
4. Provide the name for Machine as shown in the screenshot. Currently Weblogic is running in windows machine. so
   select the OS type as "Other". Click the "Next" button.




5. Now we can see "Node Manager Properties". Node Manager is the application used to start and stop the weblogic
   servers and also across the clusters. We can see the Node manager configuration later. Now we select the Protocol
   type as "Plain". Provide the listen address and port as seen in the screenshot and click "Finish".

6. Now the machine is created.

How to create datasource for Oracle Database Express Edition in weblogic 11g (10.3.5)

1. Login to weblogic administrator console
2. In the Left pane (Domain Structure) we find Services tree. Expand the tree again
   we find Data Sources link. Click that link.

3. we can find now datasources configuratin page. Click the New button to add the datasource.
   when we click the button we find three options select "Generic Data Source"
4. Now we find the page to create new jdbc data source. Now try to fill the JDBC Data Source
   properties. Provide the Datasource name, JNDI name as shown in the screen shot and select the
   Database type as "Oracle"
Weblogic 11g Datasource page

5. Now select the Oracle Driver which is appropriate to our Database.Click the Next button.
   Leave the settings for "Transactions Options" as it is. Click the Next button.


6. Since we are going to connect Oracle Express Database provide the default database name "XE"
   hostname,port,database username and password of Oracle Database Account. Click the Next button

7. Now click the button "Test Configuration" to test whether all parameters to Database are correct.
   Message in green color will be displayed if all of our settings are correct as shown in the screen shot.
   Click the Next Button

8. Now select the targets i.e. to which server the datasource to be deployed. currently on the screen shot
   there is only one server is installed. so select that server as target. Click the "Finish" button and now
   the configuration for Datasource is completed and now we can see the screenshot of list of datasources
   available in the server.


Wednesday, 24 August 2011

Deploy Sample webapp (war file) in Jboss 7 Application server

1. Go to administration console as shown below
Jboss Admin Console - Deployments

2. Click the button Add Content and browse the war file ( here it is hellojboss.war) and click Next


3. you can see the screen below in next step leave it as it is and click save

4. Now you can see the web application is getting deployed but it is not get enabled
   To get enable the webapp click the enable button



   
5. Now the enabled status goes green it means that ur webapp is running now


6. Now you can access the application as shown in the browser.


Jboss 7 Application Server (Web Profile) Installation in Windows

1. Download Jboss zip file from jboss.org
2. Extract zip file into location here it is C:\jboss7
3. Before you start make sure that JDK 1.6 or later and Environment Variable for java home is set
4. goto jboss home bin folder(C:\jboss7\bin) you can see standalone.bat file.
5. Click the standalone.bat file now the jboss server is getting startup and running.
   startup console is shown below:
   
Jboss 7 console
   
6. Open your browser and type http://localhost:8080 in address bar. you can see the jboss startup
   screen as shown below:
Jboss 7 Startup Page



7. You have successfully installed jboss and now Click the link Administration console.
   you can see the web console now and now you can start deploy the web applications.
Jboss 7 Admin Console