Hi Alasdair,
I got it to working thx! A little timing issue!

Matt

On Wed, May 25, 2011 at 3:13 PM, Alasdair Nottingham <[email protected]> wrote:

> Has the host bundle been activated? I assume it is an eager bean?
>
> On 25 May 2011 15:37, Matt Madhavan <[email protected]> wrote:
> > Hi Alasdair,
> > Thanks for the reply! I created a new fragment bundle for my datasouce. I
> > have a bean inside the fragment which populates the database when its
> init
> > method gets called.
> > The problem is the the bean inside the fragment never gets created! Any
> > ideas? Please note that this is a simple bean and I'm not creating any
> > service out of this.
> > Thanks
> > Matt
> >
> > On Mon, May 23, 2011 at 5:14 PM, Alasdair Nottingham <[email protected]>
> wrote:
> >>
> >> As David says you can use different bundles and the service registry
> >> to get the behaviour of bean definition profiles if you want.
> >>
> >> An additional approach that works in blueprint and is a result of
> >> being integrated into OSGi is to have a core bundle which defines the
> >> core behaviour and have a fragment bundle for each profile. The
> >> profile fragments each have a blueprint that defines the specifics for
> >> that environment. So going by the example on the blog you would have a
> >> core blueprint, one that uses a DataSource from JNDI and one that
> >> creates an embedded one. You can add these into 1 bundle and 2
> >> fragments and deploy whichever mix you need.
> >>
> >> Alasdair
> >>
> >> On 23 May 2011 19:28, Matt Madhavan <[email protected]> wrote:
> >> > David,
> >> > I used all the three main lists because I wanted to reach out to a
> >> > bigger
> >> > audience.
> >> > I'm kind of leaning towards what you have suggested below. But I was
> >> > wondering how others are tackling this issue. I'm sure I'm not the
> only
> >> > one
> >> > with this issue!
> >> > Thanks
> >> > Matt
> >> >
> >> > On Mon, May 23, 2011 at 12:54 PM, David Jencks <
> [email protected]>
> >> > wrote:
> >> >>
> >> >> Kind of a wide range of mailing lists for your question....
> >> >>
> >> >> why wouldn't you have different bundles for different profiles,
> >> >> registering services with the same interfaces  and properties?  You
> >> >> don't
> >> >> even need to use blueprint for all your profile bundles.  It seems to
> >> >> me
> >> >> that bean definition profiles are kind of a workaround for the lack
> of
> >> >> flexibility in non-osgi environments.
> >> >>
> >> >> thanks
> >> >> david jencks
> >> >>
> >> >> On May 23, 2011, at 9:47 AM, Matt Madhavan wrote:
> >> >>
> >> >> > Hello All,
> >> >> > This is an interesting question for you all!
> >> >> >
> >> >> > For all these years Spring users have been building custom built
> >> >> > solution
> >> >> > for Bean Definition Profiles which is now part of the Spring 3.1
> >> >> > (currently
> >> >> > M1).
> >> >> >
> >> >> > The following blog talks about the Bean Definition Profile
> >> >> >
> >> >> >
> >> >> >
> http://blog.springsource.com/2011/02/11/spring-framework-3-1-m1-released/
> >> >> >
> >> >> > Is there an equivalent Framework/development work available/going
> on
> >> >> > for
> >> >> > OSGi/Blueprint. I'm just curious.
> >> >> >
> >> >> > Regardless, I feel this may lead to an interesting discussion. This
> >> >> > technology may prove crucial as OSGi is used in more Enterprise
> >> >> > development.
> >> >> >
> >> >> > Thanks
> >> >> > Matt
> >> >>
> >> >
> >> >
> >>
> >>
> >>
> >> --
> >> Alasdair Nottingham
> >> [email protected]
> >
> >
>
>
>
> --
> Alasdair Nottingham
> [email protected]
>

Reply via email to