Oracle DBA Forum  

Вернуться   Oracle DBA Forum > Документация, книги и обучающие материалы > Документация, книги и обучающие материалы > Презентации, Screencast etc.

Ответ
 
Опции темы Опции просмотра
  #1  
Старый 31.05.2011, 22:24
Marley Marley вне форума
Senior Member
 
Регистрация: 19.09.2009
Сообщений: 7,211
По умолчанию Практическая часть семина по Weblogic 11 R1

Практический обучающий курс для партнеров Oracle по серверу приложений Weblogic

--------------------------------------------------------
Презентации:

1) Getting Started with WebLogic Server
http://www.scribd.com/fullscreen/567...95375l389sa7gg

2) Introduction to WLS Topologies
http://www.scribd.com/fullscreen/567...hsac3qkxp71lx2

3) Introduction to WLS Console
http://www.scribd.com/fullscreen/567...vd0ua7r0wvj51k

4) WebLogic Scripting Tool
http://www.scribd.com/fullscreen/567...avhxldj2agktnq

5) Deploying applications
http://www.scribd.com/fullscreen/567...e0818k1uka86ny

6) Managing WebLogic Server Lifecycle
http://www.scribd.com/fullscreen/567...kg7kra6l1fntzc

7) WebLogic JMS Messaging Infrastructure
WebLogic Server 11gR1 Labs

http://www.scribd.com/fullscreen/567...skmc9exfg8l7hv

8) WebLogic Diagnostic Framework
http://www.scribd.com/fullscreen/567...88k68wkxsbkuuz

9) WebLogic High Availability InfrastructureWebLogic Server 11gR1 Labs
http://www.scribd.com/fullscreen/567...i3tuy9vcf6a884

-----------------------------

Лабораторные:

1) Weblogic 10.1.3.4 installation on Windows OS
http://www.scribd.com/fullscreen/567...r536icsdipn7x1

2) WebLogic Server 11gR1 Foundation Lab
http://www.scribd.com/fullscreen/567...xaoc4mt1d6qd9o

3) WebLogic Server 11gR1 Java Messaging Service (JMS) Labs
http://www.scribd.com/fullscreen/567...n5ruum4y96cubx

4) WebLogic Server 11gR1 Diagnostics Lab
http://www.scribd.com/fullscreen/567...mp8wxm2haehzhf

5) WebLogic Server 11gR1 Clustering Labs
http://www.scribd.com/fullscreen/567...hquisf82bhdh35

-----------------------------

Файлы с программами для лабораторыных:

http://rusfolder.com/32284634

-----------------------------
-----------------------------

High Availability
http://download.oracle.com/docs/cd/E...o.htm#ASHIA711


Oracle Learning Library
http://www.oracle.com/technetwork/tutorials/index.html

Sites:
http://www.weblogic-wonders.com/weblogic/
http://middlewaremagic.com/weblogic/

Blogs
http://blogs.oracle.com/imc/

Pre-Built Developer VMs
http://www.oracle.com/technetwork/co...-vm/index.html
__________________
Чат форума (требуется аккаунт на github или twitter)

Последний раз редактировалось Marley; 24.08.2012 в 21:12.
Ответить с цитированием
  #2  
Старый 31.05.2011, 22:26
Marley Marley вне форума
Senior Member
 
Регистрация: 19.09.2009
Сообщений: 7,211
По умолчанию

Практическая часть:

Подготовка среды:
http://www.scribd.com/fullscreen/567...r536icsdipn7x1


Буду устанавливать на виртуальной машине с операционной системой OEL56. IP адрес виртуальной машины будет 192.168.1.10




// Уменьшили время для выбора ядра пользователем.
# vi /etc/grub.conf
timeout=1


# vi /etc/selinux/config
SELINUX=disabled


// Уберем iptables из автозапуска
# chkconfig iptables --level 345 off

// Остановим службу iptables
# service iptables stop


