Professional Documents
Culture Documents
1. Distributed Architecture
– J2EE Technologies
– Web & WLS Terms
2. Setting Up a WebLogic Server Environment
Servlets
EJB Container
JSPs Session RDBMS
Applet
EJBs
Entity CORBA
Client
EJBs
Application
Java App
JAX-RPC
RMI-IIOP
JDBC
JNDI
JMS
JMX
JTA
Web Service
f JDBC is:
Application Written by
– a standard Java interface for Developer
databases
– a specification that defines four
different driver types for JDBC Driver Purchased or
Obtained
connecting to databases DB API
Purchased or
Obtained
Database
f JNDI is:
– a Java API for accessing naming and directory servers
– built as a layer over DNS, LDAP, etc.
JNDI API
Naming Manager JNDI API
JNDI SPI
WLS LDAP File Sys DNS
Other Purchased or Obtained
Driver Driver Driver Driver
Transaction Monitor
Implementation
WebLogic Server
Management Tool MBeans
MBean
MBean
MBean
MBean
WebLogic Server
Web Client Web Container EJB Container
HTML/XML
Session
Applet EJBs
Entity
Client
EJBs
Application
f Web servers:
– provide Web content
– communicate via HTTP, FTP, etc
– can handle CGI requests
– proxy some requests to Application Servers
:HE6HUYHU
Web
Server
HTTP HTTP
WebLogic
Server
HTTPS Plug-in HTTPS
WebLogic Server
f Application servers: J2EE Application Server
– provide services that support Web Container
the execution and
availability of deployed Servlets
EJB Container
applications JSPs Session
– handle heavier processing EJBs
chores than Web servers Entity
EJBs
JAX-RPC
RMI-IIOP
JDBC
JAAS
JNDI
JMS
JMX
JTA
f A proxy server:
– forwards requests to other
machines Server
A
– can be used as a level of
indirection and security
– can be used to load balance Proxy Server
Client
Server B
a system
Server
C
Firewall
f Firewalls:
– provide filtering,
authorization, and
authentication services
– help keep out hackers HTTP HTTP
– map port requests
– can act as proxy servers
– can decrease back end HTTPS HTTPS
network activity
Firewall
Client Firewall Web Application
Server Servers
Server
A
World
Wide WLS Server
Client
Web Plug-In B
Server
Client C
Inner Network
Your Network
Extranet
Client
or
App
Internet
Database
Client Local
App Client
App
Your Network
«server»
f A server:
– Runs on a designated «cluster»
WLS machine
«server»
– Has a dedicated amount «server»
of RAM «server»
– Is multi-threaded
f An administration «domain»
applications in a «machine»
production environment
«server»
«logs»
1. Distributed Architecture
2. Setting Up a WebLogic Server
Environment
– WebLogic Server Architecture
– Installing & Running WebLogic Server
Accept the
License Agreement
Choose the
Home directory
Installation complete!
Setting up a WebLogic Server Environment-37 © 2006 BEA Systems, Inc. 51
Console Mode Installation
server
docs
Contains source code for sample domain
examples
examples installed with WebLogic Server
medrec
Minimal syntax:
java -server –Xms256m –Xmx512m -classpath "%CLASSPATH%"
-Dweblogic.Name=%SERVER_NAME% -Dplatform.home=%WL_HOME%
-Dweblogic.management.username=%WLS_USER%
-Dweblogic.management.password=%WLS_PW%
-Dweblogic.ProductionModeEnabled=%STARTMODE%
-Djava.security.policy=%WL_HOME%\server\lib\weblogic.policy
weblogic.Server
Arguments:
%SERVER_NAME% - The name of the server to start.
10
0101
1110
Enter password