RE: iBatis Dao Setup

2005-04-25 Thread Folashade Adeyosoye
An addition to that, this was an application that was working, in terms of DB connections, persistence, etc, now my goal is to migrate it to a DAO/SQLMap solution. So I am looking of having 2 implementations, 1 JDBC (what I had before) and the other iBatis SQLMap -Original Message- From:

RE: iBatis Dao Setup

2005-04-25 Thread Folashade Adeyosoye
I have a class that manages my connections, creates connections, gets rid of null connections etc. Basically it manages an array of connections ready for use. To avoid to delay in the time to create a connection. -Original Message- From: Brandon Goodin [mailto:[EMAIL PROTECTED] Sent: Mond

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  

Re: iBatis Dao Setup

2005-04-25 Thread Richard Yee
It looks like a classpath problem. It is not even getting to any iBATIS code. Also did you notice that you have a space in your resource string?   String resource = " net/package1/package2/persistence/dao.xml"; That will probably cause either the reader to throw an exception or be null. -Rich

Re: iBatis Dao Setup

2005-04-25 Thread Brandon Goodin
" 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: > > > > Hi all let me see if I can explain my problem and how I have things setup… > > > > First, my problem is having

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: NullPointerException coming from StandardDaoManager

2005-04-25 Thread Sheehan, Andrew
I found it. I had a copy of the dao.xml, taken from the jpetstore4.0.5 example. In that file, the type is set to type="SQLMAP">, and the allowed types are "JDBC", "JTA", and "EXTERNAL". That's why it was return null on me, I believe. Thank for the help. -Andrew -Original Message- Fro

Re: NullPointerException coming from StandardDaoManager

2005-04-25 Thread Brandon Goodin
please post your dao.xml and the code that calls the daoManager. Brandon On 4/25/05, Sheehan, Andrew <[EMAIL PROTECTED]> wrote: > Yes, I do. I am using the iBATIS Developer Guide as a reference on this. > Would specifying this in my config file dictate something my code should > reference? > >

RE: NullPointerException coming from StandardDaoManager

2005-04-25 Thread Sheehan, Andrew
Yes, I do. I am using the iBATIS Developer Guide as a reference on this. Would specifying this in my config file dictate something my code should reference? Andrew ... -Original Message- From: Sheehan, Andrew Sent: Monday, April 25, 2005 11:38 AM To: 'Brandon Goodin' Subject: RE:

Re: NullPointerException coming from StandardDaoManager

2005-04-25 Thread Brandon Goodin
do you have a transactionManager configured for your context? Brandon On 4/25/05, Sheehan, Andrew <[EMAIL PROTECTED]> wrote: > > > > Has anyone seen this issue? > > > > I am receiving a NullPointerException within the > [com.ibatis.dao.engine.impl.]StandardDaoManager class when It trie

NullPointerException coming from StandardDaoManager

2005-04-25 Thread Sheehan, Andrew
Has anyone seen this issue?   I am receiving a NullPointerException within the [com.ibatis.dao.engine.impl.]StandardDaoManager class when It tries to invoke getTransaction() on my DAO.  The exception is occuring below: (source is from StandardDaoManager.java)     public DaoTransactio

Re: Populating 2 lists within a class

2005-04-25 Thread Larry Meadors
I have yet to run into a database that will not work with iBATIS. I have heard good things about postgress, or if you want embedded java: hsqldb. Larry On 4/24/05, Eric T. Blue <[EMAIL PROTECTED]> wrote: Clinton,Thanks for the quick reply.  This is definitely good information.  I wasonly using Acc

Re: Populating 2 lists within a class

2005-04-25 Thread Eric T. Blue
Clinton, Thanks for the quick reply. This is definitely good information. I was only using Access for evaluation since it allowed my to import an existing ODBC datasource for testing. Other than MySql, can you recommend another small-midsize db that works with iBatis? Something along the li