Re: [osgi-dev] Using Gradle or Maven on a new OSGi project

2019-06-24 Thread Łukasz Dywicki via osgi-dev
Gradle: Maven https://snyk.io/blog/jvm-ecosystem-report-2018-tools/ Kind regards, Łukasz Dywicki -- Code-House http://code-house.org On 24.06.2019 22:28, Stephen Schaub via osgi-dev wrote: > I'm new to OSGi and am starting a project. I found the enRoute material > and noticed that the enRout

Re: [osgi-dev] OSGi Logging

2018-07-11 Thread Łukasz Dywicki via osgi-dev
Karaf and pax logging does all what is possible in order to hide a LogService existence from its consumers. It’s not the best way to get logging right under OSGi, but definitely its a simplest one. All you need to do is just use slf4j as you used before. Under the hood pax provides slf4j package

Re: [osgi-dev] Multi-Tenancy with OSGI

2018-07-02 Thread Łukasz Dywicki via osgi-dev
es for tenants and results of their calls are kept over time. You can try to use them to inject tenant selection logic but it will work only with prototype scope (service lookup upon each request). Cheers, Łukasz Dywicki > On 1 Jul 2018, at 21:03, David Leangen via osgi-dev > wrote: >

Re: [osgi-dev] New enRoute Artifacts

2018-06-15 Thread Łukasz Dywicki via osgi-dev
off using: > > -exportcontents: ${packages;versioned} > > This way you only export packages that you have versioned, and therefore > actively chose to export. > > >> /bundle name: ${project.name}/ > > This is the default for the bnd-maven-plugin, and therefore e

Re: [osgi-dev] New enRoute Artifacts

2018-06-15 Thread Łukasz Dywicki via osgi-dev
Hey Paul, Its really up to a project and convention you take, enroute asumes org + artifact but nothing prevents you from doing opposite. A common pattern I used for maven based projects is: symbolic name: ${groupId}.${artifactId} export package: !${groupId}.${artifactId}.internal.*, ${groupId}.${

Re: [osgi-dev] Apache cxf: add authorization header in Client

2018-03-01 Thread Łukasz Dywicki via osgi-dev
While this mailing list is not CXF specific, there are other OSGI-related things which are discussed here such enroute. @Michael - it really depends on how you create client - if you have any factory bean? Maybe a bus instance? In general all CXF invocations, whether its server or client side,

Re: [osgi-dev] JPA or DB connectivity OSGI

2018-01-02 Thread Łukasz Dywicki via osgi-dev
/spaces/PAXJDBC/pages/23953600/Documentation <https://ops4j1.jira.com/wiki/spaces/PAXJDBC/pages/23953600/Documentation> Cheers & Happy new year. — Łukasz Dywicki Twitter: ldywicki Blog: http://dywicki.pl Code-House - http://code-house.org > On 2 Jan 2018, at 14:29, Matthews, Kevin

Re: [osgi-dev] requirements capabilities and resolver for general purpose provisioning

2017-03-15 Thread Łukasz Dywicki
Hey Milen, Yes, there attempts to use it and we are using it for example in Karaf under the hood. Feature descriptors which are using latest namespaces are backed by osgi resolver. Also eclipse-smarthome and openhab2 are using explicitly these to loosely couple provider/consumer features and del

Re: [osgi-dev] Help

2016-08-16 Thread Łukasz Dywicki
Gentlemen, Could you please move enroute support to separate mailing list? Best regards, Lukasz — Apache Karaf Committer & PMC Twitter: @ldywicki Blog: http://dywicki.pl Code-House - http://code-house.org > Wiadomość napisana przez > w dniu 16 sie 2016, o godz. 11:49: > > Please find the Gith

Re: [osgi-dev] Run a bundle as a certain jaas user

2016-03-01 Thread Łukasz Dywicki
Long time ago I did a test drive of CPM and it did require security manager to run. Main reason I was doing that was support for Subject.doAs actions. I planned to write a blog entry about that, however I never done that. Source code still can be found on my github https://github.com/splatch/osg

Re: [osgi-dev] ClassNotFoundException with RMI

2015-02-25 Thread Łukasz Dywicki
A while ago I had similar issue as yours which was affecting our RMI-based integration. Since I didn't want to turn on JVM security and enable RMI class loader I did following: 1. embedded all RMI contract classes which could be possibly loaded via RMI 2. my RMI client was executed from servlet thr

Re: [osgi-dev] ConditionalPermissionAdmin and Principal permission

2013-02-18 Thread Łukasz Dywicki
I didn't find the time to figure out what was going on but i was > assuming that it should work. Maybe you want to share a working example so > that others know how it can be done - I think the JAAS with CPM is not > trivial but interesting... > > regards, > > K

Re: [osgi-dev] ConditionalPermissionAdmin and Principal permission

2013-02-17 Thread Łukasz Dywicki
rks like a harm. Thank you for asistance! Kind regards, Lukasz Dywicki -- Apache Karaf Commiter http://dywicki.pl Wiadomość napisana przez Łukasz Dywicki w dniu 15 lut 2013, o godz. 18:16: > I've tried with Felix 4.0.3 and security 2.0.1 - still the same. I deployed > additional maven

Re: [osgi-dev] ConditionalPermissionAdmin and Principal permission

2013-02-15 Thread Łukasz Dywicki
17:58: > > > > On Fri, Feb 15, 2013 at 5:47 PM, Łukasz Dywicki wrote: > I use Felix 3.2.2 and Framework Security 1.4.2. > > That is very old - can you try with Felix 4.0.3 and security 2.0.1? > > regards, > > Karl > > Wiadomość napisana przez Karl

Re: [osgi-dev] ConditionalPermissionAdmin and Principal permission

2013-02-15 Thread Łukasz Dywicki
I use Felix 3.2.2 and Framework Security 1.4.2. Wiadomość napisana przez Karl Pauls w dniu 15 lut 2013, o godz. 17:45: > > > > On Fri, Feb 15, 2013 at 4:59 PM, Łukasz Dywicki wrote: > After few hours more spent on CPM I may confirm - I don't blow JVM and > framewor

Re: [osgi-dev] ConditionalPermissionAdmin and Principal permission

2013-02-15 Thread Łukasz Dywicki
After few hours more spent on CPM I may confirm - I don't blow JVM and framework. That's small success. :-) I've put results of my work to github (https://github.com/splatch/osgi-cpm) my repiles inline. > The most confusing part for me is why conditional permissions must be cleared > every time

Re: [osgi-dev] ConditionalPermissionAdmin and Principal permission

2013-02-15 Thread Łukasz Dywicki
Hey Karl, Thanks for quick response. You understood my intentions really well. Druing writing the mail I was thinking about few things, that's why I mixed terms. Based on example from your book I was able to improve the CPM usage. Now I have three bundles: * security - which contains custom condi

[osgi-dev] ConditionalPermissionAdmin and Principal permission

2013-02-14 Thread Łukasz Dywicki
Dear all, I was looking for something similar to grant for given principal authorized by JAAS login module in OSGi world. I thought that ConditionalPermissionaAdmin (CPM) will be solution of my problems, however it failed to cover the scenario. I have very simple code to test security layer usin