Hi ,
Thank you for the answer.
I have add the project personservice-message for provider and the project
personservice-bundlelogv11 for consumer
like in the screen shot .
http://karaf.922171.n3.nabble.com/file/n4033806/scshot20140626.png
if I do mvn clean install without the project
Well,
Pax Logging does provide a couple of different APIs for logging:
log4j, slf4j commons-logging, etc..
So actually it's a service that hides a lot of details from you.
As it is using log4j as the underlying logging infrastructure you most
likely are tempted to use a lot of it,
though those
I think the problem come from here : inside the consumer I can't import the
provider project.
package com.bw.osgi.consumer;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceReference;
*import
Hi,
How you run this code?
This error generally means you don't have correct credential in the
SecurityContext. Did you login in as Admin role?
That's said, don't use the local process way to access the MBeanServer, or for
the upcoming Karaf 3.0.2 you can edit
etc/jmx.acl.whitelist.cfg
to
You should create a common project containing just the service interface.
Anyway, producer doesn't depend to consumer (it's the opposite).
Regards
JB
On 06/26/2014 11:22 AM, parker wrote:
I think the problem come from here : inside the consumer I can't import the
provider project.
package
Unfortunately I have not got the initial mail so I respond to the one
from JB.
If you simply want to work wirh OSGi services take a look at the first
tutorial:
http://www.liquid-reality.de/display/liquid/2011/02/15/Karaf+Tutorial+Part+1+-+Installation+and+First+application
Thanks Achim !
I am a bit lost in all thanks...
Karaf use pax-loggin-api which declare org.apache.log4j.Logger which is
more an fork/implementation /rewriting is it write ?
I have the feeling that I should investigate more with pax-loggin-api .
I have removed my log4 dependancy and replace it
I don't understand how can I make a common project containing just the
service interface.
For me this is a good answer, what more ?
Thank you for your answer
that is my provider :
ProviderActivator.java
**
package com.bw.osgi.provider;
import
Hi
A question about the load sequence of karaf 2.3.3:
1.
I have a feature.xml:
configfile finalname=etc/MspEtgCommon.cfg
override=truemvn:${project.groupId}/MspEtgCommon/${project.version}/cfg/development/configfile
bundlemvn:ch.curabill.msp.etg/MspEtgCommon/${project.version}/bundle
No, and it actually shouldn't matter since the service in your bundle will
be re-configured the minute a new configuration is present.
regards, Achim
2014-06-26 13:54 GMT+02:00 Laci Gaspar laci...@gmail.com:
Hi
A question about the load sequence of karaf 2.3.3:
1.
I have a feature.xml:
Yep, that's the only constraint,
practically for standard logging you usually shouldn't care much.
For example if you take only the slf4j API as your logging api, you don't
really care if it is log4j or logback that does the actuall logging for
you.
So basically Pax Logging tries to do the same
ok, thanks. I seem to have a different issue, which I didn't notice, sorry.
We want to have two configfiles for our bundle (a common and specific one).
So in the features.xml we have:
configfile finalname=etc/${project.artifactId}.cfg
No,
one service, one cfg file. You need to make sure you have a different
service for it or use a ManagedService Factory for it. In that case you'll
have a new service instance connected to another cfg file.
For example:
org.whatever.package-one.cfg
org.whatever.package-two.cfg
will result in
Hi,
Thank you for your answer, I understand than the problem come from maven ,
I have never used maven and I would like to know how I can answer to the
challenge, the challenge is to use a project inside an other project.
I am really new with OSGi and new with maven.
Then to do it , step by
I installed successfully:
feature:install cellar-webconsole
admin@NextGate () list
START LEVEL 33 , List Threshold: 50
ID | State| Lvl | Version | Name
-
376 | Resolved | 80 | 3.0.0 |
Now I have two Win7 VMs. I was able to feature:install two feature sets on
node A but the bundle:list on node A B were different. One had more
bundles installed after the feature:install runs. There are no helpful
exceptions in the karaf log related to cellar/hazelcast. Any idea why this
Say, I write a tiny Hello World app - a few lines.
What might be a simple example of a plugin that I could add to it?
Though this is a super-simple question, I can't find any discussion
that describes how I might go about doing this. I figure that any
technology should be capable of describing
Hi,
which features are you installing ?
Could you send to me the log files ?
Regarding the commands, cluster:feature-install is the same as
feature:install but it allows you to specify the cluster group
(cluster:group-list).
The feature:install will deploy to all local cluster groups (where
Cellar sync ConfigAdmin. If a new node join, it will sync the resources
(it's the purpose of the Synchronizers), as long as it's not blacklisted
(as describe in the etc/org.apache.karaf.cellar.groups.cfg).
Did you read the Cellar user guide because it's explained there.
Regards
JB
On
19 matches
Mail list logo