How to add the bundle of features to karaf

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

How to add the bundle of features to karaf

stream
This post was updated on .
hi,everyone.
my english is poor, i hope i can express my meaning.
i've features:install spring 3.0.5 which in the karaf by default.
i found there are not spring orm in the list of actives

[ 118] [Active     ] [            ] [       ] [   60] Spring Core (3.0.5.RELEASE)
[ 119] [Active     ] [            ] [       ] [   60] Spring ASM (3.0.5.RELEASE)
[ 120] [Active     ] [            ] [       ] [   60] Spring Expression Language (3.0.5.R
[ 121] [Active     ] [            ] [       ] [   60] Spring Beans (3.0.5.RELEASE)
[ 122] [Active     ] [            ] [       ] [   60] Spring AOP (3.0.5.RELEASE)
[ 123] [Active     ] [            ] [       ] [   60] Spring Context (3.0.5.RELEASE)
[ 124] [Active     ] [            ] [       ] [   60] Spring Context Support (3.0.5.RELEA
[ 125] [Active     ] [            ] [       ] [   60] Spring Web (3.0.5.RELEASE)
[ 126] [Active     ] [            ] [       ] [   60] Spring Web Servlet (3.0.5.RELEASE)

because I used package  org.springframework.orm.hibernate3.HibernateCallback;
How can i add the this bundle to the features of spring3, meanwhile orm it is dependence on package of Dao which also not in the list of actives.
maybe it is not need pacakge of orm?


Reply | Threaded
Open this post in threaded view
|

Re: How to add the bundle of features to karaf

dantran
You can follow my example ( in this list for activemq-cleint ) where I
need to deploy spring-tx, but first you need to manually deploy it to
make sure it working, then you can do the next automation steps to
deploy features

http://karaf.apache.org/manual/2.1.99-SNAPSHOT/users-guide/provisioning.html

-Dan

On Wed, Mar 16, 2011 at 8:19 PM, stream <[hidden email]> wrote:

> hi,everyone.
> my english is poor, i hope i can express my meaning.
> i've features:install spring 3.0.5 which in the karaf by default.
> i found there are not spring orm in the list of actives
>
> [ 118] [Active     ] [            ] [       ] [   60] Spring Core
> (3.0.5.RELEASE)
> [ 119] [Active     ] [            ] [       ] [   60] Spring ASM
> (3.0.5.RELEASE)
> [ 120] [Active     ] [            ] [       ] [   60] Spring Expression
> Language (3.0.5.R
> [ 121] [Active     ] [            ] [       ] [   60] Spring Beans
> (3.0.5.RELEASE)
> [ 122] [Active     ] [            ] [       ] [   60] Spring AOP
> (3.0.5.RELEASE)
> [ 123] [Active     ] [            ] [       ] [   60] Spring Context
> (3.0.5.RELEASE)
> [ 124] [Active     ] [            ] [       ] [   60] Spring Context Support
> (3.0.5.RELEA
> [ 125] [Active     ] [            ] [       ] [   60] Spring Web
> (3.0.5.RELEASE)
> [ 126] [Active     ] [            ] [       ] [   60] Spring Web Servlet
> (3.0.5.RELEASE)
>
> because I used package
> org.springframework.orm.hibernate3.HibernateCallback;
> How can i add the this bundle to the features of spring3
> maybe it is not need pacakge of orm?
>
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/How-to-add-the-bundle-of-features-to-karaf-tp2691959p2691959.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

Re: How to add the bundle of features to karaf

stream
Yes, thanks Dan

Reply | Threaded
Open this post in threaded view
|

Re: How to add the bundle of features to karaf

mikevan
In reply to this post by stream
stream wrote
hi,everyone.
my english is poor, i hope i can express my meaning.
i've features:install spring 3.0.5 which in the karaf by default.
i found there are not spring orm in the list of actives

[ 118] [Active     ] [            ] [       ] [   60] Spring Core (3.0.5.RELEASE)
[ 119] [Active     ] [            ] [       ] [   60] Spring ASM (3.0.5.RELEASE)
[ 120] [Active     ] [            ] [       ] [   60] Spring Expression Language (3.0.5.R
[ 121] [Active     ] [            ] [       ] [   60] Spring Beans (3.0.5.RELEASE)
[ 122] [Active     ] [            ] [       ] [   60] Spring AOP (3.0.5.RELEASE)
[ 123] [Active     ] [            ] [       ] [   60] Spring Context (3.0.5.RELEASE)
[ 124] [Active     ] [            ] [       ] [   60] Spring Context Support (3.0.5.RELEA
[ 125] [Active     ] [            ] [       ] [   60] Spring Web (3.0.5.RELEASE)
[ 126] [Active     ] [            ] [       ] [   60] Spring Web Servlet (3.0.5.RELEASE)

because I used package  org.springframework.orm.hibernate3.HibernateCallback;
How can i add the this bundle to the features of spring3, meanwhile orm it is dependence on package of Dao which also not in the list of actives.
maybe it is not need pacakge of orm?
Stream,

The direct answer to your question is that you could modify the features.xml file that is provisioning the Spring 3 feature.  However, that really isn't the best way to do what you want.  When I had a similar issue, I created a seperate provisioning (features.xml) file whose purpose was to deploy all of the hibernate dependent bundles.  Then, after adding this file to my featuresRepositories, I was able to do a "features:install hibernate" and all of the hibernate stuff was deployed.  Then I wrote a blog about it: http://weblogs.java.net/blog/fossesi/archive/2010/09/16/some-results-converting-large-standard-java-app-set-osgi-bundles-bet 

Please let me know if that helps.
Reply | Threaded
Open this post in threaded view
|

Re: How to add the bundle of features to karaf

dantran
Yes, I am also looking at ACE as well while trying hard to get
familiar with OSGI runtime infrastructure

Thanks

-D

On Thu, Mar 17, 2011 at 9:54 AM, karafman <[hidden email]> wrote:

>
> stream wrote:
>>
>> hi,everyone.
>> my english is poor, i hope i can express my meaning.
>> i've features:install spring 3.0.5 which in the karaf by default.
>> i found there are not spring orm in the list of actives
>>
>> [ 118] [Active     ] [            ] [       ] [   60] Spring Core
>> (3.0.5.RELEASE)
>> [ 119] [Active     ] [            ] [       ] [   60] Spring ASM
>> (3.0.5.RELEASE)
>> [ 120] [Active     ] [            ] [       ] [   60] Spring Expression
>> Language (3.0.5.R
>> [ 121] [Active     ] [            ] [       ] [   60] Spring Beans
>> (3.0.5.RELEASE)
>> [ 122] [Active     ] [            ] [       ] [   60] Spring AOP
>> (3.0.5.RELEASE)
>> [ 123] [Active     ] [            ] [       ] [   60] Spring Context
>> (3.0.5.RELEASE)
>> [ 124] [Active     ] [            ] [       ] [   60] Spring Context
>> Support (3.0.5.RELEA
>> [ 125] [Active     ] [            ] [       ] [   60] Spring Web
>> (3.0.5.RELEASE)
>> [ 126] [Active     ] [            ] [       ] [   60] Spring Web Servlet
>> (3.0.5.RELEASE)
>>
>> because I used package
>> org.springframework.orm.hibernate3.HibernateCallback;
>> How can i add the this bundle to the features of spring3, meanwhile orm it
>> is dependence on package of Dao which also not in the list of actives.
>> maybe it is not need pacakge of orm?
>>
>
> Stream,
>
> The direct answer to your question is that you could modify the features.xml
> file that is provisioning the Spring 3 feature.  However, that really isn't
> the best way to do what you want.  When I had a similar issue, I created a
> seperate provisioning (features.xml) file whose purpose was to deploy all of
> the hibernate dependent bundles.  Then, after adding this file to my
> featuresRepositories, I was able to do a "features:install hibernate" and
> all of the hibernate stuff was deployed.  Then I wrote a blog about it:
> http://weblogs.java.net/blog/fossesi/archive/2010/09/16/some-results-converting-large-standard-java-app-set-osgi-bundles-bet
>
> Please let me know if that helps.
>
> -----
> Karafman
> Slayer of the JEE
> Pounder of the Perl Programmer
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/How-to-add-the-bundle-of-features-to-karaf-tp2691959p2694332.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>