RE: Sample Code using javax.sql.DataSource

2005-05-25 Thread Folashade Adeyosoye
(something you shouldn't be doing inside of a DAO anyway). Clinton On 5/24/05, Folashade Adeyosoye <[EMAIL PROTECTED]> wrote: Can some please post a sample code using the javax.sql.DataSource; to get connection and to also close the connection in the try final….   Somet

Sample Code using javax.sql.DataSource

2005-05-24 Thread Folashade Adeyosoye
Can some please post a sample code using the javax.sql.DataSource; to get connection and to also close the connection in the try final….   Something like this…   Thanks     import javax.sql.DataSource;   DataSource dataSource ;       try {   connection = dataSource.getConn

RE: iBatis DAO - How to turn off data connection pool

2005-05-17 Thread Folashade Adeyosoye
trying to achieve by doing that?  You can't really "turn off" pooling with SimpleDataSource, but you could try one of the other implementations or write your own to achieve that.  Cheers, Clinton On 5/16/05, Folashade Adeyosoye <[EMAIL PROTECTED]> wrote: How can I

iBatis DAO - How to turn off data connection pool

2005-05-16 Thread Folashade Adeyosoye
How can I turn off the Database connection pool in the dao.xml                                    I tried changing the    and   , but I got an exception     exception is thrown - java.lang.IndexOutOfBoundsException: Inde

RE: Help in using iBatis

2005-05-10 Thread Folashade Adeyosoye
Title: Help in using iBatis Try the JPetStore application   From: Sangeetha K (RBIN/ECB-T1) [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 10, 2005 8:01 AM To: ibatis-user-java@incubator.apache.org Subject: Help in using iBatis   Hello, I'm new to iBatis. I want to know h

DAO Exception

2005-05-09 Thread Folashade Adeyosoye
    My code still produces these errors from this line in my daoConfig.java, mind you am just trying to get the DAO aspect to work, no sqlMap   I have also test this with a standalone app (No Struts) and it worked fine… I am also using the jars that came with the JPetStore Application

iBatis DAO

2005-05-04 Thread Folashade Adeyosoye
Is this a normal logger/system out output for iBatis DAO DEBUG[2005-May-04 22:47:24] - jdbc.SimpleDataSource(SimpleDataSource.java:506) - SimpleDataSource forcefully closed/removed all connections. May 4, 2005 10:47:35 PM org.apache.catalina.core.StandardHost getDeployer INFO: Create Host deplo

RE: iBatis DAO Loading dao.xml

2005-05-02 Thread Folashade Adeyosoye
. Brandon On 5/2/05, Folashade Adeyosoye <[EMAIL PROTECTED]> wrote: > I found it strange enough that it did make a diff if I pass in a > ServletConfig config or not... > > public void init(ServletConfig config) throws ServletException { > logger.info("

RE: iBatis DAO Loading dao.xml

2005-05-02 Thread Folashade Adeyosoye
a/jpetstore/jpetst ore4/src/com/ibatis/jpetstore/persistence/DaoConfig.java to see how everything fits together? Is something not working? Are calls to buildDaoManager throwing an exception? --- Folashade Adeyosoye <[EMAIL PROTECTED]> wrote: > The best way to find this out is to us

RE: iBatis DAO Loading dao.xml

2005-05-02 Thread Folashade Adeyosoye
The best way to find this out is to use your IDE to step thru the code and but break points. I have resulted to that in the last couple of days to actually see how the framework works but sadly have not been able to get pass the daoManager = DaoManagerBuilder.buildDaoManager(reader); in my big

Re: iBatis Dao Setup

2005-04-26 Thread Folashade Adeyosoye
manager as a datasource and write a DataSourceFactory > implementation for it. Then you can conifgure it as a JDBC > transactionManager with your custom DataSource. > > Brandon > > On 4/26/05, Folashade Adeyosoye <[EMAIL PROTECTED]> wrote: > > I

RE: iBatis Dao Setup

2005-04-25 Thread Folashade Adeyosoye
: Brandon Goodin [mailto:[EMAIL PROTECTED] Sent: Monday, April 25, 2005 11:08 PM To: ibatis-user-java@incubator.apache.org Subject: Re: iBatis Dao Setup " I have my own connectionManager class" I'm not sure what you mean by this. Please expound on this. Brandon On 4/25/05, Fola

RE: iBatis Dao Setup

2005-04-25 Thread Folashade Adeyosoye
: Monday, April 25, 2005 11:08 PM To: ibatis-user-java@incubator.apache.org Subject: Re: iBatis Dao Setup " I have my own connectionManager class" I'm not sure what you mean by this. Please expound on this. Brandon On 4/25/05, Folashade Adeyosoye <[EMAIL PROTECTED]> wrote: >

RE: iBatis Dao Setup

2005-04-25 Thread Folashade Adeyosoye
That was actually due to me refactoring the package names…   But I don’t have any space in the real code   thanks   From: Richard Yee [mailto:[EMAIL PROTECTED] Sent: Monday, April 25, 2005 11:17 PM To: ibatis-user-java@incubator.apache.org Subject: Re: iBatis Dao Setup  

iBatis Dao Setup

2005-04-25 Thread Folashade Adeyosoye
Hi all let me see if I can explain my problem and how I have things setup…   First, my problem is having difficulty converting one of my working and deployed applications to using iBatis Dao. I basically yanged out my Dao factory and try to replace it with iBatis version in hopes to use S

RE: Ibatis DAO

2005-04-22 Thread Folashade Adeyosoye
ic static DaoManager getDaoManager() { return daoManager; } } end class On 4/22/05, Folashade Adeyosoye <[EMAIL PROTECTED]> wrote: > > > > Thanks for responding, that is what actually baffles me. > > > > What I actually try to do is load JPetstore

RE: Ibatis DAO

2005-04-22 Thread Folashade Adeyosoye
issue with iBATIS. Throw us a bone here. Larry On 4/22/05, Folashade Adeyosoye <[EMAIL PROTECTED]> wrote: Any help would be appreciated….   I am having a difficult time getting the iBatis DAO going…         static {       try {   String resource = "net/naijate

Ibatis DAO

2005-04-22 Thread Folashade Adeyosoye
Any help would be appreciated….   I am having a difficult time getting the iBatis DAO going…         static {       try {   String resource = "net/naijatek/fgconline/persistence/dao.xml";   Reader reader = Resources.getResourceAsReader(resource);   DAO_MANAGER = DaoMa

RE: Newbie help

2005-04-15 Thread Folashade Adeyosoye
Is it in your classpath? -Original Message- From: KK [mailto:[EMAIL PROTECTED] Sent: Thursday, April 14, 2005 12:19 PM To: ibatis-user-java@incubator.apache.org Subject: Newbie help Hello everyone, I want to use iBatis in my application and started researching and trying to develop a sm

Ibatis / JBuilder 2005 / JPetStore

2005-04-10 Thread Folashade Adeyosoye
Has anyone try to load the JPetStore (iBatis DAO / iBatis SQL Mapper) in JBuilder 2005. Can not get it to build the java files in the sqlmapdao folder. Struts JBuilder JDK 1.5 Tomcat 5 iBatis DAO iBatis SQLMapper Thanks

JBuilder / iBatis DAO / iBatis SQLMapper / JPetStore 4.0.5

2005-04-09 Thread Folashade Adeyosoye
Has anyone gotten this to work in JBuilder?