Re: Heading to Karaf runtime 4.3.0.RC1

2020-01-23 Thread Grzegorz Grzybek
Hello!

Great seen Karaf evolving. I'm indeed working on Pax Web and I try to do
similar refactoring I did with Pax Logging. Undertow 2 and Tomcat 9 are
already Servlet API 4 (it's not directly related to OSGi CMPN R7 though,
but it'd be nice to have Pax Web 8 == Servlet API 4 == JavaEE 8).

So the theme for Pax Web 8 should be:
 - Servlet API 4
 - OSGi CMPN R7 (HTTP Service, Whiteboard Service)
 - Undertow 2
 - Tomcat 9
 - Jetty 10 (already released as Alpha)
 - javax.* → jakarta.* Maven coordinates

regards
Grzegorz Grzybek

pt., 24 sty 2020 o 06:44 Romain Manni-Bucau 
napisał(a):

> Awesome, this will already be big and enable to use aries osgi-cdi which is
> a big step for osgi ecosystem imho.
>
> Thanks a lot JB.
>
> Le ven. 24 janv. 2020 à 05:38, Jean-Baptiste Onofré  a
> écrit :
>
> > Hi guys,
> >
> > Just to let you know that the first OSGi R7 support is done:
> >
> > https://github.com/apache/karaf/pull/995
> >
> > I will merge this PR later today, and I will prepare a 4.3.0.RC1.
> >
> > To have a full OSGi R7 support, you still need to:
> >
> > - work on Pax Web to update whiteboard and other part to have full R7
> > support here. Greg and I are working on this.
> > - implement log.stream and log.admin services in Pax Logging (minor, Pax
> > Logging core is already R7).
> >
> > So, in order to give you a try, I will cut 4.3.0.RC1 today or during the
> > weekend.
> >
> > Thanks
> >
> > Regards
> > JB
> > --
> > Jean-Baptiste Onofré
> > jbono...@apache.org
> > http://blog.nanthrax.net
> > Talend - http://www.talend.com
> >
>


Re: Heading to Karaf runtime 4.3.0.RC1

2020-01-23 Thread Romain Manni-Bucau
Awesome, this will already be big and enable to use aries osgi-cdi which is
a big step for osgi ecosystem imho.

Thanks a lot JB.

Le ven. 24 janv. 2020 à 05:38, Jean-Baptiste Onofré  a
écrit :

> Hi guys,
>
> Just to let you know that the first OSGi R7 support is done:
>
> https://github.com/apache/karaf/pull/995
>
> I will merge this PR later today, and I will prepare a 4.3.0.RC1.
>
> To have a full OSGi R7 support, you still need to:
>
> - work on Pax Web to update whiteboard and other part to have full R7
> support here. Greg and I are working on this.
> - implement log.stream and log.admin services in Pax Logging (minor, Pax
> Logging core is already R7).
>
> So, in order to give you a try, I will cut 4.3.0.RC1 today or during the
> weekend.
>
> Thanks
>
> Regards
> JB
> --
> Jean-Baptiste Onofré
> jbono...@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>


Heading to Karaf runtime 4.3.0.RC1

2020-01-23 Thread Jean-Baptiste Onofré
Hi guys,

Just to let you know that the first OSGi R7 support is done:

https://github.com/apache/karaf/pull/995

I will merge this PR later today, and I will prepare a 4.3.0.RC1.

To have a full OSGi R7 support, you still need to:

- work on Pax Web to update whiteboard and other part to have full R7
support here. Greg and I are working on this.
- implement log.stream and log.admin services in Pax Logging (minor, Pax
Logging core is already R7).

So, in order to give you a try, I will cut 4.3.0.RC1 today or during the
weekend.

Thanks

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


Re: How to certificate a distribution version

2020-01-23 Thread Jean-Baptiste Onofré
Just use the karaf provided example:

https://github.com/apache/karaf/tree/master/examples/karaf-command-example

You will see how to create your own command.

Regards
JB

On 23/01/2020 18:15, leonardchicco wrote:
> Hi, 
>Yes, i'm trying to extend the shell using the 
> 
> https://karaf.apache.org/manual/latest-2.x/developers-guide/extending-console.html
> 
> but now i'm not have success.
> 
> Can you help me?
> 
> Thanks in advance
> 
> Luca Leonardi
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html
> 

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


Re: How to certificate a distribution version

2020-01-23 Thread leonardchicco
Hi, 
   Yes, i'm trying to extend the shell using the 

https://karaf.apache.org/manual/latest-2.x/developers-guide/extending-console.html

but now i'm not have success.

Can you help me?

Thanks in advance

Luca Leonardi



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html


Re: Missing info on MBean version 2.24.3!

2020-01-23 Thread leonardchicco
Hi, 
I've a JAXRS service where I use the Karaf ConfigMean as following:

.
String servicePid = "284";
ConfigMBean configMBean=
MBeanServerInvocationHandler.newProxyInstance(mbeanServer, new
ObjectName("org.apache.karaf:type=config,name=root"), ConfigMBean.class,
false);

Map props = configMBean.listProperties(servicePid);

String configFileName = props.get("felix.fileinstall.filename");

// The configFileName is ""
..

In our enviromnent, I need to execute the dump of all our installed bundles
and related info (for example the configuration cfg file).

I guess it's not related to Camel. You don't see the
felix.fileinstall.filename property at all right ? *CORRECT*

Thank you very much.

Luca Leonardi


 



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html


Re: [RESULT][VOTE] Apache Karaf Runtime 4.2.8 release (take #2)

2020-01-23 Thread Erwin Hogeweg
Awesome. Thank you all for the hard work. 

Erwin

> El ene. 23, 2020, a la(s) 03:06, Jean-Baptiste Onofré  
> escribió:
> 
> Hi everyone,
> 
> this vote passed with the following result:
> 
> +1 (binding): Grzegorz Grzybek, François Papon, Freeman Fang, Jamie
> Goodyear, Achim Nierbeck, JB Onofré
> +1 (non binding): Romain Manni-Bucau, Fabian Lange, Markus Rathgeb,
> Roedl Lukas
> 
> I'm promoting the artifacts on Maven Central and dist.a.o. I'm also
> updating Jira and preparing the announcement on mailing lists and website.
> 
> Thanks all for your vote.
> 
> Now, my target (highest priority) is 4.3.0.RC1 ;)
> 
> Regards
> JB
> 
>> On 19/01/2020 22:49, Jean-Baptiste Onofré wrote:
>> Hi all,
>> 
>> I submit Apache Karaf runtime 4.2.8 to your vote. This is a
>> maintenance release on the 4.2.x series, bringing updates, improvements
>> and fixes.
>> 
>> Release Notes:
>> https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12311140&version=12346100
>> 
>> Staging Repository:
>> https://repository.apache.org/content/repositories/orgapachekaraf-1138
>> 
>> Staging Dist:
>> https://dist.apache.org/repos/dist/dev/karaf/4.2.8/
>> 
>> Git Tag:
>> karaf-4.2.8
>> 
>> Please vote to approve this release:
>> 
>> [ ] +1 Approve the release
>> [ ] -1 Don't approve the release (please provide specific comments)
>> 
>> This vote will be open for at least 72 hours.
>> 
>> Thanks,
>> Regards
>> JB
>> 
> 
> -- 
> Jean-Baptiste Onofré
> jbono...@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com



Re: Missing info on MBean version 2.24.3!

2020-01-23 Thread Jean-Baptiste Onofré
Hi Luca,

What config pid are you talking about ?

ConfigMean is a Karaf MBean. Are you using Karaf ConfigMBean in a Camel
route (for instance using a processor) ?

Can you describe more precisely your use case ?

I guess it's not related to Camel. You don't see the
felix.fileinstall.filename property at all right ?

For instance, here's what I tested:

1. I confirm that I can see felix.fileinstall.filename when doing
config:list "(service.pid=org.apache.karaf.shell)"

2. I also config that the felix.fileinstall.filename is not displayed
when doing listProperties("org.apache.karaf.shell")

It's clearly a regression. I created the following Jira:

https://issues.apache.org/jira/browse/KARAF-6606

I'm fixing that for Karaf 4.2.9/4.3.0.RC1.

Sorry for the inconvenience,

Regards
JB


On 23/01/2020 11:22, leonardchicco wrote:
> Hi, 
>Recently I'm using the MBean to get the name of configuration file
> associated to my bundle.
> In Camel version 2.19.1 when i get the properties using
> ConfigMBean.listProperties(spid) there is "felix.fileinstall.filename" and
> contains the path of "cfg" file.
> Changing Camel version to 2.24.3 the properties doesn't contains this
> information much important for my project. 
> Can you explain how to get this information?
> 
> From the ConfigMBean.getConfigs(), i see that exist the name of my
> configuration bundle without full path.
> it is possible to match with my bundle? If yes, how can i do that?
> 
> Thanks in advance
> 
> Luca Leonardi
> 
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html
> 

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


Re: How to certificate a distribution version

2020-01-23 Thread Jean-Baptiste Onofré
Is having your own service/command acceptable ?

Regards
JB

On 23/01/2020 09:39, leonardchicco wrote:
> Hi 
>If it's possible at runtime like "info" command from the shell.
> 
> Something like that
> 
> *Our Product 
>Our product Version 1.1.0.0
>Patch version   B1.P4
>Release date   2020/01/23
> *
> Karaf
>   Karaf version   4.1.3
>   Karaf home  I:\ESB\ATSDish
>   Karaf base  I:\ESB\ATSDish
>   OSGi Framework  org.apache.felix.framework-5.6.8
> 
> JVM
>   Java Virtual MachineJava HotSpot(TM) 64-Bit Server VM version
> 25.201-b09
>   Version 1.8.0_201
>   Vendor  Oracle Corporation
>   Pid 9872
>   Uptime  5.958 seconds
>   Total compile time  11.996 seconds
> Threads
>   Live threads77
>   Daemon threads  58
>   Peak81
>   Total started   100
> Memory
>   Current heap size   154,292 kbytes
>   Maximum heap size   466,432 kbytes
>   Committed heap size 275,456 kbytes
>   Pending objects 0
>   Garbage collector   Name = 'PS Scavenge', Collections = 11, Time =
> 0.144 seconds
>   Garbage collector   Name = 'PS MarkSweep', Collections = 2, Time =
> 0.117 seconds
> Classes
>   Current classes loaded  9,287
>   Total classes loaded9,287
>   Total classes unloaded  0
> Operating system
>   NameWindows 10 version 10.0
>   Architectureamd64
>   Processors  8
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html
> 

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


Re: How to certificate a distribution version

2020-01-23 Thread leonardchicco
Hi 
   If it's possible at runtime like "info" command from the shell.

Something like that

*Our Product 
   Our product Version 1.1.0.0
   Patch version   B1.P4
   Release date   2020/01/23
*
Karaf
  Karaf version   4.1.3
  Karaf home  I:\ESB\ATSDish
  Karaf base  I:\ESB\ATSDish
  OSGi Framework  org.apache.felix.framework-5.6.8

JVM
  Java Virtual MachineJava HotSpot(TM) 64-Bit Server VM version
25.201-b09
  Version 1.8.0_201
  Vendor  Oracle Corporation
  Pid 9872
  Uptime  5.958 seconds
  Total compile time  11.996 seconds
Threads
  Live threads77
  Daemon threads  58
  Peak81
  Total started   100
Memory
  Current heap size   154,292 kbytes
  Maximum heap size   466,432 kbytes
  Committed heap size 275,456 kbytes
  Pending objects 0
  Garbage collector   Name = 'PS Scavenge', Collections = 11, Time =
0.144 seconds
  Garbage collector   Name = 'PS MarkSweep', Collections = 2, Time =
0.117 seconds
Classes
  Current classes loaded  9,287
  Total classes loaded9,287
  Total classes unloaded  0
Operating system
  NameWindows 10 version 10.0
  Architectureamd64
  Processors  8



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html


Missing info on MBean version 2.24.3!

2020-01-23 Thread leonardchicco
Hi, 
   Recently I'm using the MBean to get the name of configuration file
associated to my bundle.
In Camel version 2.19.1 when i get the properties using
ConfigMBean.listProperties(spid) there is "felix.fileinstall.filename" and
contains the path of "cfg" file.
Changing Camel version to 2.24.3 the properties doesn't contains this
information much important for my project. 
Can you explain how to get this information?

>From the ConfigMBean.getConfigs(), i see that exist the name of my
configuration bundle without full path.
it is possible to match with my bundle? If yes, how can i do that?

Thanks in advance

Luca Leonardi




--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html


Re: Multiple camel Version in the same Karaf

2020-01-23 Thread leonardchicco
Thank you very much for the link, in attachment my pom file.

pom.xml   

Best regards



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html


[ANN] Apache Karaf (runtime) 4.2.8 has been released!

2020-01-23 Thread Jean-Baptiste Onofré
The Apache Karaf team is pleased to announce Apache Karaf runtime
4.2.8 release!

Apache Karaf runtime 4.2.8 is a maintenance release on the 4.2.x
series. It brings improvements and bug fixes especially:

* fix on bat script for Windows platform
* several updates for CVE security fixes
* add JMXMP support
* add filter support on @Reference in command
* new examples
* and much more !

You can take a look on the Release Notes for details:

https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12311140&version=12346100

You can download the release from the Karaf website:

http://karaf.apache.org/download.html#container-428

Enjoy !

The Karaf Team


Re: Multiple camel Version in the same Karaf

2020-01-23 Thread Jean-Baptiste Onofré
Hi,

You can take a look in
https://github.com/apache/karaf/tree/master/examples/karaf-docker-example (in
the distribution).

