[Seasar-user:6148] Re: RemoveSessionについて

Koichi Kobayashi [E-MAIL ADDRESS DELETED]
2007年 2月 13日 (火) 23:00:23 JST


$B>.NS(B (koichik) $B$G$9!%(B

Date:    Tue, 13 Feb 2007 21:58:45 +0900
From:    <[E-MAIL ADDRESS DELETED]>
To:       <[E-MAIL ADDRESS DELETED]>
Subject: [Seasar-user:6145] RemoveSession$B$K$D$$$F(B

> $B!!-"!%%a%=%C%I$ND>A0$K5-=R(B
>     @RemoveSession(name="bbbDto")
>     public String doClear){
>        return "$B2hLLA+0\>pJs(B";
>     }

$B$3$A$i$[E-MAIL ADDRESS DELETED]$7$$$G$9!%(B

>    $B"M(B $B2hLL$r3+$$$?$i%(%i!<$H$J$C$F$7$^$$$^$9!#(B
> $B!!!!!!!J2?8N$+%m%0$K(BException$B$N>pJs$,=PNO$5$l$:!"(B
> $B!!!!!!!!%(%i!<$N860x$rFCDj$G$-$^$;$s!K(B

$B$3$l$@$1$@$H2?$H$bH=CG$,Fq$7$$$G$9$M!%(B

$B$R$H$^$:!$(BSeasar2 $B$K4^$^$l$F$$$k(B
org.seasar.framework.aop.interceptors.RemoveSessionInterceptor
$B$H$$$&%/%i%9$N(B invoke(MethodInvocation) $B$H$$$&%a%=%C%I$N(B

    public Object invoke(final MethodInvocation invocation) throws Throwable {
        try {
            return invocation.proceed(); $B"+(B $B%3%3(B
        } finally {
            removeSession();
        }
    }

$B!V%3%3!W$H=q$$$?9T$K%V%l!<%/%]%$%s%H$rIU$1$F(B
$B2hLL$r3+$$$F$_$F$/$@$5$$!%(B
$B$3$3$G;_$^$i$J$$$h$&$@$H!$(BS2Tiger $B$N(B Jar $B$,(B
$B<B9T;~$N%/%i%9%Q%9(B (WEB-INF/lib $BEy(B) $B$KDL$C$F$$$J$$(B
$B2DG=@-$,$"$j$^$9!%(B

$B;_$^$C$?>l9g$O%9%F%C%W%*!<%P!<(B (F6) $B$7$F$/$@$5$$!%(B
removeSession() $B$r8F$S=P$99T$K0\$k$O$:$J$N$G!$(B
$B%9%F%C%W%$%s(B (F5) $B$7$F$/$@$5$$!%(B

removeSession() $B%a%=%C%I$NCf$r%9%F%C%W%*!<%P!<$7$F!$(B
$B:G8e$N9T$^$G?J$`$H%;%C%7%g%s$+$i3:Ev$[E-MAIL ADDRESS DELETED]$,:o=|(B
$B$5$l$k$O$:$G$9!%(B
$BESCf$G(B return $B$7$F$7$^$&$h$&$J$i!$$=$N0LCV$r(B
$B65$($F$/$@$5$$!%(B

$B$^$?!$(BbbbDto $B$rDj5A$7$F$$$k(B dicon $B$d!$$*;H$$$N(B
Seasar2 $B$d(B JDK $B$N%P!<%8%g%sEy$b65$($F$/$@$5$$!%(B


--
<signature>
   <name>Koichi Kobayashi</name>
   <e-mail>[E-MAIL ADDRESS DELETED]</e-mail>
</signature>




Seasar-user メーリングリストの案内