You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@deltaspike.apache.org by Charlie Mordant <cm...@gmail.com> on 2014/03/21 15:10:58 UTC
OSGI support for deltaspike JPA and Data
Hi,
I did some little wrappers for Deltaspike Data and JPA (and partial-beans
so...), you can see of how it's done, and maybe include it in the 0.7
release ;).
I did this quick, so I'm not sure about all exported packages and imported
ones, you could simplify it easily.
Look at the wrapped modules here:
https://github.com/OsgiliathEnterprise/net.osgiliath.parent/tree/master/net.osgiliath.framework/net.osgiliath.helpers.parent/net.osgiliath.wrappers
Then you can look at each osgi.bnd files in them (where my additions are).
I also have a working integration test here:
https://github.com/OsgiliathEnterprise/net.osgiliath.parent/tree/master/net.osgiliath.framework/net.osgiliath.features.karaf-features/net.osgiliath.features.karaf-features.itests/net.osgiliath.features.karaf-features.itests.jpa.cdi
If you're interested, I can fork and pull request deltaspike with this
additions.
Best regards, thank you for making the world to progress :).
Charlie,
Re: OSGI support for deltaspike JPA and Data
Posted by Charlie Mordant <cm...@gmail.com>.
Hi Charles,
I posted it too early, support isn't working for now.
I did all the boilerplate part of the job (adding manifest entries,
declared/required Pax-CDI capabilities, but the result don't work (I think
that's a classloader resolution issue in ds-data).
My knowledge in CDI is pretty limited, so if you can take a look and
investigate on it I will be thankfull.
In order to see the failure, you just have to remove the @Ignore on the
itest and run clean install on the parent.
I'll try to investigate a little on it (when I'll have the time to do), but
I can't ensure that there will be results. In a first time I'll try to make
a simple test on ds-JPA (without ds-data) to see if it succeed, then look
at ds-data code (and partialbean too).
Regards, Charlie
2014-03-24 9:20 GMT+01:00 Charles Moulliard <ch...@gmail.com>:
> I will have a look end of this week and will share my remarks/comments.
>
>
> On Fri, Mar 21, 2014 at 3:10 PM, Charlie Mordant <cmordant1@gmail.com
> >wrote:
>
> > Hi,
> >
> > I did some little wrappers for Deltaspike Data and JPA (and partial-beans
> > so...), you can see of how it's done, and maybe include it in the 0.7
> > release ;).
> > I did this quick, so I'm not sure about all exported packages and
> imported
> > ones, you could simplify it easily.
> >
> > Look at the wrapped modules here:
> >
> >
> https://github.com/OsgiliathEnterprise/net.osgiliath.parent/tree/master/net.osgiliath.framework/net.osgiliath.helpers.parent/net.osgiliath.wrappers
> >
> > Then you can look at each osgi.bnd files in them (where my additions
> are).
> >
> > I also have a working integration test here:
> >
> >
> https://github.com/OsgiliathEnterprise/net.osgiliath.parent/tree/master/net.osgiliath.framework/net.osgiliath.features.karaf-features/net.osgiliath.features.karaf-features.itests/net.osgiliath.features.karaf-features.itests.jpa.cdi
> >
> > If you're interested, I can fork and pull request deltaspike with this
> > additions.
> >
> > Best regards, thank you for making the world to progress :).
> >
> > Charlie,
> >
>
>
>
> --
> Charles Moulliard
> Apache Committer / Architect @RedHat
> Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
>
Re: OSGI support for deltaspike JPA and Data
Posted by Charles Moulliard <ch...@gmail.com>.
I will have a look end of this week and will share my remarks/comments.
On Fri, Mar 21, 2014 at 3:10 PM, Charlie Mordant <cm...@gmail.com>wrote:
> Hi,
>
> I did some little wrappers for Deltaspike Data and JPA (and partial-beans
> so...), you can see of how it's done, and maybe include it in the 0.7
> release ;).
> I did this quick, so I'm not sure about all exported packages and imported
> ones, you could simplify it easily.
>
> Look at the wrapped modules here:
>
> https://github.com/OsgiliathEnterprise/net.osgiliath.parent/tree/master/net.osgiliath.framework/net.osgiliath.helpers.parent/net.osgiliath.wrappers
>
> Then you can look at each osgi.bnd files in them (where my additions are).
>
> I also have a working integration test here:
>
> https://github.com/OsgiliathEnterprise/net.osgiliath.parent/tree/master/net.osgiliath.framework/net.osgiliath.features.karaf-features/net.osgiliath.features.karaf-features.itests/net.osgiliath.features.karaf-features.itests.jpa.cdi
>
> If you're interested, I can fork and pull request deltaspike with this
> additions.
>
> Best regards, thank you for making the world to progress :).
>
> Charlie,
>
--
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog : http://cmoulliard.github.io