1. 미들웨어이야기/03. JBoss

JBoss Session 공유설정

OSSW(Open Source System SoftWare 2014. 10. 31. 13:16

 

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>

 

 

 

by. 현주희 (10월)