Re: Problem having persistence code with ibatis as a complete stand-alone jar with Spring and still use spring in web tier

2009-01-08 Thread Rick
On Fri, Jan 9, 2009 at 2:10 AM, Rick wrote: > I'll have to mess with it some more, maybe the problem is the config > file in my jar has the same name as the one in my webapp classpath. > That was my problem. Thanks Nathan. You got me on the right track. (Hopefully when this becomes an ear it won

Re: Problem having persistence code with ibatis as a complete stand-alone jar with Spring and still use spring in web tier

2009-01-08 Thread Rick
I'll have to mess with it some more, maybe the problem is the config file in my jar has the same name as the one in my webapp classpath. On Fri, Jan 9, 2009 at 12:31 AM, Nathan Maves wrote: > I have done something like this before. > I ended up having a spring config bundled in the jar file. > In

Re: Using ibatis in a standalone jar with Spring, and also using spring in web tier

2009-01-08 Thread Rick
I've looked at guice. I was liking using the SqlMapClientTemplate from spring. I really don't even need Spring for the ibatis stuff, i was just using it since I like how easy it was to load different slqMap configs into different DAOs (since I'm going against different databases within the app.) I

Re: Using ibatis in a standalone jar with Spring, and also using spring in web tier

2009-01-08 Thread Nathan Maves
If all you need is DI check out guice. On Thu, Jan 8, 2009 at 10:49 PM, Rick wrote: > Sheesh look at this article... > http://springtips.blogspot.com/2007/09/using-shared-context-from-ejbs.html > it gives me a headache. How the heck can anyone justify using Spring > if you need to do the kind o

Re: Using ibatis in a standalone jar with Spring, and also using spring in web tier

2009-01-08 Thread Rick
Sheesh look at this article... http://springtips.blogspot.com/2007/09/using-shared-context-from-ejbs.html it gives me a headache. How the heck can anyone justify using Spring if you need to do the kind of stuff mentioned in that article. What a royal pain. On Fri, Jan 9, 2009 at 12:31 AM, Rick w

Re: Problem having persistence code with ibatis as a complete stand-alone jar with Spring and still use spring in web tier

2009-01-08 Thread Nathan Maves
I have done something like this before. I ended up having a spring config bundled in the jar file. In your webapp/ear that you are including the jar in I configured spring to use multiple config files. have you tried that? On Thu, Jan 8, 2009 at 10:26 PM, Rick wrote: > This is really more of

Re: Using ibatis in a standalone jar with Spring, and also using spring in web tier

2009-01-08 Thread Rick
I meant spring-context not application-context, you know the spring config file:) On Fri, Jan 9, 2009 at 12:29 AM, Rick wrote: > This is really more of a Spring question I guess, but I'll ask here first. > > I want to have all my persistence classes (services and daos) that use > ibatis to be bun

Using ibatis in a standalone jar with Spring, and also using spring in web tier

2009-01-08 Thread Rick
This is really more of a Spring question I guess, but I'll ask here first. I want to have all my persistence classes (services and daos) that use ibatis to be bundled in a standalone jar that my war (or possibly multiple wars in an ear) can use. I'm using Spring for mSqlMapClientDaoSupport and all

Problem having persistence code with ibatis as a complete stand-alone jar with Spring and still use spring in web tier

2009-01-08 Thread Rick
This is really more of a Spring question I guess, but I'll ask here first. I want to have all my persistence classes (services and daos) that use ibatis to be bundled in a standalone jar that my war (or possibly multiple wars in an ear) can use. I'm using Spring for mSqlMapClientDaoSupport and all