You are on page 1of 8

weblogic 2013-11-01 zhangmengzhi2005@126.

com

weblogic
weblogic8.14 C:\bea814

C:\bea814\weblogic81\common\bin\config.cmd domain domain dm4Cluster C:\bea814\user_projects\domains Admin Server

C:\bea814\user_projects\domains\dm4Cluster dm4Cluster

1.boot.properties
wlc # Generated by Configuration Wizard on Mon Oct 14 11:29:36 CST 2013 username={3DES}Na2EDRiL5O4hDpRccYvMYA== password={3DES}Na2EDRiL5O4hDpRccYvMYA== nohup.out username=weblogic1 password=weblogic1

2. config.xml
config.xml.booted config.xml.original <?xml version="1.0" encoding="UTF-8"?> <Domain ConfigurationVersion="8.1.4.0" Name="dmctais1">

<!-- Server ListenAddressListenPort --> <Server ListenAddress="" ListenPort="7001" Name="myserver" NativeIOEnabled="true" ReliableDeliveryPolicy="RMDefaultPolicy" ServerVersion="8.1.4.0"> <SSL Enabled="false" HostnameVerificationIgnored="false" IdentityAndTrustLocations="KeyStores" Name="myserver"/> </Server>

<!-- --> <JMSFileStore Directory="rmfilestore" Name="FileStore"/> <WSReliableDeliveryPolicy DefaultRetryCount="10" DefaultTimeToLive="60000" Name="RMDefaultPolicy" Store="FileStore"/> <Security Name="dmctais1" PasswordPolicy="wl_default_password_policy" Realm="wl_default_realm" RealmSetup="true"/> <EmbeddedLDAP

CredentialEncrypted="{3DES}XzZ8wuk/1tq8Ezmq5ZllevnHpIEUtilw6MrTfuBxC0 w=" Name="dmctais1"/> <SecurityConfiguration

CredentialEncrypted="{3DES}1Z6Dk/cC4T2TYmT3hho6ykl6LBpcmfTIM25zQ20eUi URZJzGIH8iMTk5kVxqfWmcmg0MdYj3ZnQPRT+MpNcIlxry/8Z5yJ+Z" Name="dmctais1" RealmBootStrapVersion="1"/> <Realm FileRealm="wl_default_file_realm" Name="wl_default_realm"/> <FileRealm Name="wl_default_file_realm"/> <PasswordPolicy Name="wl_default_password_policy"/> <JMSServer Name="WSStoreForwardInternalJMSServermyserver" Store="FileStore" Targets="myserver"> <JMSQueue CreationTime="1381722035669" JNDIName="jms.internal.queue.WSStoreForwardQueue" JNDINameReplicated="false" Name="WSInternaljms.internal.queue.WSStoreForwardQueuemyserver"/> <JMSQueue CreationTime="1381722035778"

JNDIName="jms.internal.queue.WSDupsEliminationHistoryQueue" JNDINameReplicated="false" Name="WSInternaljms.internal.queue.WSDupsEliminationHistoryQueuemyser ver"/> </JMSServer>

<!-- JDBCConnectionPool JDBCTxDataSource --> <JDBCConnectionPool DriverName="oracle.jdbc.OracleDriver" Name="wliPool" PasswordEncrypted="{3DES}mTtROT01ncg=" Properties="user=ctais2" Targets="myserver" TestTableName="SQL SELECT 1 FROM DUAL" URL="jdbc:oracle:thin:@86.100.92.31:1521:reg"/> <JDBCTxDataSource JNDIName="jdbc.ctais" Name="TXDataSource"

PoolName="wliPool" Targets="myserver"/> <!-- Targets Server -->

<!-- web domain applications --> <Application Name="_appsdir_ctais_dir" Path="C:\bea814\user_projects\domains\dmctais1\applications" StagingMode="nostage" TwoPhase="true"> <WebAppComponent Name="ctais" Targets="myserver" URI="ctais"/> </Application>

</Domain>

Weblogic server JDBCTxDataSource JTA JTA <ConnectionPool> <Pool Name="yy" UserID="dw" JTS="jdbc.yy" Password="password" Charset="GBK" DefConnectionNum="40" MaxConnectionNum="40" DBTYPE="ORACLE" JdbcDriver="oracle.jdbc.driver.OracleDriver" JdbcUrl="jdbc:oracle:thin:86.100.92.31:1521:reg" > </Pool>

3.Server
C:\bea814\user_projects\domains\dm4Cluster\myserver .wlnotdelete JSP JSP .wlnotdelete\extract web ldap

weblogic
/ Admin Server n

Apache http .so /WeblogicServerletServer defaultProxyApp

1. Domain
C:\bea814\weblogic81\common\bin\config.cmd Admin Serverweblogic

2. http://localhost:7001/console

3.Configure a new Cluster


name:2NodeCluster Cluster Address:localhost:7771,localhost:7772

4. Server
Name:node1 Cluster:2NodeCluster Listen Address:localhost Listen Port:7771

Name:node2 Cluster:2NodeCluster Listen Address:localhost Listen Port:7772

5. node1
cd C:\bea814\user_projects\domains\dm4Cluster startManagedWebLogic.cmd node1 t3://localhost:7001 node2 cd C:\bea814\user_projects\domains\dm4Cluster startManagedWebLogic.cmd node2 t3://localhost:7001

6. :Deploy a new Web Application Module


Clusters 2NodeCluster

7.
http://localhost:7771/testcluster/ http://localhost:7772/testcluster/

8. Server
Name:proxy Cluster:2NodeCluster ()

Listen Address:localhost Listen Port:5551

9. proxy
cd C:\bea814\user_projects\domains\dm4Cluster startManagedWebLogic.cmd proxy t3://localhost:7001

10. :Deploy a new Web Application Module


defaultProxyApp proxy defaultProxyApp web.xml

<servlet> <servlet-name>HttpClusterServlet</servlet-name> <servlet-class>weblogic.servlet.proxy.HttpClusterServlet</servlet-class> <init-param> <param-name>WebLogicCluster</param-name> <param-value>localhost:7771|localhost:7772</param-value> </init-param>

11.
http://localhost:5551/testcluster/