Re: Guide for developers

2016-05-05 Thread Jean-Baptiste Onofré

Hi,

1. Yes, there's a dev guide. However we are in the process of complete 
refactoring, and update with the coming karaf-boot

2. Use the la alias (bundle:list -t 0), it's in the user guide
3. Use bundle:tree for package dependencies, it's also in the user guide

Regards
JB

On 05/05/2016 10:01 PM, Karagkiaouris Diamantis wrote:

Hello,

I recently start using Karaf and i would like to ask some info that
unfortunately i didn't find:
 1) I would like to ask if there is any guide for starting up with
development. Is there any?
 2) How can i see the preinstalled bundles and their versions in
console?
 3) How can i see the dependencies between bundles?

Thank you for you time! I appreciate your help!

Kind regards


--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


Re: How do you configure logger additivity with the log:tail console command?

2016-05-05 Thread Jean-Baptiste Onofré

Hi Matt,

log:* commands uses the sift appender.

Did you change the appenders (console, out and sift) ?

In your case, the log4j configuration doesn't look correct for me. In 
etc/org.ops4j.pax.logging.cfg you should have:


log4j.rootLogger=INFO, out, osgi:*

log4j.logger.com.example=DEBUG

You don't have to provide the appender on the com.example logger.

Regards
JB

On 05/06/2016 12:27 AM, Matt Sicker wrote:

I'm having additivity-related issues where if I enable additivity,
certain log messages will get output in the console, but get output
twice in the log file. If I disable additivity, then those log messages
are no longer duplicated in the file, but they're no longer output by
log:tail.

I'm using Karaf 3.0.4. Example config:

log4j.rootLogger = INFO, out
log4j.logger.com.example = DEBUG, out
log4j.additivity.com.example = false

--
Matt Sicker >


--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


How do you configure logger additivity with the log:tail console command?

2016-05-05 Thread Matt Sicker
I'm having additivity-related issues where if I enable additivity, certain
log messages will get output in the console, but get output twice in the
log file. If I disable additivity, then those log messages are no longer
duplicated in the file, but they're no longer output by log:tail.

I'm using Karaf 3.0.4. Example config:

log4j.rootLogger = INFO, out
log4j.logger.com.example = DEBUG, out
log4j.additivity.com.example = false

-- 
Matt Sicker 


Re: Guide for developers

2016-05-05 Thread Jamie G.
Welcome to Apache Karaf :)

Our documentation is a great place to
start:http://karaf.apache.org/manual/latest/
Try using the list command in the console to the preinstalled bundles
and their versions.
The headers command will show you the specific dependencies any given
bundle has. The show tree command can show you how they're actually
wired.

Cheers,
Jamie

On Thu, May 5, 2016 at 5:31 PM, Karagkiaouris Diamantis
 wrote:
> Hello,
>
> I recently start using Karaf and i would like to ask some info that
> unfortunately i didn't find:
> 1) I would like to ask if there is any guide for starting up with
> development. Is there any?
> 2) How can i see the preinstalled bundles and their versions in console?
> 3) How can i see the dependencies between bundles?
>
> Thank you for you time! I appreciate your help!
>
> Kind regards
> --
>
> Diamantis G. Karagkiaouris,
>
> Junior Java EE Developer,
>
> www.eurodyn.com


Guide for developers

2016-05-05 Thread Karagkiaouris Diamantis

Hello,

I recently start using Karaf and i would like to ask some info that 
unfortunately i didn't find:
1) I would like to ask if there is any guide for starting up with 
development. Is there any?
2) How can i see the preinstalled bundles and their versions in 
console?

3) How can i see the dependencies between bundles?

Thank you for you time! I appreciate your help!

Kind regards
--

Diamantis G. Karagkiaouris,

Junior Java EE Developer,

www.eurodyn.com


Re: Can a karaf command be a DS service?

2016-05-05 Thread Benson Margulies
On Thu, May 5, 2016 at 12:56 AM, Jean-Baptiste Onofré  wrote:
> Short answer: no.

Oh, well, conventional service lookup for moi.

>
> You can do gogo command but not karaf command.
>
> Regards
> JB
>
>
> On 05/04/2016 09:52 PM, Benson Margulies wrote:
>>
>> Can I @Component something annotated with
>> org.apache.karaf.shell.api.action.lifecycle.Service?
>>
>
> --
> Jean-Baptiste Onofré
> jbono...@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com