Weblogic中设置不同方式session共享的weblogic.xml文件的配置
<?xml version="1.0" encoding="UTF-8"?> <wls:weblogic-web-app xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-web-app" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.7/weblogic-web-app.xsd"> <wls:weblogic-version>12.1.3</wls:weblogic-version> <wls:context-root>Weblogic_jdbc</wls:context-root> <wls:session-descriptor> <wls:sharing-enabled>true</wls:sharing-enabled> <wls:persistent-store-type>jdbc</wls:persistent-store-type> <wls:persistent-store-pool>JDBC_test</wls:persistent-store-pool> <wls:persistent-store-table>wl_servlet_sessions</wls:persistent-store-table> </wls:session-descriptor> </wls:weblogic-web-app>
<?xml version="1.0" encoding="UTF-8"?> <wls:weblogic-web-app xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-web-app" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.7/weblogic-web-app.xsd"> <wls:weblogic-version>12.1.3</wls:weblogic-version> <wls:context-root>Weblogic_in_memory</wls:context-root> <wls:session-descriptor> <wls:sharing-enabled>true</wls:sharing-enabled> <wls:persistent-store-type>replicated_if_clustered</wls:persistent-store-type> </wls:session-descriptor> </wls:weblogic-web-app>
声明:该文观点仅代表作者本人,牛骨文系教育信息发布平台,牛骨文仅提供信息存储空间服务。