[
https://issues.apache.org/jira/browse/OPENJPA-2465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13845534#comment-13845534
]
Christian Schneider commented on OPENJPA-2465:
----------------------------------------------
Karaf is not really different from other OSGi servers. The main difference is
that there are a lot of pre configured feature files for karaf. For example you
can already install cxf, camel, activemq and many other projects with just two
commands on the karaf shell.
A feature file is simply and xml file that defines one or more features. A
feature lists a number of bundles and optionally config using their maven
coordinates. So the user does not have to manually download the bundles and
provision them instead he just installs the feature file and then the features
needed.
Users can also define features for their own application that can refer to
other feature files and features. So whole applications can be installed this
way. This makes using OSGi a lot easier than with plain equinox or felix.
You can find some exmples for this on my website:
http://www.liquid-reality.de/display/liquid/Karaf+Tutorials
I am currently preparing a new tutorial with pax cdi and deltaspike jpa. To
make things easier for users I added the feature files.
My old readme for the jpa example contained the references to the single
bundles: (See
https://github.com/cschneider/Karaf-Tutorial/blob/master/db/examplejpa/ReadMe.txt)
With the new feature and a shortcut to the feature file openjpa can then be
installed in karaf using:
features:chooseurl openjpa 2.2.3
features:install openjpa
> Create karaf feature for openjpa
> --------------------------------
>
> Key: OPENJPA-2465
> URL: https://issues.apache.org/jira/browse/OPENJPA-2465
> Project: OpenJPA
> Issue Type: New Feature
> Components: osgi
> Affects Versions: 2.2.2
> Reporter: Christian Schneider
> Fix For: 2.2.3, 2.4.0
>
> Attachments: OPENJPA-2465.patch
>
>
> Installing openjpa in karaf would be a lot easier if we provided an openjpa
> feature. I already created such a feature in pax cdi as it was necessary to
> test deltaspike jpa. As pax cdi is not a good place for the openjpa feature I
> would like to move this to openjpa.
> I can provide a patch for trunk.
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)