<div dir="ltr"><div>$B$b$&0lE@$"$j$^$7$?!#(B<br><br>$B%;%C%7%g%s%l%W%j%1!<%7%g%s$,HsF14|$G9T$o$l$k$?$a!"(BsetAttribute/getAttribute$B$H(B<br>$B%;%C%7%g%s%l%W%j%1!<%7%g%s$N=hM}$,6%9g$9$k2DG=@-$,$"$j$^$9!#(B<br><br>$B$3$N$?$a!"%;%C%7%g%s$K3JG<$9$k%*%V%8%'%/%H$O%9%l%C%I%;!<%U$K$7$F$/$@$5$$!#(B<br></div><br>$BNc$($P(BMap$B$@$C$?$i(B java.util.concurrent.ConcurrentHashMap $B$r;H$&$J$I$7$F$/$@$5$$!#(B<br>
<br>$B$J$*!"$3$N:](B <font size="-1">java.util.Collections#synchronizedMap $BEy$N%a%=%C%I$O!"(B<br>$B$3$N%a%=%C%I$rDL$7$F$b!"%3%l%/%7%g%s(BAPI$B$N%7%j%"%i%$%:!&%G%7%j%"%i%$%:$N=hM}$,(B<br>$B%9%l%C%I%;!<%U$K$J$i$J$$$H$$$&LdBj$,$"$k$?$a!";HMQ$G$-$J$$$H$$$&E@$K$bCm0U$7$F$/$@$5$$!#(B</font><br><div><br></div><div>Tomcat$B$N%;%C%7%g%s%l%W%j%1!<%7%g%s$N@_Dj$rF14|%b!<%I$K$9$k$H$$$&<j$b$"$k$s$G$9$,!"(B<br>
$B%Q%U%)!<%^%s%9Ey$K$I$&1F6A$9$k$N$+!"<+J,$G$O8!>Z$,=PMh$F$$$J$$$G$9!#(B<br><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013$BG/(B9$B7n(B3$BF|(B 17:22 Hiroyuki Ohnaka <span dir="ltr"><<a href="mailto:hiroyuki@fieldnotes.jp" target="_blank">hiroyuki@fieldnotes.jp</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>$BBgCf$G$9!#(B<br><br></div>Tomcat$B$N%;%C%7%g%s%l%W%j%1!<%7%g%s$O%G%U%)%k%H$,%j%/%(%9%H$KBP$7$FHsF14|$N$?$a!"(B<br></div>Teeda$B$N$h$&$J(BPage$B$N=hM}$N8e%j%@%$%l%/%H$9$k$N$,86B'$J%U%l!<%`%o!<%/$N>l9g!"(B<br>
$B%j%@%$%l%/%H$7$?8e$K%j%/%(%9%H@h$N(Btomcat$B$K(B($B%l%W%j%1!<%7%g%s$,$^$@=*$o$C$F$$$J$$$?$a(B)<br>$B%;%C%7%g%s>pJs$,$H$I$+$:!"%;%C%7%g%s$N>uBV$KIT@09g$,5/$-$k2DG=@-$,$"$j$^$9!#(B<br>
($B<+J,$,7P83$7$?$N$O(BTeeda$B$G$J$$%U%l!<%`%o!<%/$N$?$a!"$"$/$^$G2DG=@-$G$9$,(B...)<br><br><div>$B$3$l$rHr$1$k3N<B$JJ}K!$O!"%9%F%#%C%-!<%;%C%7%g%s$rJ;MQ$7$F!"%;%C%7%g%s%l%W%j%1!<%7%g%s$O(B<br>$B%5!<%P!<$K>c32$,5/$-$?>l9g$NJ]81$*$h$S!"%G%W%m%$;~$N%;%C%7%g%s7QB3$N<jCJ$H$7$F(B<br>$B;H$&!"$H$$$&$3$H$K$J$j$^$9!#(B<br><div><br><br></div></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">2013$BG/(B9$B7n(B3$BF|(B 14:35 $B@>B<0l><(B <span dir="ltr"><<a href="mailto:k-nishimura@ts.cnt.dnes.jp.nec.com" target="_blank">k-nishimura@ts.cnt.dnes.jp.nec.com</a>></span>:<div><div class="h5"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
$B$*@$OC$K$J$C$F$*$j$^$9!#(B<br>
$B@>B<$H?=$7$^$9!#(B<br>
<br>
Tomcat$B$G$N%;%C%7%g%s%l%W%j%1!<%7%g%s$N<BAuJ}K!$K$D$$$F$*;G$$$7$^$9!#(B<br>
<br>
$B8=:_!"(B<br>
$B!!(BWEB(Apache)$B!_(B3 - LB - AP(Tomcat)$B!_(B2 - DB(MySQL)$B!_(B1<br>
$B$N9=@.$G(BTomcat$B$G$N%;%C%7%g%s%l%W%j%1!<%7%g%s$N<BAu$r8!F$$7$F$$$^$9!#(B<br>
<br>
$B2a5n$N(BML$B$r;29M$K2<5-$N$h$&$J<BAu$r9T$*$&$H9M$($F$$$k$N$G$9$,!"(B<br>
$B2?$+2aITB-$,$"$j$^$7$?$i$4;XE&$r$*4j$$$7$^$9!#(B<br>
<br>
<br>
1.Tomcat$B$N@_Dj(B<br>
$B!&(BTomcat$B$N(Bserver.xml$B$N(B<Cluster>$B%?%0$N%3%a%s%H%"%&%H$r2r=|$7!"M-8z$K$9$k(B<br>
$B!&(B<Cluster>$B%?%0$N(B<Valve className="$B!A(B.ReplicationValve"/>$B$N=|30BP>]$+$i!V(B.*\.html$B!W$r:o=|$9$k(B<br>
<br>
2.$B%"%W%j$N@_Dj(B<br>
$B!&(Bweb.xml$B$K!V(B<distributable/>$B!W$rDI5-$9$k(B<br>
$B!&(Bhtml$B$G!V(B<te:include>$B!W$r;HMQ$7$F$$$k2U=j$d(BForm$BItIJ$K(Bid$BB0@-$r@_Dj$7!"!V(Bname="_idXX"$B!W$,IUM?$5$l$J$$$h$&$K$9$k(B<br>
$B"(!V(B<te:include>$B!W0J30$KCm0U$,I,MW$J8D=j$O$"$j$^$9$+!)(B<br>
$B!&(BFilter$B$d(BIntercepter$B$GL@<(E*$K(BHttpSession#setAttribute()$B$r9T$&(B<br>
$B!!!!%$%s%?!<%;%W%?$X$N<BAu0F(B:<br>
public class SessionSetAttributeInterceptor extends AbstractInterceptor {<br>
<br>
/** $B%7%j%"%k%P!<%8%g%s(BUID */<br>
private static final long serialVersionUID = 1L;<br>
<br>
/**<br>
* $B%$%s%?%;%W%?$N%]%$%s%H%+%C%H;~$K8F$S=P$5$l$k%a%=%C%I(B<br>
*/<br>
public Object invoke(MethodInvocation methodInvocation) throws Throwable {<br>
<br>
Object ret = methodInvocation.proceed();<br>
<br>
HttpSession httpSession = SingletonS2Container.getComponent("session");<br>
<br>
// $B%f!<%6>pJs(BDto<br>
Object objUserInfoDto = httpSession.getAttribute("userInfoDto");<br>
httpSession.setAttribute("userInfoDto", objUserInfoDto);<br>
<br>
//TODO $B$=$NB>%;%C%7%g%s3JG<(BDto<br>
<br>
// Teeda Extension<br>
Object objPageScope = httpSession.getAttribute(javax.faces.internal.scope.PageScope.class.getName());<br>
httpSession.setAttribute(javax.faces.internal.scope.PageScope.class.getName(), objPageScope);<br>
<br>
Object objSubApplicationScope = httpSession.getAttribute(javax.faces.internal.scope.SubApplicationScope.class.getName());<br>
httpSession.setAttribute(javax.faces.internal.scope.SubApplicationScope.class.getName(), objSubApplicationScope);<br>
<br>
Object objRedirectScope = httpSession.getAttribute(javax.faces.internal.scope.RedirectScope.class.getName());<br>
httpSession.setAttribute(javax.faces.internal.scope.RedirectScope.class.getName(), objRedirectScope);<br>
<br>
return ret;<br>
}<br>
}<br>
<br>
$B%7%9%F%`9=@.!'(B<br>
$B!&(BRedhat-Linux ES release 4<br>
$B!&(BApache2.0.52<br>
$B!&(Bjdk1.5.0.9<br>
$B!&(BTomcat 6.0.35<br>
$B!&(Bs2-framework 2.4.24<br>
$B!&(BTeeda 1.0.13-sp6<br>
$B!&(BMySQL 5.0.27<br>
<br>
$B;29M$K$7$?(BML:<br>
$B!&(B[Seasar-user:11433]<br>
$B!&(B[Seasar-user:17881]<br>
$B!&(B[Seasar-user:21674]<br>
<br>
_______________________________________________<br>
Seasar-user mailing list<br>
<a href="mailto:Seasar-user@ml.seasar.org" target="_blank">Seasar-user@ml.seasar.org</a><br>
<a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
</blockquote></div></div></div><br></div>
</blockquote></div><br></div>