// Создаем файл, в котором присутствует описание, где yum должен брать пакеты для сервера
# vi /etc/yum.repos.d/oracleLinuxRepo.repo

Код:
[ol5_u5_base]
name=Oracle Linux $releasever - U5 - $basearch - base
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL5/5/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
gpgcheck=1
enabled=1


[ol5_u6_base]
name=Oracle Linux $releasever - U6 - $basearch - base
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL5/6/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
gpgcheck=1
enabled=1

#
{
yum install mc -y
yum install screen -y
yum install vsftpd -y
yum install xinetd -y
}


Поднимаю ftp
http://odba.ru/showpost.php?p=6690&postcount=6

И копирую weblogic server (wls1035_oepe111172_linux32.bin) и jdk (jdk-6u25-linux-i586.bin)

jdk настраиваею таким же образом, что и здесь:
http://odba.ru/showpost.php?p=6889&postcount=5


mv /var/ftp/incoming/wls1035_oepe111172_linux32.bin /tmp/

chmod a+x /tmp/wls1035_oepe111172_linux32.bin

# useradd weblogic11
# passwd weblogic11
# su - weblogic11



mkdir -p /home/weblogic11/labs


Добавляем:
# vi $HOME/.bash_profile

Код:
########################
# Weblogic Parameters

		export MIDDLEWARE_HOME=/home/weblogic11/Oracle/Middleware
                export WEBLOGIC_HOME=/home/weblogic11/Oracle/Middleware/wlserver_10.3

                export WL_HOME=/home/weblogic11/Oracle/Middleware/wlserver_10.3
                export LAB_HOME=/home/weblogic11/labs




                PATH=$MIDDLEWARE_HOME/common/bin:$PATH

########################

export PATH

$ source $HOME/./.bash_profile


--------------------------------------
Копирую файлы с программами в /home/weblogic11/labs

--------------------------------------

Стартую xming на рабочей станции с ip 192.168.1.50 windows

export DISPLAY=192.168.1.50:0.0

/tmp/wls1035_oepe111172_linux32.bin
__________________
Чат форума (требуется аккаунт на github или twitter)

Последний раз редактировалось Marley; 03.06.2011 в 09:53.
Ответить с цитированием
  #3  
Старый 31.05.2011, 22:33
Marley Marley вне форума
Senior Member
 
Регистрация: 19.09.2009
Сообщений: 7,211
По умолчанию

WebLogic Server 11gR1 Foundation Lab
http://www.scribd.com/fullscreen/567...xaoc4mt1d6qd9o


There are 13 labs in all. These cover:

1. Domain Creation with the Configuration Wizard
2. Managing servers with WLST
3. Creating domain templates with Domain Template Builder
4. Creating a domain from a custom template with WLST offline
5. Using Pack/Unpack to distribute domain configuration
6. Managing Security Data with WLST Online
7. Fastswap (Development Mode)
8. Autodeploy (Development Mode)
9. Side-by-side Deployment (Production Mode)
10. Admin Mode Deployment (Production Mode)
11. In-place Partial Redeployment (Production Mode)
12. Creating a Deployment Plan with the Admin Console
13. Starting WebLogic Server as a Windows Service
__________________
Чат форума (требуется аккаунт на github или twitter)

Последний раз редактировалось Marley; 03.06.2011 в 10:18.
Ответить с цитированием
  #4  
Старый 31.05.2011, 23:01
Marley Marley вне форума
Senior Member
 
Регистрация: 19.09.2009
Сообщений: 7,211
По умолчанию

Lab 1 - Domain Creation with the Configuration Wizard

/home/weblogic11/Oracle/Middleware/wlserver_10.3/common/bin/config.sh
__________________
Чат форума (требуется аккаунт на github или twitter)

Последний раз редактировалось Marley; 03.06.2011 в 09:51.
Ответить с цитированием
  #5  
Старый 31.05.2011, 23:10
Marley Marley вне форума
Senior Member
 
