(GO) Weblogic 12c cluster deployment and session replication

Source: Internet
Author: User
Tags app service

1. Start the service

Start the managed services Server1, Server2, Server3, first on the WEBLOGIC12C console.

2. The application to be deployed is packaged into a war file. I use MyEclipse to do the development, can use its own tools to package the project application into a war package. Right-click Project--->Export--> search box enter war, select War file, generate corresponding war
1 weblogic.xml file Contents:2  3 <!DOCTYPE Weblogic-web-app Public "-//bea Systems, INC.//DTD Web Application 8.1//en" "http://www.bea.com/servers/ Wls810/dtd/weblogic810-web-jar.dtd ">4  5 <Weblogic-web-app>6  7 <Session-descriptor>8  9 <Session-param>Ten   One <Param-name>Timeoutsecs</Param-name> A   - <Param-value>28800</Param-value> -   the </Session-param> -   - <Session-param> -   + <Param-name>CookieName</Param-name> -   + <Param-value>Bss_jsessionid</Param-value> A   at </Session-param> -   - <Session-param> -   - <Param-name>Persistentstoretype</Param-name> -   in <Param-value>Replicated_if_clustered</Param-value> -   to </Session-param> +   - </Session-descriptor> the   * <Jsp-descriptor> $  Panax Notoginseng <Jsp-param> -   the <Param-name>Encoding</Param-name> +   A <Param-value>gb2312</Param-value> the   + </Jsp-param> -   $ <Jsp-param> $   - <Param-name>Pagecheckseconds</Param-name> -   the <Param-value>1</Param-value> -  Wuyi </Jsp-param> the   - </Jsp-descriptor> Wu   - <Container-descriptor> About   $ <Servlet-reload-check-secs>1</Servlet-reload-check-secs> -   - </Container-descriptor> -   A <Context-root>/redis</Context-root> +   the </Weblogic-web-app>
View CodeReplicated_if_clustered means session replication, without this parameter value configuration, the session between the subsequent deployment of the Server1-3 Service application will not be copied, you can practice, I do not demonstrate here. Web. XML content
1  2 <?XML version= "1.0" encoding= "UTF-8"?>3  4 <Web-appXmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"xmlns= "Http://java.sun.com/xml/ns/javaee"xsi:schemalocation= "Http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"ID= "webapp_id"version= "3.0">5  6 <Display-name>Session_test</Display-name>7  8 <welcome-file-list>9  Ten <Welcome-file>index.jsp</Welcome-file> One   A </welcome-file-list> -   - </Web-app>
View Code3. Deployment

Open the WebLogic console and click Deploy-to-install

Go to the directory where you stored the package war and select the War file.

Click Next,

Click Next

Then the default selection, click Finish, after the successful deployment is the following state.

4. Visit the deployed Session_test app service to open the browser, access Server1 deployed services, enter the service http://127.0.0.1:47001/redis/Access Server2 deployment, enter HTTP// 127.0.0.1:47002/redis/access to Server3 deployed services, enter http://127.0.0.1:47003/redis/to access the Session_test app under three services and discover Session_ The value before the first exclamation mark (602T6EWKIR9LKBZ1QADZR6073BJXLYFJIHEAD-U456EII26AC5VT) of the ID is constant, indicating the Server1, Server2, and cluster under the cluster. The session of the Session_test application of the Server3 service is replicated to each other.

(GO) Weblogic 12c cluster deployment and session replication

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.