Hi JB, 
I have question about cellar. I used karaf 2.3.3, cellar 2.3.2 

I have 2 nodes, node1 and node2.
I used the below command to install cellar for the 2 nodes

*features:addurl
mvn:org.apache.karaf.cellar/apache-karaf-cellar/2.3.2/xml/features              
                                
features:install cellar                                         
features:install cellar-dosgi                                           
features:install cellar-cloud   *

I have 2 bundles,  demo.service-bundle-0.1.jar(register a service) and
demo.camel-bundle-0.1.jar(invoke the service)                   
I installed demo.service-bundle-0.1.jar on the node1 and 
demo.camel-bundle-0.1.jar on the node2
Below is my test steps:

Step1: I run the command "cluster:bundle-list default | grep -i demo" on the
node2, I can see both of the bundles.

karaf@root> cluster:bundle-list default | grep -i demo
[18  ] [Active     ] demo.camel-bundle [demo.camel] (0.1.0)
[49  ] [Active     ] demo.service-bundle [demo.service] (0.1.0)

 Step2: I run the command "list" on the node 2, the demo.camel-bundle's
status is installed and try to start the demo.camel-bundle, it failed.
karaf@root> list | grep -i demo
[  54] [Installed  ] [            ] [       ] [   80] demo.camel-bundle
[demo.camel] (0.1)
karaf@root> start 54
Error executing command: Error starting bundles:
        Unable to start bundle 54: Unresolved constraint in bundle
demo.camel-bundle [54]: Unable to resolve 54.0: missing requirement [54.0]
osgi.wiring.package; (&(osgi.wiring.package=demo.service)(version>=0.1.0))


 Step3: I run the command "list" on the node 1, the demo.camel-bundle's
status is installed
karaf@root>  list | grep -i demo
[ 131] [Active     ] [            ] [Started] [   80] demo.service-bundle
[demo.service] (0.1)

*Questions 1*: in the step1, I can see demo.camel-bundle's status is active.
Does it means there must be an instance of demo.camel-bundle  running in the
cluster? But I can't see any log printed by the bundle(normally, if
demo.camel-bundle runs, it should print some log).

*Questions 2*:in the step2 demo.camel-bundle's status is installed. I am
confusing, why it's status is active in step1. why the status of the same
bundle is different in step1 and step2?

*questions 3*: in the step2, I tried to start the demo.camel-bundle, it
failed, I think
 it should be caused by  depending on the demo.service-bundle  and
demo.service-bundle is not visible on the node2. But I have installed
cellar-dosgi on the 2 nodes and cellar-dosgi supports invoking service on
the remote node. Why it still didn't work?

Appreciated!











--
View this message in context: 
http://karaf.922171.n3.nabble.com/question-about-cellar-2-3-2-tp4031251.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to