Регистрация: 19.09.2009
Сообщений: 7,211
По умолчанию

Lab 2 Managing servers with WLST

// Точка обязательно !!!
$ . $MIDDLEWARE_HOME/wlserver_10.3/server/bin/setWLSEnv.sh
$ . $MIDDLEWARE_HOME/user_projects/domains/FoundationA/bin/setDomainEnv.sh



$ java weblogic.WLST

Код:
Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

wls:/offline>

// Start the WebLogic Node Manager
wls:/offline> startNodeManager (verbose='true', NodeManagerHome='/home/weblogic11/Oracle/Middleware/wlserver_10.3/common/nodemanager', listenPort='5556')

Код:
...

Successfully launched the Node Manager.
The Node Manager process is running independent of the WLST process.
Exiting WLST will not stop the Node Manager process. Please refer
to the Node Manager logs for more information.
The Node Manager logs will be under /home/weblogic11/Oracle/Middleware/wlserver_10.3/common/nodemanager
Node Manager starting in the background
// Start the admin server for your domain
wls:/offline> startServer (adminServerName="AdminServer", domainName="FoundationA")

Код:
<BEA-000331> <Started WebLogic Admin Server "AdminServer" for domain "FoundationA" running in Development Mode>
WLST-WLS-1306877686354: <May 31, 2011 5:35:18 PM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
WLST-WLS-1306877686354: <May 31, 2011 5:35:18 PM EDT> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
Server started successfully.
'WLST-WLS-1306877686354'
// После выполнения, можно через браузер подключиться к консоли:
http://192.168.1.10:7001/console


// Connect to the admin server
wls:/offline> connect("weblogic","weblogic1","t3://localhost:7001")

Код:
Connecting to t3://localhost:7001 with userid weblogic ...
Successfully connected to Admin Server 'AdminServer' that belongs to domain 'FoundationA'.

Warning: An insecure protocol was used to connect to the
server. To ensure on-the-wire security, the SSL port or
Admin port should be used instead.

// Start ManagerServer_1
start("ManagedServer_1", "Server")

Код:
...

Server with name ManagedServer_1 started successfully

// Start ManagerServer_2
start("ManagedServer_2", "Server")



Код:
...

Server with name ManagedServer_2 started successfully

deploy("wlnav","/home/weblogic11/labs/FoundationLab/apps/WLNav/wlnav.war",targets="AdminServer")

Код:
...........Completed the deployment of Application with status completed
Current Status of your Deployment:
Deployment command type: deploy
Deployment State       : completed
Deployment Message     : no message
http://192.168.1.10:7001/wlnav




// Connect to the Node Manager with the following command:
wls:/offline> nmConnect(username="weblogic", password="weblogic1", domainName="FoundationA")

Код:
...
Successfully Connected to Node Manager.
// Check the status of ManagedServer_1
wls:/FoundationA/serverConfig> nmServerStatus("ManagedServer_1")
Код:
RUNNING

// Shutdown ManagedServer_1
wls:/FoundationA/serverConfig> shutdown(name="ManagedServer_1")

Код:
Shutting down the server ManagedServer_1 with force=false while connected to AdminServer ...
NMProcess: <Jun 2, 2011 5:05:29 AM> <INFO> <FoundationA> <ManagedServer_1> <Server was shut down normally>
NMProcess: Jun 2, 2011 5:05:29 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Server was shut down normally

// Check the status of ManagedServer_1
wls:/FoundationA/serverConfig> nmServerStatus("ManagedServer_1")
Код:
SHUTDOWN



// Shutdown ManagedServer_2
wls:/FoundationA/serverConfig> shutdown(name="ManagedServer_2")

Код:
Shutting down the server ManagedServer_2 with force=false while connected to AdminServer ...
NMProcess: <Jun 2, 2011 5:07:46 AM> <INFO> <FoundationA> <ManagedServer_2> <Server was shut down normally>
NMProcess: Jun 2, 2011 5:07:46 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Server was shut down normally


