Yes, I saw that in the docs, but I just can't access to my pool via JNDI ! The only way to connect to my pool is an URL... I don't want to set a datasource in ibatis..
Clinton Begin wrote: > > This is the part that needs to change: <dataSource type="SIMPLE"> > > You're going to want to use a <dataSource type="JNDI"> datasource. > > That is documented in the docs. > > clinton > > On Fri, Nov 27, 2009 at 3:01 AM, Jeremy Jardin > <jeremy.jar...@gmail.com>wrote: > >> >> Hi, >> >> I'm sorry I was talking about the JDBC.connectionURL, but maybe it's not >> a >> generic term ! >> >> So, this is the part of the xml file I'd like to modify : >> <transactionManager type="JDBC"> >> <dataSource type="SIMPLE"> >> <property name="JDBC.Driver" value="${driver}" /> >> <property name="JDBC.ConnectionURL" value="${url}" >> /> >> <property name="JDBC.Username" value="${username}" >> /> >> <property name="JDBC.Password" value="${password}" >> /> >> <property name="JDBC.DefaultAutoCommit" >> value="true" >> /> >> </dataSource> >> </transactionManager> >> >> I did not find explicits docs about that datasource. >> I know that I could access another pool via JNDI, but my pool is an >> apache >> common pool, >> accessed by an URL. >> >> >> Thx, >> >> Jeremy >> >> >> Clinton Begin wrote: >> > >> > You're going to have to post your config file, as none of this makes >> much >> > sense as described. >> > >> > 1) The connection url has nothing to do with the pool configuration. >> > >> > 2) Yes, we'll need your XML configuration file (or at least that >> section) >> > >> > 3) The docs describe the SimpleDataSource, DBCP and JNDI. The simplest >> > way >> > to use a custom pool is to access it via JNDI. But you can also >> implement >> > your own provider. >> > >> > Clinton >> > >> > On Thu, Nov 26, 2009 at 9:46 AM, Jeremy Jardin >> > <jeremy.jar...@gmail.com>wrote: >> > >> >> >> >> >> >> 1) the connectionUrl, is the jdbc url, to connect to my own pool. >> >> 2) I think there's no code to show you, I wonder if in the >> SqlMapconfig >> >> file, I can set my own pool in order of using the ibatis Datasource. >> >> 3) yes, I did, of course, and ibatis Datasource is always used .. >> >> >> >> Thks ! >> >> >> >> >> >> nmaves wrote: >> >> > >> >> > 1) what is a connectionUrl >> >> > 2) show us some code >> >> > 3) did you read the docs? >> >> > >> >> > On Thu, Nov 26, 2009 at 2:24 AM, Jeremy Jardin >> >> > <jeremy.jar...@gmail.com>wrote: >> >> > >> >> >> >> >> >> Hi, >> >> >> >> >> >> I'd like toconfigure ibatis with my own connection pool, so I set >> my >> >> pool >> >> >> as >> >> >> the connnectionUrl in the sqlMapConfig.xml file. >> >> >> But, unfortunately, it seems that ibatis still use his own pool ? >> >> >> Can I disable the ibatis pool ? >> >> >> >> >> >> >> >> >> Thx, >> >> >> >> >> >> Jeremy >> >> >> -- >> >> >> View this message in context: >> >> >> >> >> >> http://old.nabble.com/Ibatis-using-my-own-pool-tp26525312p26525312.html >> >> >> Sent from the iBATIS - User - Java mailing list archive at >> Nabble.com. >> >> >> >> >> >> >> >> >> >> --------------------------------------------------------------------- >> >> >> To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org >> >> >> For additional commands, e-mail: user-java-h...@ibatis.apache.org >> >> >> >> >> >> >> >> > >> >> > >> >> >> >> -- >> >> View this message in context: >> >> >> http://old.nabble.com/Ibatis-using-my-own-pool-tp26525312p26532079.html >> >> Sent from the iBATIS - User - Java mailing list archive at Nabble.com. >> >> >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org >> >> For additional commands, e-mail: user-java-h...@ibatis.apache.org >> >> >> >> >> > >> > >> >> -- >> View this message in context: >> http://old.nabble.com/Ibatis-using-my-own-pool-tp26525312p26540170.html >> Sent from the iBATIS - User - Java mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org >> For additional commands, e-mail: user-java-h...@ibatis.apache.org >> >> > > -- View this message in context: http://old.nabble.com/Ibatis-using-my-own-pool-tp26525312p26544040.html Sent from the iBATIS - User - Java mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org For additional commands, e-mail: user-java-h...@ibatis.apache.org