[Seasar-user:17878] Re: TomcatセッションレプリケーションでDTOの値が取得できない
Shunya Osanai
[E-MAIL ADDRESS DELETED]
2009年 6月 30日 (火) 17:39:40 JST
$BD9Fb$G$9!#(B
$B$9$_$^$;$s!#>pJsDI2C$7$^$9!#(B
>$B$3$l$@$1$G$O>pJsITB-$G2?$bJ,$+$i$J$$$N$G!$$^$:$O(B DTO $B$,%;%C%7%g%s$[E-MAIL ADDRESS DELETED](B
$B$5$l$?$N$K<hF@$G$-$J$$$N$+!$$=$b(B>$B$=$b%;%C%7%g%s$[E-MAIL ADDRESS DELETED]$5$l$F$$$J$$$N$+$r(B
$[E-MAIL ADDRESS DELETED]$jJ,$1$F$/$@$5$$!%%;%C%7%g%s$[E-MAIL ADDRESS DELETED]$5$l$?$+$I$&$+$O(B requestDumpFilter >
$B$N%m%0$"$k$$$O(B HttpSessionAttributeListener $B$J$I$G3NG'$7$F$/$@$5$$!%(B
$BD4::$7$?FbMF$r0J2<$K5-:\$7$^$9!#(B
$B%5!<%P9=@.(B
$B!&(BLoad Balancer$B!J(BApache2.2$B!K(B
$B!&(BTomcat-A
$B!&(BTomcat-B
Tomcat-A$B$H(BTomcat-B$B$r%l%W%j%1!<%7%g%s(B(cluster$B![E-MAIL ADDRESS DELETED](B
$B-!(BTomcat-A$B$K@\B3$7$F%m%0%$%s>pJs!J(BUserDto$B!K$[E-MAIL ADDRESS DELETED](B
UserDto.java ---------------------------------------------
@Component(instance = InstanceType.SESSION)
public class UserDto implements Serializable {
private static final long serialVersionUID = 1L;
public String userId;
public String passWord;
public String userName;
}
-----------------------------------------------------------
$B-"(BTomcat-A$B$rDd;_!#(B
$B-#(BLoad Balancer$B$K$h$j(BTomcat-B$B$K!#(B
$B-$(BUserDto.userId$B$NCM$r;2>H$9$k$H!"(BNULL$B$H$J$C$F$$$k!#(B
$B"(%=!<%9$rDI$C$?$H$3$m!"(B
org.seasar.framework.container.deployer.SessionComponentDeployer$B$N(B
$B!!(Bdeploy() $B$N(B54$B9TL\(B sessionMap.get(componentName)$B$,(BNULL$B$H$J$j!"(BUserDto$B$,(B
$B=i4|2=$5$l$k$h$&$K8+$($^$9!#(B
$B$h$m$7$/$*4j$$CW$7$^$9!#(B
Seasar-user メーリングリストの案内