// Disconnect from Node Manager
wls:/FoundationA/serverConfig> nmDisconnect()

Код:
Successfully disconnected from Node Manager.

// View online help for the WLST shutdown() command
wls:/FoundationA/serverConfig> help ("shutdown")

Код:
Description:


Gracefully shuts down a running server instance or a cluster.
This command waits for all the in-process work to be completed before
shutting down the server or cluster.

You shut down a server to which WLST is connected by entering the
shutdown command without any arguments.

When connected to a Managed Server instance, you only use the shutdown
command to shut down the Managed Server instance to which WLST is
connected; you cannot shut down another server while connected to a
Managed Server instance.

WLST uses Node Manager to shut down a Managed Server. When shutting
down a Managed Server, Node Manager must be running.

In the event of an error, the command returns a WLSTException.

Syntax:

shutdown([name], [entityType], [ignoreSessions], [timeOut], [force], [block])
- name = Optional. Name of the server or cluster to shutdown. This
 argument defaults to the server to which WLST is currently connected.

- entityType = Optional. Type, Server or Cluster. This argument defaults
 to Server. When shutting down a cluster, you must set this argument
 explicitly to Cluster, or the command will fail.

- ignoreSessions = Optional. Boolean value specifying whether WLST
 should drop all HTTP sessions immediately or wait for HTTP sessions
 to complete or timeout while shutting down. This argument defaults
 to false, indicating that all HTTP sessions must complete or timeout.

- timeOut = Optional. Time (in milliseconds) that WLST waits for
 subsystems to complete in-process work and suspend themselves before
 shutting down the server. This argument defaults to 0 seconds,
 indicating that there is no timeout.

- force = Optional. Boolean value specifying whether WLST should
 terminate a server instance or a cluster without waiting for the
 active sessions to complete. This argument defaults to false,
 indicating that all active sessions must complete before shutdown.

- block = Optional. Boolean value specifying whether WLST should block
 user interaction until the server is shutdown. This argument defaults
 to false, indicating that user interaction is not blocked. In this case,
 WLST returns control to the user after issuing the command and assigns
 the task MBean associated with the current task to a variable that you
 can use to check its status. If you are importing WLST as a Jython
 module, block is always set to true. For more information, see
 "Importing WLST as a Jython Module" in "WebLogic Scripting Tool" at
 http://www.oracle.com/technology/products/weblogic/index.html.

Example:

wls:/mydomain/serverConfig> shutdown('myserver','Server','false',1000, block='false')

wls:/mydomain/serverConfig> shutdown('m1','Server','true',1200)
Shutting down a managed server that you are connected to ...
Disconnected from weblogic server: m1
wls:/(Not Connected)>
The scripting shell lost connection to the server that you were
connected to, this may be because the server was shutdown or
partitioned. You will have to re-connect to the server once the
server is available.


// Shutdown the Admin Server with the following command
wls:/FoundationA/serverConfig> shutdown(ignoreSessions="true")

Код:
...

WLST lost connection to the WebLogic Server that you were
connected to, this may happen if the server was shutdown or
partitioned. You will have to re-connect to the server once the
server is available.
Disconnected from weblogic server: AdminServer
Disconnected from weblogic server:


// Exit WLST
wls:/offline> exit()

Код:
Exiting WebLogic Scripting Tool.

<Jun 2, 2011 5:11:37 AM EDT> <Warning> <JNDI> <BEA-050001> <WLContext.close() was called in a different thread than the one in which it was created.>
__________________
Чат форума (требуется аккаунт на github или twitter)

Последний раз редактировалось Marley; 02.06.2011 в 12:13.
Ответить с цитированием
  #6  
Старый 01.06.2011, 15:01
Marley Marley вне форума
Senior Member
 
Регистрация: 19.09.2009
Сообщений: 7,211
По умолчанию

