Re: Possible mybatis extender on the way

2017-04-26 Thread nino martinez wael
Okay im looking into this approach: http://www.matjazcerkvenik.si/developer/java-osgi-servicelistener.php On Wed, Apr 26, 2017 at 11:03 AM, nino martinez wael < nino.martinez.w...@gmail.com> wrote: > Hi Gang > > Im playing around with the idea of a mybatis extender, since we use > mybatis on

Re: Disabling LogEntry event publishing from pax-logging

2017-04-26 Thread 'Achim Nierbeck' via OPS4J
Hi, nope it's not handled, log "events" are always send to the event admin service [1] regards, Achim [1] - https://github.com/ops4j/org.ops4j.pax.logging/blob/master/pax-logging-service/src/main/java/org/ops4j/pax/logging/service/internal/PaxLoggingServiceImpl.java#L184-L194 2017-04-26 11:41

Re: Disabling LogEntry event publishing from pax-logging

2017-04-26 Thread Roberto Pierpaoli
Hi Achim, unfortunately we use the EventAdmin service a lot for the events dealing with our logic, otherwise it would certainly be already switched off :-) If the propagation can be already stopped on the PaxLogging side today, it would be great to know it, if it is not then we don't exclude to

Re: Disabling LogEntry event publishing from pax-logging

2017-04-26 Thread 'Achim Nierbeck' via OPS4J
Hi, ok so now I've got a clearer view ;) Do you need the event-admin in your context? Maybe just turn that one off ... :) But either way, just open an issue for this and we'll see what is possible. Or maybe you want to come up with a proper solution, in that case we highly appreciate

Re: Disabling LogEntry event publishing from pax-logging

2017-04-26 Thread Roberto Pierpaoli
Hi Achim, I can't say if the specification describes *how* log events should be propagated or *if* the propagation itself is mandatory, probably we should ask to the OSGi alliance :) We run our software over an embedded platform, with limited computational power, that's why we try to avoid

Possible mybatis extender on the way

2017-04-26 Thread nino martinez wael
Hi Gang Im playing around with the idea of a mybatis extender, since we use mybatis on almost every of our projects. However I have some weak OSGI spots. If any of you have an idea on the following - How can my component get notified when a certain service type are

Re: Disabling LogEntry event publishing from pax-logging

2017-04-26 Thread Roberto Pierpaoli
Hi Achim, thank you for the super-quick feedback. I'm sorry, I didn't know that it is mandatory to propagate log events to the event-admin service... I thought it could reasonably be a configuration option, since not everybody needs that for the business logic, but I guess it is needed by the

Re: Disabling LogEntry event publishing from pax-logging

2017-04-26 Thread Roberto Pierpaoli
Hi, I'm looking for the same solution: we would like to prevent PaxLogging from publishing anything to the OSGi Event Admin, is that actually possibile? Thanks in advance. Il giorno martedì 22 marzo 2016 15:52:35 UTC+1, Guillaume Nodet ha scritto: > > Adding a configuration option to disable