Sie sind auf Seite 1von 3

What is WebLogic?

WebLogic Server is a powerful Application Server to run J2EE A


pplications.
This is pretty much equivalent to Oracle 10gAS OC4J server, but WebLogic is know
n for its rich features and great functionality.
Since Oracle has acquired BEA, there has been a strategic shift in the Applicati
on Server technologies from OC4J to Weblogic Server.
Oracle has moved most of the OC4J Applications to Weblogic in Fusion Middleware
releases.
If you see the tag, Fusion, you can guess that it is Weblogic Application. Other
than directory structures, installation procedure, here are few key differences
between OC4J and WebLogic Server.
OC4J uses AJP protocol between OHS and OC4J. OHS in front of OC4J is a must (as
OC4J itself does not have a HTTP listener, so it cannot answer HTTP requests).
This is quite different in WebLogic, as WebLogic has got a HTTP listener, users
can directly access WebLogic port from the browser.
Of course, it is recommended to front end WebLogic by a web server but it is not
mandatory. Web Server is mandatory for OC4J.
OC4J is completely managed by OPMN. A couple of interesting features by OPMN, su
ch as increasing no# of JVMs (numprocs in opmn.xml) for the OC4J are available.
WebLogic is not managed by OPMN. So, WebLogic always runs out of only one JVM.
OC4J runs on wide range of ports whereas WebLogic runs everything on a single po
rt by default, i.e. 7001. Here is an example of OC4J Port ranges:
ajp range=12501-12600
rmi range=12401-12500
jms range=12601-12700
How to Deploy Application in Web -Logic
-----------------------------------------Step 1: Goto Deployments in Domain Structure.
Step 2: Lock and Edit console and select install button.
Step 3: Select path of the application and click

Next .

step 4: Choose install deployment as Application and click Next .


Step 5: Select deployment targets( in Admin Server or in Cluster -- All servers
in Cluster (part of cluster)
Step 6: Choose optional settings
------ Name it as some name (benifits) ---Security -- DD only : Use only roles
and policies that
are defined in the Deployment descriptors -Step 7: Summary of deployments
Step 8: Goto Deployments and check state of application is active or not if it i
s prepared then start all the services
Step 9: Goto browser check the application accessible or not

49.204.46.134:7071/benifits/

---- What are deployment descriptors --Modules and applications have deployment descriptors XML documents that describe the
contents of the directory or JAR file. Deployment descriptors are text document
s formatted with XML tags. The J2EE specifications define standard, portable dep
loyment descriptors for J2EE modules and applications.
2.

What is the difference in the web.xml and weblogic.xml?

An application-specific XML-based deployment descriptor file named web.xml,


which lists your application's J2EE components and their configurations as J2EE
modules.
Each J2EE module is a collection of one or more J2EE components of the same con
tainer type (Web or EJB)
that are represented by one component deployment descriptor for that type in th
e web.xml file.
A WebLogic-specific deployment descriptor file named weblogic.xml,
which defines how named resources in the web.xml file are mapped to WebLogic Ser
ver resources.
Examples of weblogic.xml attributes include HTTP session parameters, HTTP cooki
e parameters, JSP parameters,
resource references, security role assignments, and container attributes.
http://www.ncodeit.in/free-weblogic-admin-crash-course-topic-3-how-to-deploy-app
licaton-to-weblogic-server
How to Configure JDBC datasource(OracleDB) in Weblogic Consolre
================================================================
http://www.ncodeit.in/free-weblogic-admin-crash-course-topic-4-how-to-configurejdbc-datasource-oracle-db-in-weblogic-console
Step 1: Goto services -> datasources in Domain Structure
Step 2: Lock and Edit console and select New button
Step 3: Configure JDBC Datasource properties ( NAME DS2 , database type -oracle)
Step 4: Select Database driver(thin -instance connections version 9.0.1 and late
r )
Step 5 :Test the Datasource configuration.(username --system / xxxx --password)
Step 6: Select deployment targets( in Admin Server or in Cluster -- All servers
in Cluster (part of cluster)
Step 7: Goto services->Data sources
How to install Apache and integrate it with Weblogic
====================================================

Step 1: Download httpd-2.2.23.tar.gz and extract it


Step 2: Goto httpd-2.2.23 and execute following command
http://www.ncodeit.in/free-weblogic-admin-crash-course-topic-5-apache-installati
on-and-integration-with-weblogic-server
./configure --prefix=/home/xxxxx/xxxxx/Apache10
Step 3: run make command
Step 4: run make install command
Step 5: Goto $APACHE_HOME/config folder
Step 6: Open http.conf file ,change listen address and Port no as 8080 and save
it
ServerName 192.168.128.6:8080
Step 7: Goto $APACHE_HOME/bin directory and run the command
./apachectl start to start apache
Step 8: Open the browser and check apache running or not
Integrate Apache using proxy plugin with Weblogic
Step 9: Download proxy plugin module mod_wl_22.so and copy that module into $APA
CHE_HOme/modules folder
Step 10: Goto httpd.conf file under conf directory and write following code
go to Weblogic section and add
weblogicCluster 192.168.128.6:7071,192.168.128.6:7072 MatchExpression *
Step 11: Goto APACHE_HOME/bin and restart apache using apachectl restart command
Step 12: Now goto browser hit the url using 8080 port no
192.168.128.6:8080/benefits/
How to configure SSL for Weblogic
-------------------------------------------------http://www.ncodeit.in/free-weblogic-admin-crash-course-topic-6-how-to-configuressl-for-weblogic

Das könnte Ihnen auch gefallen