Lab 3 Creating domain templates with Domain Template Builder


export DISPLAY=192.168.1.50:0.0

/home/weblogic11/Oracle/Middleware/wlserver_10.3/common/bin/config_builder.sh
__________________
Чат форума (требуется аккаунт на github или twitter)

Последний раз редактировалось Marley; 03.06.2011 в 10:16.
Ответить с цитированием
  #7  
Старый 01.06.2011, 15:12
Marley Marley вне форума
Senior Member
 
Регистрация: 19.09.2009
Сообщений: 7,211
По умолчанию

Lab 4 Creating a domain from a custom template with WLST offline

$ ls /home/weblogic11/Oracle/Middleware/user_templates
foundationa_10.3.5.0.jar


$ . $MIDDLEWARE_HOME/wlserver_10.3/server/bin/setWLSEnv.sh
$ java weblogic.WLST


Код:
wls:/offline>readTemplate("/home/weblogic11/Oracle/Middleware/user_templates/foundationa_10.3.5.0.jar")
wls:/offline/FoundationA>setOption("OverwriteDomain","true")
wls:/offline/FoundationA>setOption("DomainName","FoundationB")
wls:/offline/FoundationA>writeDomain("/home/weblogic11/Oracle/Middleware/user_projects/domains/FoundationB")
wls:/offline/FoundationB>closeTemplate()
wls:/offline>exit()


$ ls /home/weblogic11/Oracle/Middleware/user_projects/domains
FoundationA FoundationB


/home/weblogic11/Oracle/Middleware/user_projects/domains/FoundationB/startWebLogic.sh

Код:
...
<Jun 3, 2011 4:04:55 AM EDT> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
http://192.168.1.10:7001/wlnav


Stop Admin Server by clicking Ctrl+C in the command window
__________________
Чат форума (требуется аккаунт на github или twitter)

Последний раз редактировалось Marley; 03.06.2011 в 11:10.
Ответить с цитированием
  #8  
Старый 01.06.2011, 16:18
Marley Marley вне форума
Senior Member
 
Регистрация: 19.09.2009
Сообщений: 7,211
По умолчанию

Lab 5 - Using Pack/Unpack to distribute domain configuration

Pack

cd /tmp


$ /home/weblogic11/Oracle/Middleware/wlserver_10.3/common/bin/pack.sh \
-domain="/home/weblogic11/Oracle/Middleware/user_projects/domains/FoundationB" \
-template="managedFoundationB.jar" \
-template_name="FoundationB managed server template" \
-managed=true

Код:
...

<< read domain from "/home/weblogic11/Oracle/Middleware/user_projects/domains/FoundationB"
>>  succeed: read domain from "/home/weblogic11/Oracle/Middleware/user_projects/domains/FoundationB"
<< set config option Managed to "true"
>>  succeed: set config option Managed to "true"
<< write template to "/tmp/managedFoundationB.jar"
....................................................................................................
>>  succeed: write template to "/tmp/managedFoundationB.jar"
<< close template
>>  succeed: close template


Unpack


To unpack the template, use the following unpack command remember that in reality you would use this on a separate server, after you had installed WebLogic Server


$ /home/weblogic11/Oracle/Middleware/wlserver_10.3/common/bin/unpack.sh \
-domain="/tmp/FoundationB" \
-template="/tmp/managedFoundationB.jar" \
-app_dir="/tmp/apps"

Код:
...
<< read template from "/tmp/managedFoundationB.jar"
>>  succeed: read template from "/tmp/managedFoundationB.jar"
<< set config option AppDir to "/tmp/apps"
>>  succeed: set config option AppDir to "/tmp/apps"
<< set config option DomainName to "FoundationB"
>>  succeed: set config option DomainName to "FoundationB"
<< write Domain to "/tmp/FoundationB"
................................................................................  ...............
>>  succeed: write Domain to "/tmp/FoundationB"
<< close template
>>  succeed: close template


