* JBoss Session 공유설정
- all1과 all2를 clustering구성하였으나 세션은 공유되지 않는다. 즉, JSESSIONID공유되지 않는다.
- WEB-INF/web.xml파일에 <distributable/> 태그를 추가하여 세션 공유 설정을 추가한다.
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<jsp-config>
<jsp-property-group>
<url-pattern>/*</url-pattern>
<page-encoding>MS949</page-encoding>
</jsp-property-group>
</jsp-config>
<distributable/>
</web-app>
'미들웨어 > Web Application Server' 카테고리의 다른 글
[Tomcat] Apache & Tomcat 연동 (0) | 2017.03.15 |
---|---|
[Tomat] Tomcat 설치 (tomcat-7.0.75) (0) | 2017.03.15 |
[JBoss] Clustering 구성 (0) | 2014.10.31 |
[JBoss] Clustering 구성을 위한 사전 점검 (0) | 2014.10.31 |
[JBoss] 서비스 포트 정의 (0) | 2014.07.24 |