Spring took the name "bean" from JavaBeans which as been part of standard
Java for most of its existence.

On 16 March 2017 at 11:29, [email protected] <[email protected]> wrote:

> I'm not sure that we're quite communicating-- that beans.xml file is _not_
> Spring. It has nothing to do with Spring. It's a CDI-specific artifact that
> just happens to have the same name as a Spring artifact. If I understand
> your situation correctly (and people with more experience at CDI than me
> are invited to correct me) you aren't using Spring at all and it's just not
> an issue.
>
> You can use a Spring XML context named foo.xml or whigglesnort.xml or
> whatever. What matters is the contents. But the beans.xml for CDI _must_ be
> named that (and must be in the right place) and the contents only come into
> play if you are using alternative impl beans or other CDI features. I.e. a
> requisite for an artifact to be recognized as CDI is that name "beans.xml".
> That's not optional. The existence of a file with that name in the right
> place is what cues the CDI framework to work on the contents of that
> artifact.
>
> So, no Spring to worry about.
>
> ---
> A. Soroka
> The University of Virginia Library
>
>
>
> > On Mar 16, 2017, at 12:23 PM, Bob Blackard <[email protected]>
> wrote:
> >
> > Thanks for the link.  I knew that CDI was defined by Java EE, but hadn't
> realized that it was bound up with Spring.
> >
> > So, yea, from the link you provided, it seems Spring is it.  But that
> doesn't answer my other concerns about Spring.
> >
> > Can anyone provide more insight on Spring in OSGi?  A couple of years
> ago I had a lot of struggles with Spring in OSGi and started pushing hard
> to get clients to adopt Blueprint.  I'm therefore somewhat uncomfortable
> with pushing clients to adopt CDI.
> >
> > Thanks
> > Bob
> >
> > On Thursday, March 16, 2017 at 11:13:00 AM UTC-5, A. Soroka wrote:
> > I'm not in any way an expert on CDI, but are you sure that the beans.xml
> file to which you had recourse isn't just the (normally needed) CDI
> beans.xml file?
> >
> > https://docs.oracle.com/javaee/6/tutorial/doc/gjbnz.html
> >
> > ---
> > A. Soroka
> > The University of Virginia Library
> >
> > --
> > --
> > ------------------
> > OPS4J - http://www.ops4j.org - [email protected]
> >
> > ---
> > You received this message because you are subscribed to the Google
> Groups "OPS4J" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected].
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> --
> ------------------
> OPS4J - http://www.ops4j.org - [email protected]
>
> ---
> You received this message because you are subscribed to the Google Groups
> "OPS4J" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Matt Sicker <[email protected]>

-- 
-- 
------------------
OPS4J - http://www.ops4j.org - [email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to