If you want, I can review your pom.xml. Just send it to me.

Thanks,
Regards
JB

On 23/01/2020 09:42, leonardchicco wrote:
> Thank you very much,
>   Can you send me a simple example of sections of pom file?
> Thanks in advance
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html
> 

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


Re: Multiple camel Version in the same Karaf

2020-01-23 Thread leonardchicco
Thank you very much,
  Can you send me a simple example of sections of pom file?
Thanks in advance



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html


[RESULT][VOTE] Apache Karaf Runtime 4.2.8 release (take #2)

2020-01-23 Thread Jean-Baptiste Onofré
Hi everyone,

this vote passed with the following result:

+1 (binding): Grzegorz Grzybek, François Papon, Freeman Fang, Jamie
Goodyear, Achim Nierbeck, JB Onofré
+1 (non binding): Romain Manni-Bucau, Fabian Lange, Markus Rathgeb,
Roedl Lukas

I'm promoting the artifacts on Maven Central and dist.a.o. I'm also
updating Jira and preparing the announcement on mailing lists and website.

Thanks all for your vote.

Now, my target (highest priority) is 4.3.0.RC1 ;)

Regards
JB

On 19/01/2020 22:49, Jean-Baptiste Onofré wrote:
> Hi all,
> 
> I submit Apache Karaf runtime 4.2.8 to your vote. This is a
> maintenance release on the 4.2.x series, bringing updates, improvements
> and fixes.
> 
> Release Notes:
> https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12311140&version=12346100
> 
> Staging Repository:
> https://repository.apache.org/content/repositories/orgapachekaraf-1138
> 
> Staging Dist:
> https://dist.apache.org/repos/dist/dev/karaf/4.2.8/
> 
> Git Tag:
> karaf-4.2.8
> 
> Please vote to approve this release:
> 
> [ ] +1 Approve the release
> [ ] -1 Don't approve the release (please provide specific comments)
> 
> This vote will be open for at least 72 hours.
> 
> Thanks,
> Regards
> JB
> 

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