<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-2022-JP"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
$B$R$,$G$9!#(B<br>
<br>
$B$^$:!"(BWeb$B%"%W%j$J$N$G!"(B<font face="MS Gothic,monospace,sans-serif">
S2ContainerFactory.create()$B$r8F$VI,MW$O$J$$$G$9!#(B<br>
</font><font face="MS Gothic,monospace,sans-serif">transaction_dao.dicon
$B$G%H%i%s%6%/%7%g%sMQ$N(Binterceptor$B$r;XDj$7$F$J$$$N$G!"(B<br>
$B%H%i%s%6%/%7%g%s$,$+$+$i$J$$$N$O$7$g$&$,$J$$$+$J$H;W$$$^$9!#(B<br>
<br>
</font><span class="Apple-style-span" style="border-collapse:
separate; color: rgb(0, 0, 0); font-family: 'MS PGothic';
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal; orphans: 2;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span" style="font-family:
arial,helvetica,osaka,'MS PGothic',sans-serif; font-size: 11px;">
<h1 class="parseasinTitle" style="color: rgb(0, 0, 0);
font-family: Arial,Helvetica,sans-serif; font-size: 1.7em;
font-weight: normal; margin-bottom: 0px; margin-top: 0px;"><span
id="btAsinTitle">Seasar 2 $BE0DlF~Lg(B SAStruts/S2JDBC</span></h1>
</span></span><a
href="http://www.amazon.co.jp/Seasar-%E5%BE%B9%E5%BA%95%E5%85%A5%E9%96%80-SAStruts-S2JDBC-%E5%AF%BE%E5%BF%9C/dp/4798121509">http://www.amazon.co.jp/Seasar-%E5%BE%B9%E5%BA%95%E5%85%A5%E9%96%80-SAStruts-S2JDBC-%E5%AF%BE%E5%BF%9C/dp/4798121509</a><br>
<br>
$B$O4pAC$+$iCzG+$K@bL@$5$l$F$$$k$N$G$*$9$9$a$G$9!#(B<br>
<br>
<br>
(2011/07/22 11:15), <a class="moz-txt-link-abbreviated" href="mailto:test_tempadr@yahoo.co.jp">test_tempadr@yahoo.co.jp</a> wrote:
<blockquote
cite="mid:176395.99935.qm@web100318.mail.kks.yahoo.co.jp"
type="cite">
<div id="yiv217635251">
<div><font face="MS Gothic,monospace,sans-serif">$B<RG<$H?=$7$^$9!#(B</font></div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif">$B%H%i%s%6%/%7%g%s$K4X$7$F;G$$$?(B
$B$$;v$,$"$j!"%a!<%k$5$;$FD:$-$^$7$?!#(B</font></div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif">$B:#!"(BS2Container
2.4.42 $B!"(B s2-dao-1.0.51 $B!"(B PostgreSQL 8.3.9 $B!"(B Tomcat6.0.26<br>
$B$NAH$_9g$o$;$G!"(BWeb$B%"%W%j%1!<%7%g%s$r:n@.$7$F$*$j$^$9!#(B</font></div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif">j2ee.requiredTx
$B$rE,MQ$5$;!"J#?t$N(BSQL$B$r0l$D$N%H%i%s%6%/%7%g%s$K$^$H$a$?$$$N$G$9$,!"(B<br>
$BESCf$G%(%i!<$rH/@8$5$;$F$_$k$H!"%(%i!<A0$N(BSQL$B<B9T7k2L$O%m!<%k%P%C%/$G$-$F$*$i$:!"(B<br>
$B3F(BSQL$BJ8C10L$G%3%_%C%H$5$l$F$7$^$$:$$C$F$*$j$^$9!#(B</font></div>
<div> </div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif">$B$b$C$H$b!"%m%0$r8+$k8B$j$G$O(B</font></div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif">
$B!V%H%i%s%6%/%7%g%s$r3+;O$7$^$7$?!W(B</font></div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif">$B$N8e$KJ#?t$N(BSQL$B$,<B9T$5$l$F(B
$B$$$k;v$,3NG'$G$-!"$5$i$K!"%(%i!<$rH/@8$5$;$?2U=j$G(B</font></div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif">
$B!V%H%i%s%6%/%7%g%s$r%m!<%k%P%C%/$7$^$7$?!W(B</font></div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif">$B$HI=<($5$l$F$*$j!"2?$bLdBjL5$$(B
$B$h$&$K8+$($^$9!#(B</font></div>
<div><br>
<font face="MS Gothic,monospace,sans-serif">$B$3$l$O!"$=$b$=$b(B
JTA$B$K$h$k%H%i%s%6%/%7%g%s$,3+;O$G$-$F$$$J$$$N$+$H9M$(!"(B<br>
jdbc.dicon $B$N(B "allowLocalTx" $B$r(B true $B$+$i(B false $B$KJQ$($F$_$k$H!"(B<br>
$B2L$?$7$F!V(B[ESSR0311]$B%H%i%s%6%/%7%g%s$,3+;O$5$l$F$$$^$;$s!W$H$7$FNc30$,%9%m!<$5$l$?$N$G$9$,!"(B<br>
$B$=$NNc30$r(BgetClass()$B$GD4$Y$F$_$k$H(B<br>
</font><a moz-do-not-send="true"
href="http://s2container.seasar.org/2.4/ja/jdbc.html#S2DBCP"
rel="nofollow" target="_blank"><font face="MS
Gothic,monospace,sans-serif">http://s2container.seasar.org/2.4/ja/jdbc.html#S2DBCP</font></a><font
face="MS Gothic,monospace,sans-serif">$B$K5-:\$5$l$F$$$k(B</font></div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif">
java.lang.IllegalStateException</font></div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif">$B$G$O$J$/!"(B</font></div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif">
org.seasar.framework.exception.SIllegalStateException</font></div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif">$B$H$$$&A0<T$r7Q>5$7$?%/%i%9$G$"(B
$B$j!"(BWeb$B%5%$%H$N5-:\$H0[$J$k$H$$$&E@$G!"(B<br>
JTA$B1>!90JA0$K2?$+4V0c$C$?;v$r$7$F$$$k$N$G$O$J$$$+$HIT0B$K$J$j$^$7$?!#(B</font></div>
<div> </div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif">$B$3$l$O!"@_Dj$r4V0c$($F$$$k$N$G(B
$B$7$g$&$+!)(B<br>
$BKt!"(BJTA$B$K$h$k%H%i%s%6%/%7%g%s$,3+;O$G$-$F$$$J$$$N$O3N$+$G(B<br>
$B$=$N860x$,2<5-$N%3!<%I$+$iH=CG$G$-$k$h$&$G$7$?$i!"$4;XE&D:$1$J$$$G$7$g$&$+!)(B</font></div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif">$B0J>e!"59$7$/$*4j$$?=$7>e$2$^(B
$B$9!#(B</font></div>
<div> </div>
<div> </div>
<div> </div>
<div>*-*-*-*-*-*-*-*-*-*-*-*-*-*</div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif">//////////
$B!H=hM}$N:G=i$K8F$P$l$k%a%=%C%I!I(B //////////</font></div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif"> $B!'(B<br>
$B!'(B<br>
$B!'(B</font></div>
<div><font face="MS Gothic,monospace,sans-serif">S2Container
container =<br>
S2ContainerFactory.create("XXX/transaction_service.dicon");</font></div>
<font face="MS Gothic,monospace,sans-serif">
</font>
<div><font face="MS Gothic,monospace,sans-serif"><br>
TransactionTestService transactionTestService =<br>
(TransactionTestServiceImpl)
container.getComponent("TransactionTestService");</font></div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif">transactionTestService.method(xxxxxx);</font></div>
<div><font face="MS Gothic,monospace,sans-serif"> $B!'(B<br>
$B!'(B<br>
$B!'(B</font></div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif">//////////
transaction_service.dicon ////////// </font></div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif"><?xml
version="1.0" encoding="UTF-8"?><br>
<!DOCTYPE components PUBLIC "-//SEASAR//DTD S2Container
2.4//EN" "</font><a moz-do-not-send="true"
href="http://www.seasar.org/dtd/components24.dtd"
rel="nofollow" target="_blank"><font face="MS
Gothic,monospace,sans-serif">http://www.seasar.org/dtd/components24.dtd</font></a><font
face="MS Gothic,monospace,sans-serif">"><br>
<components></font></div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif"> <include
path="j2ee.dicon" /><br>
<br>
<component name="TransactionTestService"
class="XXX.XXX.impl.TransactionTestServiceImpl"><br>
<aspect>j2ee.requiredTx</aspect><br>
</component></font></div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif"></components></font></div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif">//////////
TransactionTestService.java ////////// </font></div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif">public
interface TransactionTestService {</font></div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif"> void
method(XXXXXX xxxxxx);</font><font face="MS
Gothic,monospace,sans-serif"><br>
}</font></div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif">//////////
TransactionTestServiceImpl.java ////////// </font></div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif"> $B!'(B<br>
$B!'(B<br>
$B!'(B<br>
/** $B%3%s%9%H%i%/%?(B. */<br>
public TransactionTestServiceImpl() { };</font></div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif">public void
method(XXXXXX xxxxxx) {</font></div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif"> S2Container
container =
S2ContainerFactory.create("XXX/transaction_dao.dicon");</font></div>
<div><font face="MS Gothic,monospace,sans-serif"><br>
</font><font face="MS Gothic,monospace,sans-serif">
TransactionTestDao transactionTestDao = (TransactionTestDao)
container.<br>
getComponent("TransactionTestDao");</font></div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif">
transactionTestDao.addSQL1(xxxxxx);<br>
transactionTestDao.addSQL2(xxxxxx);<br>
transactionTestDao.addSQL3(xxxxxx);<br>
<br>
// $B$3$3$G%(%i!<$r5/$3$7$F=hM}$rCfCG(B ($B%9%m!<$7$?Nc30$O!H=hM}$N:G=i$K8F$P$l$k%a%=%C%I!I$G%-%c%C%A!K(B<br>
$B!_!_!_!_!_!J%(%i!<$r5/$3$9%3!<%I!K(B<br>
<br>
transactionTestDao.addSQL4(xxxxxx);<br>
transactionTestDao.addSQL5(xxxxxx);<br>
</font><font face="MS Gothic,monospace,sans-serif">}<br>
$B!'(B<br>
$B!'(B<br>
$B!'(B<br>
</font></div>
<div> </div>
<div> </div>
<div><br>
<font face="MS Gothic,monospace,sans-serif">//////////
transaction_dao.dicon //////////</font></div>
<font face="MS Gothic,monospace,sans-serif">
</font>
<div><font face="MS Gothic,monospace,sans-serif"><br>
<?xml version="1.0" encoding="UTF-8"?><br>
<!DOCTYPE components PUBLIC "-//SEASAR//DTD S2Container
2.4//EN" "</font><a moz-do-not-send="true"
href="http://www.seasar.org/dtd/components24.dtd"
rel="nofollow" target="_blank"><font face="MS
Gothic,monospace,sans-serif">http://www.seasar.org/dtd/components24.dtd</font></a><font
face="MS Gothic,monospace,sans-serif">"><br>
<components></font></div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif"> <include
path="dao.dicon" /></font></div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif">
<component name="TransactionTestDao"
class="XXX.TransactionTestDao"><br>
<aspect>dao.interceptor</aspect><br>
</component></font></div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif"></components></font></div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif">//////////
TransactionTestDao.java //////////</font></div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif">public
interface LoginListDao {</font></div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif">
Class<XXXXXX> BEAN = XXXXXX.class;</font></div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif"> String
addSQL1_SQL_FILE = "XXX/XXX/XXXXX/addSqlOneQuery.sql";<br>
String addSQL2_SQL_FILE =
"XXX/XXX/XXXXX/addSqlTwoQuery.sql";<br>
String addSQL3_SQL_FILE =
"XXX/XXX/XXXXX/addSqlThreeQuery.sql";<br>
String addSQL4_SQL_FILE =
"XXX/XXX/XXXXX/addSqlFourQuery.sql";<br>
String addSQL5_SQL_FILE =
"XXX/XXX/XXXXX/addSqlFiveQuery.sql";</font></div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif"> String
addSQL1_ARGS = "xxxxxx";<br>
String addSQL2_ARGS = "xxxxxx";<br>
String addSQL3_ARGS = "xxxxxx";<br>
String addSQL4_ARGS = "xxxxxx";<br>
String addSQL5_ARGS = "xxxxxx";</font></div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif"> void
addSQL1(XXXXXX xxxxxx);<br>
void addSQL2(XXXXXX xxxxxx);<br>
void addSQL3(XXXXXX xxxxxx);<br>
void addSQL4(XXXXXX xxxxxx);<br>
void addSQL5(XXXXXX xxxxxx);<br>
}</font></div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif">//////////
app.dicon //////////</font></div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif"><?xml
version="1.0" encoding="UTF-8"?><br>
<!DOCTYPE components PUBLIC "-//SEASAR//DTD S2Container
2.4//EN" "</font><a moz-do-not-send="true"
href="http://www.seasar.org/dtd/components24.dtd"
rel="nofollow" target="_blank"><font face="MS
Gothic,monospace,sans-serif">http://www.seasar.org/dtd/components24.dtd</font></a><font
face="MS Gothic,monospace,sans-serif">"><br>
<components></font></div>
<div><br>
<font face="$B#M#S(B $B%4%7%C%/(B"> <include
path="convention.dicon"/><br>
<include path="aop.dicon"/><br>
<include path="j2ee.dicon"/></font></div>
<div><br>
<font face="$B#M#S(B $B%4%7%C%/(B"></components></font></div>
<div><font face="$B#M#S(B $B%4%7%C%/(B"> </font></div>
<div><font face="$B#M#S(B $B%4%7%C%/(B"> </font></div>
<div><font face="$B#M#S(B $B%4%7%C%/(B"> </font></div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif">//////////
convention.dicon //////////</font></div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif"><?xml
version="1.0" encoding="UTF-8"?><br>
<!DOCTYPE components PUBLIC "-//SEASAR//DTD S2Container
2.4//EN" "</font><a moz-do-not-send="true"
href="http://www.seasar.org/dtd/components24.dtd"
rel="nofollow" target="_blank"><font face="MS
Gothic,monospace,sans-serif">http://www.seasar.org/dtd/components24.dtd</font></a><font
face="MS Gothic,monospace,sans-serif">"><br>
<components></font></div>
<div><br>
<font face="$B#M#S(B $B%4%7%C%/(B"> <component
class="org.seasar.framework.convention.impl.NamingConventionImpl"><br>
<initMethod name="addRootPackageName"><br>
<arg>"org.seasar.framework.container.warmdeploy"</arg><br>
</initMethod><br>
</component></font></div>
<div><br>
<font face="$B#M#S(B $B%4%7%C%/(B"> <component
class="org.seasar.framework.convention.impl.PersistenceConventionImpl"/></font></div>
<div><br>
<font face="$B#M#S(B $B%4%7%C%/(B"></components></font></div>
<div><font face="$B#M#S(B $B%4%7%C%/(B"> </font></div>
<div><font face="$B#M#S(B $B%4%7%C%/(B"> </font></div>
<div><font face="$B#M#S(B $B%4%7%C%/(B"> </font></div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif">//////////
jdbc.dicon //////////</font></div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif"><?xml
version="1.0" encoding="UTF-8"?><br>
<!DOCTYPE components PUBLIC "-//SEASAR//DTD S2Container
2.4//EN" "</font><a moz-do-not-send="true"
href="http://www.seasar.org/dtd/components24.dtd"
rel="nofollow" target="_blank"><font face="MS
Gothic,monospace,sans-serif">http://www.seasar.org/dtd/components24.dtd</font></a><font
face="MS Gothic,monospace,sans-serif">"><br>
<components namespace="jdbc"></font></div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif"> <include
path="jta.dicon"/></font></div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif">
<component
class="org.seasar.extension.jdbc.impl.BasicResultSetFactory"/></font></div>
<div><br>
<font face="$B#M#S(B $B%4%7%C%/(B"> <component
class="org.seasar.extension.jdbc.impl.ConfigurableStatementFactory"><br>
<arg><component
class="org.seasar.extension.jdbc.impl.BasicStatementFactory"/></arg><br>
<property
name="fetchSize">100</property><br>
</component></font></div>
<div><font face="$B#M#S(B $B%4%7%C%/(B"> </font></div>
<div><font face="$B#M#S(B $B%4%7%C%/(B"> <component name="xaDataSource"
class="org.seasar.extension.dbcp.impl.XADataSourceImpl"><br>
<property
name="driverClassName">"org.postgresql.Driver"</property><br>
<property
name="URL">"jdbc:postgresql://XXXXXXXXXXXX"</property><br>
<property
name="user">"XXXXXXXX"</property><br>
<property
name="password">"XXXXXXXX"</property><br>
</component></font></div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif">
<component name="connectionPool"
class="org.seasar.extension.dbcp.impl.ConnectionPoolImpl"><br>
<property name="timeout">600</property><br>
<property
name="maxPoolSize">10</property><br>
<property
name="allowLocalTx">true</property> <!-- $B"+!z(B
false$B$K$9$k$HNc30$r%9%m!<(B $B!z(B --></font></div>
<div><font face="MS Gothic,monospace,sans-serif">
<destroyMethod name="close"/><br>
</component></font></div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif">
<component name="dataSource"
class="org.seasar.extension.dbcp.impl.DataSourceImpl"/></font></div>
<div> </div>
<div><font face="MS Gothic,monospace,sans-serif"></components></font></div>
<div> </div>
</div>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Seasar-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a>
<a class="moz-txt-link-freetext" href="https://ml.seasar.org/mailman/listinfo/seasar-user">https://ml.seasar.org/mailman/listinfo/seasar-user</a>
</pre>
</blockquote>
<br>
</body>
</html>