ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gwyn Evans <gwyn.ev...@gmail.com>
Subject Re: JNDI - Weblogic - SqlMApConfig
Date Wed, 13 Jun 2007 19:46:37 GMT
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title></title>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-15">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
body {
  margin: 5px 5px 5px 5px;
  background-color: #ffffff;
}
/* ========== Text Styles ========== */
hr { color: #000000}
body, table /* Normal text */
{
 font-size: 9pt;
 font-family: 'Verdana';
 font-style: normal;
 font-weight: normal;
 color: #000000;
 text-decoration: none;
}
span.rvts1 /* Heading */
{
 font-size: 10pt;
 font-family: 'Arial';
 font-weight: bold;
 color: #0000ff;
}
span.rvts2 /* Subheading */
{
 font-size: 10pt;
 font-family: 'Arial';
 font-weight: bold;
 color: #000080;
}
span.rvts3 /* Keywords */
{
 font-size: 10pt;
 font-family: 'Arial';
 font-style: italic;
 color: #800000;
}
a.rvts4, span.rvts4 /* Jump 1 */
{
 font-size: 10pt;
 font-family: 'Arial';
 color: #008000;
 text-decoration: underline;
}
a.rvts5, span.rvts5 /* Jump 2 */
{
 font-size: 10pt;
 font-family: 'Arial';
 color: #008000;
 text-decoration: underline;
}
a.rvts6, span.rvts6
{
 color: #0000ff;
 text-decoration: underline;
}
span.rvts7
{
 font-size: 11pt;
 font-family: 'tahoma';
 font-weight: bold;
 color: #ffffff;
 background-color: #0000ff;
}
span.rvts8
{
 font-family: 'arial';
 color: #000080;
}
span.rvts9
{
 font-family: 'tahoma';
 font-weight: bold;
}
span.rvts10
{
 font-family: 'tahoma';
}
span.rvts11
{
 font-size: 12pt;
 font-family: 'times new roman';
}
span.rvts12
{
 font-family: 'arial';
}
span.rvts13
{
 font-family: 'arial';
 font-weight: bold;
}
a.rvts14, span.rvts14
{
 font-family: 'arial';
 color: #0000ff;
 text-decoration: underline;
}
span.rvts15
{
 font-style: italic;
}
a.rvts16, span.rvts16
{
 color: #0000ff;
 text-decoration: underline;
}
/* ========== Para Styles ========== */
p,ul,ol /* Paragraph Style */
{
 text-align: left;
 text-indent: 0px;
 padding: 0px 0px 0px 0px;
 margin: 0px 0px 0px 0px;
}
.rvps1 /* Centered */
{
 text-align: center;
}
--></style>
</head>
<body>

<p>On Wednesday, June 13, 2007, 8:16:06 PM, Davy &lt;<a class=rvts6 href="mailto:davypulinckx@telenet.be">davypulinckx@telenet.be</a>&gt;
wrote:</p>
<p><br></p>
<p>Strictly, it doesn't&nbsp;<span class=rvts15>have</span>&nbsp;to
be "jdbc/..." but it's the convention - See&nbsp;<a class=rvts16 href="http://docs.sun.com/source/817-6088/jndi.html#wp1022743">http://docs.sun.com/source/817-6088/jdbc.html</a>&nbsp;for
instance.</p>
<p><br></p>
<p>/Gwyn</p>
<p><br></p>
<div><a name=""PersonName"/"></a>
<table border=0 cellpadding=1 cellspacing=2 style="background-color: #ffffff;">
<tr valign=top>
<td width=12 style="background-color: #0000ff;">
<p><span class=rvts7>&gt;</span></p>
</td>
<td width=634>
<p><span class=rvts8>Thanks Mike,</span></p>
<p><span class=rvts8>&nbsp;</span></p>
<p><span class=rvts8>I will try it tomorrow when I return to the office.</span></p>
<p><span class=rvts8>May I ask why there must be jdbc/ for the datasourcename?</span></p>
<p><span class=rvts8>I searched on the internet and also in the book &#8220;Ibatis
in action&#8221; butt I can not find any information why there must be jdbc/ for the datasourcename.</span></p>
<p><span class=rvts8>Thanks for your response.</span></p>
<p><span class=rvts8>&nbsp;</span></p>
<p><span class=rvts8>Greets</span></p>
<p><span class=rvts8>Davy</span></p>
<p><span class=rvts8>&nbsp;</span></p>
<p><span class=rvts8>&nbsp;</span></p>
<hr noshade size=2>
<p><span class=rvts9>From:</span><span class=rvts10>&nbsp;Mike
Fagan [mailto:mfagan@tde.com]&nbsp;</span></p>
<p><span class=rvts9>Sent:</span><span class=rvts10>&nbsp;woensdag
13 juni 2007 19:22</span></p>
<p><span class=rvts9>To:</span><span class=rvts10>&nbsp;user-java@ibatis.apache.org</span></p>
<p><span class=rvts9>Subject:</span><span class=rvts10>&nbsp;Re:
JNDI - Weblogic - SqlMApConfig</span></p>
<p><span class=rvts11>&nbsp;</span></p>
<p><span class=rvts12>Try,</span></p>
<p><br></p>
<p><span class=rvts12>&lt;dataSource type="JNDI"&gt;&nbsp;</span></p>
<p><span class=rvts12>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp;&lt;property name="DataSource" value="jdbc/DataSourceTest"/&gt;</span></p>
<p><span class=rvts12>&lt;/dataSource&gt;</span></p>
<p><span class=rvts12>or whatever the JNDI name is for DataSourceTest in the JDBC
Data Sources Admin Screen.</span></p>
<p><br></p>
<p><span class=rvts12>Regards,</span></p>
<p><span class=rvts12>MF</span></p>
<p><br></p>
<p><br></p>
<p><span class=rvts11>Davy Pulinckx wrote:&nbsp;</span></p>
<p><span class=rvts12>Hi,</span></p>
<p><span class=rvts12>&nbsp;</span></p>
<p><span class=rvts12>Cane anyone explain me how you configured&nbsp;</span><span
class=rvts13>weblogic</span><span class=rvts12>&nbsp;and&nbsp;</span><span
class=rvts13>sqlmapconfig</span><span class=rvts12>.&nbsp;</span></p>
<p><span class=rvts12>I use weblogic, I have a datasource and a connectionpool
both are well configured and works fine.</span></p>
<p><span class=rvts12>Now, when I begin to write my sqlmapconfig of ibatis I get
many problems with it.</span></p>
<p><span class=rvts12>First of all I have developed these 2 sqlmapconfig below
for testing, butt none of them works.</span></p>
<p><span class=rvts12>For example lets assume they call ( datasource = DataSourceTest
and connectionpool = ConnectionPoolTest)</span></p>
<p><span class=rvts12>How cane I get this to work, I have searched the online
documents of ibatis and internet and I found examples butt they don&#8217;t work.</span></p>
<p><span class=rvts12>If I use just a transactionManagerType = SIMPLE, all works
fine, butt when I use one of these 2 JNDI below it wont work.</span></p>
<p><span class=rvts12>Please someone help me.</span></p>
<p><span class=rvts12>&nbsp;</span></p>
<p><span class=rvts12>Greets</span></p>
<p><span class=rvts12>Davy</span></p>
<p><span class=rvts12>&nbsp;</span></p>
<p><span class=rvts12>&nbsp;</span></p>
<p><span class=rvts12>&lt;?xml version="1.0" encoding="UTF-8" ?&gt; &nbsp;</span></p>
<p><span class=rvts12>&nbsp;&lt;!DOCTYPE sqlMapConfig PUBLIC "-//iBATIS.com//DTD
SQL Map Config 2.0//EN" &nbsp;</span></p>
<p><span class=rvts12>&nbsp;</span><a class=rvts14 href="http://www.ibatis.com/dtd/sql-map-config-2.dtd">"http://www.ibatis.com/dtd/sql-map-config-2.dtd"</a><span
class=rvts12>&gt;&nbsp;</span></p>
<p><span class=rvts12>&nbsp;</span></p>
<p><span class=rvts12>&lt;sqlMapConfig&gt;&nbsp;</span></p>
<p><span class=rvts12>&nbsp; &nbsp; &lt;transactionManager type="JDBC"&gt;&nbsp;</span></p>
<p><span class=rvts12>&nbsp; &nbsp; &nbsp; &nbsp; &lt;dataSource
type="JNDI"&gt;&nbsp;</span></p>
<p><span class=rvts12>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp;&lt;property name="DataSource" value="DataSourceTest"/&gt;</span></p>
<p><span class=rvts12>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/dataSource&gt;</span></p>
<p><span class=rvts12>&nbsp; &nbsp; &lt;/transactionManager&gt;</span></p>
<p><span class=rvts12>&nbsp; &nbsp; &lt;sqlMap resource="SqlMap.xml"/&gt;&nbsp;</span></p>
<p><span class=rvts12>&nbsp;&lt;/sqlMapConfig&gt;</span></p>
<p><span class=rvts12>&nbsp;</span></p>
<p><span class=rvts12>&nbsp;</span></p>
<p><span class=rvts12>&lt;?xml version="1.0" encoding="UTF-8" ?&gt; &nbsp;</span></p>
<p><span class=rvts12>&nbsp;&lt;!DOCTYPE sqlMapConfig PUBLIC "-//iBATIS.com//DTD
SQL Map Config 2.0//EN" &nbsp;</span></p>
<p><span class=rvts12>&nbsp;</span><a class=rvts14 href="http://www.ibatis.com/dtd/sql-map-config-2.dtd">"http://www.ibatis.com/dtd/sql-map-config-2.dtd"</a><span
class=rvts12>&gt;&nbsp;</span></p>
<p><span class=rvts12>&nbsp;</span></p>
<p><span class=rvts12>&lt;sqlMapConfig&gt;&nbsp;</span></p>
<p><span class=rvts12>&nbsp; &nbsp; &lt;transactionManager type="JDBC"&gt;&nbsp;</span></p>
<p><span class=rvts12>&nbsp; &nbsp; &nbsp; &nbsp; &lt;dataSource
type="JNDI"&gt;&nbsp;</span></p>
<p><span class=rvts12>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp;&lt;property name="DataSource" value="java:comp/env/jdbc/DataSourceTest"/&gt;</span></p>
<p><span class=rvts12>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/dataSource&gt;</span></p>
<p><span class=rvts12>&nbsp; &nbsp; &lt;/transactionManager&gt;</span></p>
<p><span class=rvts12>&nbsp; &nbsp; &lt;sqlMap resource="SqlMap.xml"/&gt;&nbsp;</span></p>
<p><span class=rvts12>&nbsp;&lt;/sqlMapConfig&gt;</span></p>
<p><span class=rvts12>&nbsp;</span></p>
<p><span class=rvts11>&nbsp;</span></p>
</td>
</tr>
</table>
</div>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p>/Gwyn</p>

</body></html>


Mime
View raw message