/home/weblogic11/Oracle/Middleware/user_projects/domains/FoundationB/startWebLogic.sh
/tmp/FoundationB/bin/startManagedServer_1.sh

Код:
...

Enter username to boot WebLogic server:weblogic
Enter password to boot WebLogic server:weblogic1

...
__________________
Чат форума (требуется аккаунт на github или twitter)

Последний раз редактировалось Marley; 03.06.2011 в 11:43.
Ответить с цитированием
  #9  
Старый 01.06.2011, 16:22
Marley Marley вне форума
Senior Member
 
Регистрация: 19.09.2009
Сообщений: 7,211
По умолчанию

Lab 6 - Managing Security Data with WLST Online

For the remainder of these lab exercise, we will use a simple domain called FoundationLab, with the following parameters:
  • only one server (AdminServer)
  • listen ports (7001/7002)
  • user weblogic, password weblogic1
  • Development mode
  • JRockit JDK
  • Domain location: /home/weblogic11/Oracle/Middleware/user_projects/domains/FoundationLab

Please create this domain now, using the Configuration Wizard.

Подобно:
http://odba.ru/showpost.php?p=7066&postcount=4



// Start AdminServer with startWebLogic.cmd script
/home/weblogic11/Oracle/Middleware/user_projects/domains/FoundationLab/startWebLogic.sh


$ . $MIDDLEWARE_HOME/wlserver_10.3/server/bin/setWLSEnv.sh
$ java weblogic.WLST

wls:/offline> connect("weblogic", "weblogic1", "t3://localhost:7001")

wls:/FoundationLab/serverConfig> from weblogic.management.security.authentication import UserEditorMBean
wls:/FoundationLab/serverConfig> realm=cmo.getSecurityConfiguration().getDefaultRea lm()
wls:/FoundationLab/serverConfig> atnr=realm.lookupAuthenticationProvider("DefaultAu thenticator")
wls:/FoundationLab/serverConfig> atnr.createUser('mark','password1','New wls user')
wls:/FoundationLab/serverConfig> from weblogic.management.security.authentication import GroupEditorMBean
wls:/FoundationLab/serverConfig> atnr.createGroup('plainUsers','Ordinary People')
wls:/FoundationLab/serverConfig> atnr.addMemberToGroup('plainUsers','mark')


wls:/FoundationLab/serverConfig> from weblogic.management.security.authentication import UserReaderMBean
wls:/FoundationLab/serverConfig> realm=cmo.getSecurityConfiguration().getDefaultRea lm()
wls:/FoundationLab/serverConfig> atnr=realm.lookupAuthenticationProvider("DefaultAu thenticator")
wls:/FoundationLab/serverConfig> cursor = atnr.listUsers("*",0)
wls:/FoundationLab/serverConfig> groupReader=atnr


wls:/FoundationLab/serverConfig> atnr.getCurrentName(cursor)
'OracleSystemUser'
wls:/FoundationLab/serverConfig> atnr.advance(cursor)
wls:/FoundationLab/serverConfig> atnr.getCurrentName(cursor)
'weblogic'
wls:/FoundationLab/serverConfig> atnr.advance(cursor)
wls:/FoundationLab/serverConfig> atnr.getCurrentName(cursor)
'mark'
wls:/FoundationLab/serverConfig> atnr.close(cursor)
wls:/FoundationLab/serverConfig> disconnect()
Disconnected from weblogic server: AdminServer
wls:/offline> exit()


$ java weblogic.WLST /home/weblogic11/labs/FoundationLab/Scripts/ListUsersGroups.py

Output:

Код:
Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

Connecting to t3://localhost:7001 with userid weblogic ...
Successfully connected to Admin Server 'AdminServer' that belongs to domain 'FoundationLab'.

Warning: An insecure protocol was used to connect to the
server. To ensure on-the-wire security, the SSL port or
Admin port should be used instead.

