$B>.NSMM(B<br>$B$$$D$b$"$j$,$H$&$4$6$$$^$9(B<br><br>&gt;setter $B%a%=%C%I$O$"$j$^$9$+!)(B<br>$B$"$j$^$9!#(B<br><br>$B0J2<%=!<%9$G$9!JB?>/>JN,$7$F$"$j$^$9!K(B<br>package system.web;<br><br>import java.rmi.RemoteException;<br><br>import javax.servlet.http.HttpSessionEvent;<br>import javax.servlet.http.HttpSessionListener;<br>
<br>import org.seasar.framework.container.SingletonS2Container;<br><br>/**<br>&nbsp;* $B%;%C%7%g%s%j%9%J!<%/%i%9(B<br>&nbsp;* @author masayuki ogawa<br>&nbsp;* @version 1.0<br>&nbsp;*/<br>public class CheckSessionServlet&nbsp; implements HttpSessionListener{<br>
<br>&nbsp;&nbsp;&nbsp; /**<br>&nbsp;&nbsp;&nbsp; &nbsp;* $B%;%C%7%g%s@8@.;~$N8F$P$l$k(B<br>&nbsp;&nbsp;&nbsp; &nbsp;*/<br>&nbsp;&nbsp;&nbsp; public void sessionCreated(HttpSessionEvent hse) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; System.out.println(&quot;$B!y!y!y!y!y!y%;%C%7%g%s$,@8@.$5$l$^$7$?(B&quot;);<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; /**<br>&nbsp;&nbsp;&nbsp; &nbsp;* $B%;%C%7%g%sGK4~;~$K8F$P$l$k(B<br>&nbsp;&nbsp;&nbsp; &nbsp;*/<br>
&nbsp;&nbsp;&nbsp; public void sessionDestroyed(HttpSessionEvent hse) {<br><br>&nbsp;&nbsp;&nbsp; //debug<br>&nbsp;&nbsp;&nbsp; iRet = -1;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if(iRet&lt;0){<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ShoppingSendMail shoppmail = new ShoppingSendMail();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if(!shoppmail.SendCancelErrMail()){<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; System.out.println(&quot;$B%a!<%kAw?.$K<:GT$7$^$7$?(B&quot;);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; <br>}<br><br><br><br><br><br><div class="gmail_quote">2008/05/23 14:30 Koichi Kobayashi &lt;<a href="mailto:koichik@gmail.com">koichik@gmail.com</a>&gt;:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">$B>.NS(B (koichik) $B$G$9!%(B<br>
<br>
Date: &nbsp; &nbsp;Fri, 23 May 2008 11:50:59 +0900<br>
<div class="Ih2E3d">From: &nbsp; &nbsp;&quot;$B>.@n>;9,(B&quot; &lt;<a href="mailto:masayukiogaking@gmail.com">masayukiogaking@gmail.com</a>&gt;<br>
To: &nbsp; &nbsp; &nbsp;<a href="mailto:seasar-user@ml.seasar.org">seasar-user@ml.seasar.org</a><br>
</div>Subject: [Seasar-user:14402] Re: DI$B$K$D$$$F(B<br>
<div class="Ih2E3d"><br>
&gt; getIfDao$B$O(B<br>
&gt; &nbsp; &nbsp; public SystemctlDao getIfDao() {<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; return ifDao;<br>
&gt; &nbsp; &nbsp; }<br>
&gt; $B$G$"$j!"(B<br>
&gt; ifDao$B$O(B<br>
&gt; &nbsp; &nbsp; private &nbsp; &nbsp;SystemctlDao &nbsp; &nbsp;ifDao;<br>
&gt; $B$G$9!#(B<br>
<br>
</div>setter $B%a%=%C%I$O$"$j$^$9$+!)(B<br>
$B$^$?!$(BShoppingSendMail $B$r;H$C$F$$$k%/%i%9$N(B<br>
$B%3!<%I$r8+$;$F$/$@$5$$!%(B<br>
<br>
<br>
--<br>
<div class="Ih2E3d">&lt;component name=&quot;koichik&quot;&gt;<br>
 &nbsp; &nbsp;&lt;property name=&quot;fullName&quot;&gt;&quot;Koichi Kobayashi&quot;&lt;/property&gt;<br>
</div> &nbsp; &nbsp;&lt;property name=&quot;email&quot;&gt;&quot;<a href="mailto:koichik@gmail.com">koichik@gmail.com</a>&quot;&lt;/property&gt;<br>
<div><div></div><div class="Wj3C7c"> &nbsp; &nbsp;&lt;property name=&quot;blog&quot;&gt;&quot;<a href="http://d.hatena.ne.jp/koichik" target="_blank">http://d.hatena.ne.jp/koichik</a>&quot;&lt;/property&gt;<br>
&lt;/component&gt;<br>
<br>
_______________________________________________<br>
Seasar-user mailing list<br>
<a href="mailto:Seasar-user@ml.seasar.org">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>
</div></div></blockquote></div><br>