ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Maves" <nathan.ma...@gmail.com>
Subject Re: Using ibatis in a standalone jar with Spring, and also using spring in web tier
Date Fri, 09 Jan 2009 05:56:07 GMT
If all you need is DI check out guice.

On Thu, Jan 8, 2009 at 10:49 PM, Rick <rickcr@gmail.com> 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 of stuff mentioned in that article. What a
> royal pain.
>
> On Fri, Jan 9, 2009 at 12:31 AM, Rick <rickcr@gmail.com> wrote:
> > I meant spring-context not application-context, you know the spring
> > config file:)
> >
> > On Fri, Jan 9, 2009 at 12:29 AM, Rick <rickcr@gmail.com> 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 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 my tests run fine. The architecture is
> >> such that I have a service class that can call one or several daos in
> >> each method. All of these beans are defined in my
> >> application-context.xml.
> >>
> >> In my webapp I'm also using Spring but I having difficulty
> >> understanding how I set up things so that I can I have an isolated
> >> application-context.xml file that loads for my persistence(ibatis) jar
> >> and and another application-context.xml file for my webapp. Right now
> >> I seem to have to delcare all the beans that my persistence jar is
> >> using (services and daos) in my webapp application-xml. Isn't there a
> >> way that I could get the beans defined in my persistence jar
> >> initialized and then somehow used within my webapp classes? I'm
> >> confused how to set this stuff up. Debating about just ditching using
> >> Spring for my persistence jar.
> >>
> >> --
> >> Rick
> >>
> >
> >
> >
> > --
> > Rick
> >
>
>
>
> --
> Rick
>

Mime
View raw message