Users in realm myrealm are:
OracleSystemUser
weblogic
mark
Groups in realm are:
AdminChannelUsers
Administrators
AppTesters
CrossDomainConnectors
Deployers
Monitors
Operators
OracleSystemGroup
plainUsers
Disconnected from weblogic server: AdminServer


Exiting WebLogic Scripting Tool.
listing: ListUsersGroups.py

Код:
connect('weblogic','weblogic1','t3://localhost:7001')

from weblogic.management.security.authentication import UserReaderMBean
from weblogic.management.security.authentication import GroupReaderMBean

realm=cmo.getSecurityConfiguration().getDefaultRealm()
atns = realm.getAuthenticationProviders()
for i in atns:
  if isinstance(i,UserReaderMBean):
    userReader = i
    cursor = i.listUsers("*",0)
    print 'Users in realm '+realm.getName()+' are: '
    while userReader.haveCurrent(cursor):
      print userReader.getCurrentName(cursor)
      userReader.advance(cursor)
    userReader.close(cursor)

for i in atns:
  if isinstance(i,GroupReaderMBean):
    groupReader = i
    cursor = i.listGroups("*",0)
    print 'Groups in realm are: '
    while groupReader.haveCurrent(cursor):
      print groupReader.getCurrentName(cursor)
      groupReader.advance(cursor)
    groupReader.close(cursor)

disconnect()
exit()

// Managing Security Data (WLST Online)
http://download.oracle.com/docs/cd/E...s.htm#i1028177

// The WebLogic Server® MBean Reference
http://download.oracle.com/docs/cd/E...ore/index.html
__________________
Чат форума (требуется аккаунт на github или twitter)

Последний раз редактировалось Marley; 03.06.2011 в 12:17.
Ответить с цитированием
  #10  
Старый 01.06.2011, 16:34
Marley Marley вне форума
Senior Member
 
Регистрация: 19.09.2009
Сообщений: 7,211
По умолчанию

Lab 7 Fastswap (Development Mode)


vi /home/weblogic11/Oracle/Middleware/user_projects/domains/FoundationLab/bin/setDomainEnv.sh

меняем в начале документа в 1 месте

enableHotswapFlag=""

на

enableHotswapFlag="-javaagent:/home/weblogic11/Oracle/Middleware/wlserver_10.3/server/lib/diagnostics-agent.jar"




$ vi /home/weblogic11/labs/FoundationLab/apps/Browse/Version1/app/browsestore.war/WEB-INF/weblogic.xml

Добавляем <fast-swap/>

Код:
<?xml version='1.0' encoding='UTF-8'?>
<weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/90" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
     <fast-swap/>
</weblogic-web-app>
// Подключаемся к консоли
http://192.168.1.10:7001/console/


Click Browse Store hyperlink, then check Furniture and click Retrieve Items

Код:
serviced request for the welcome page
serviced the request to browse the store
serviced request to print items
To see Fastswap in action, edit the browseCategories.java servlet (you will find this in browsestore.war/WEB-INF/classes/com/servlets).
Replace this line


vi /home/weblogic11/labs/FoundationLab/apps/Browse/Version1/app/browsestore.war/WEB-INF/classes/com/servlets/browseCategories.java

Строку:

System.out.println("serviced request to print items");

Меняем на:

System.out.println("it is a good day to die");

$ javac /home/weblogic11/labs/FoundationLab/apps/Browse/Version1/app/browsestore.war/WEB-INF/classes/com/servlets/browseCategories.java

Reload the browsetore webapp in your browser

Код:
serviced request for the welcome page
serviced the request to browse the store
serviced request to print items
it is a good day to die
__________________
Чат форума (требуется аккаунт на github или twitter)

Последний раз редактировалось Marley; 03.06.2011 в 13:23.
Ответить с цитированием
Ответ

Опции темы
Опции просмотра

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.

Быстрый переход


Текущее время: 21:28. Часовой пояс GMT +3.


Powered by vBulletin®