通过数据库方式:
<?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>
本文探讨了在Weblogic中通过数据库和内存方式实现会话持久化的配置及其实现原理,包括Weblogic Web应用程序配置、会话共享启用、持久存储类型选择等关键信息。

723

被折叠的 条评论
为什么被折叠?



