Re: ECF 3.13 released

2016-03-23 Thread Christian Schneider
I have not yet tried chronicle but it looks like a good choice e.g. some trading floor applications. I would be very interested in creating a transport for Aries rsa (more below). About the comparison between CXF DOSGi and ECF. Traditionally CXF DOSGi was limited to CXF as a transport layer. So

Re: ECF 3.13 released

2016-03-23 Thread Scott Lewis
On 3/23/2016 1:28 PM, Nick Baker wrote: Thanks a lot Scott, We'll definitely keep you guys in mind as we get to our distributed feature later this year. I've been particularly curious as to if anyone has tried integrating Java Chronicle ‎https://github.com/OpenHFT/Chronicle-Queue as the

Re: JPA and Hibernate

2016-03-23 Thread Olivier21
Yes Christian, this is the case but it works with the release 4.3.6.Final of hibernate. When I execute the command "feature:list" in the Karaf console, I can see "hibernate 4.3.6.Final" but I would like to have Hibernate 5. In order to install "hibernate 4.3.6.Final" from my feature.xml file, I

Re: Karaf hidden java.util.zip.ZipException once a second

2016-03-23 Thread Jean-Baptiste Onofré
Hi Martin, I suspect it's the README file in the deploy folder. Regards JB On 03/23/2016 09:46 PM, Martin Lichtin wrote: When profiling against a Karaf (using flight recorder), I see the following Exception exactly once a second: java.lang.Throwable.(String) line: 267

Karaf hidden java.util.zip.ZipException once a second

2016-03-23 Thread Martin Lichtin
When profiling against a Karaf (using flight recorder), I see the following Exception exactly once a second: java.lang.Throwable.(String) line: 267 java.lang.Exception.(String) line: 52 java.io.IOException.(String) line: 58 java.util.zip.ZipException.(String) line: 58

Re: ECF 3.13 released

2016-03-23 Thread Nick Baker
Thanks a lot Scott, We'll definitely keep you guys in mind as we get to our distributed feature later this year. I've been particularly curious as to if anyone has tried integrating Java Chronicle ‎https://github.com/OpenHFT/Chronicle-Queue as the transport layer. Obviously not a solution for

Re: ECF 3.13 released

2016-03-23 Thread Scott Lewis
On 3/23/2016 12:13 PM, Nick Baker wrote: Hey Scott, Thanks for the update. We're actually looking to deploy Remote Services in our next release. Can you speak to the relative merits of ECF vs the Apache CXF Distributed OSGi subproject? I don't want to explicitly or implicitly criticize CXF,

Re: Run servlet in karaf

2016-03-23 Thread Achim Nierbeck
This completely depends on your use-case and what you are trying to achieve. If you just want to have a Servlet running, with Servlet 3 annotations. Follow the sample in [1]. Or take a look at the samples of the Apache Karaf Cookbook [2]. regards, Achim [1] -

Re: ECF 3.13 released

2016-03-23 Thread Nick Baker
Hey Scott, Thanks for the update. We're actually looking to deploy Remote Services in our next release. Can you speak to the relative merits of ECF vs the Apache CXF Distributed OSGi subproject? Thanks, Nick Baker From: Scott Lewis > Reply-To:

Re: JPA and Hibernate

2016-03-23 Thread Christian Schneider
What do you mean? Isnt this exactly what happens when your feature is installed? Christian 2016-03-23 17:10 GMT+01:00 Olivier21 : > It's solved! > I changed my "pom.xml" to add : > > org.hibernate.proxy,javassist.util.proxy,* > > > Christian, > > Now, Have you an

Re: Run servlet in karaf

2016-03-23 Thread Alioune
Thank you four your responses guys. @Achim: It seems that using PAX Web is the easiest way. So I would like to add a servlet in an existing maven projet. How may I start the servlet at runtime of my bundle using PAX Web (without the Activator ? Regards On 23 March 2016 at 16:05,

Re: Deploy datasource config with feature.xml

2016-03-23 Thread Jean-Baptiste Onofré
Yes, I assigned to me. Thanks ! Regards JB On 03/23/2016 05:49 PM, mdo wrote: https://issues.apache.org/jira/browse/KARAF-4441 -- View this message in context: http://karaf.922171.n3.nabble.com/Deploy-datasource-config-with-feature-xml-tp4045941p4045953.html Sent from the Karaf - User

Re: Deploy datasource config with feature.xml

2016-03-23 Thread mdo
https://issues.apache.org/jira/browse/KARAF-4441 -- View this message in context: http://karaf.922171.n3.nabble.com/Deploy-datasource-config-with-feature-xml-tp4045941p4045953.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: ECF 3.13 released

2016-03-23 Thread Scott Lewis
iv) ECF 3.13 also supports using maven to install Karaf features [4]. On 3/17/2016 9:37 AM, Scott Lewis wrote: ECF 3.13 has just been released [1]. ECF provides a modular and CT-tested implementation of OSGi R6 Remote Services and Remote Service Admin (1.1) specifications. The important

Re: Deploy datasource config with feature.xml

2016-03-23 Thread mdo
OK, thanks. I'll log that into JIRA. -- View this message in context: http://karaf.922171.n3.nabble.com/Deploy-datasource-config-with-feature-xml-tp4045941p4045951.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Deploy datasource config with feature.xml

2016-03-23 Thread Jean-Baptiste Onofré
OK, my bad, Can you create a Jira about that ? The workaround is to use instead of (or provision the cfg file). Sorry about that. It will be fixed for 4.0.5. Regards JB On 03/23/2016 05:20 PM, mdo wrote: config:list shows:

Re: Deploy datasource config with feature.xml

2016-03-23 Thread mdo
config:list shows: Pid:org.ops4j.datasource BundleLocation: null Properties: dataSourceName = test felix.fileinstall.filename = file:/tmp/apache-karaf-4.0.4/etc/org.ops4j.datasource.cfg osgi.jdbc.driver.name =

Re: JPA and Hibernate

2016-03-23 Thread Olivier21
It's solved! I changed my "pom.xml" to add : org.hibernate.proxy,javassist.util.proxy,* Christian, Now, Have you an idea to change my "feature.xml" file in order to install hibernate 5 automatically? Thank you for your help. -- View this message in context:

Re: Deploy datasource config with feature.xml

2016-03-23 Thread Jean-Baptiste Onofré
Hi, it sounds like an issue to deal with config factory (as the format is xx-xx). However, don't you have the config in ConfigAdmin (using config:list should be able to see it). Does org.ops4j.datasource.cfg contain your keys/values ? Regards JB On 03/23/2016 04:44 PM, mdo wrote:

Re: Deploy datasource config with feature.xml

2016-03-23 Thread mdo
jbonofre wrote > what's your Karaf version ? > > Depending of the Karaf version, the cfg file is not created, you have to > check with config:list. I'm using 4.0.4. This is the log output when installing the feature: 2016-03-23 16:41:48,274 | INFO | nsole user karaf | FeaturesServiceImpl

Re: JPA and Hibernate

2016-03-23 Thread Olivier21
Hello Christian, It works fine now with a Kar file. The "feature.xml" file to create the Kar file contains : http://karaf.apache.org/xmlns/features/v1.3.0;> mvn:org.apache.cxf.karaf/apache-cxf/3.1.5/xml/features mvn:org.ops4j.pax.jdbc/pax-jdbc-features/0.7.0/xml/features

Re: Deploy datasource config with feature.xml

2016-03-23 Thread Jean-Baptiste Onofré
Hi Manfred, what's your Karaf version ? Depending of the Karaf version, the cfg file is not created, you have to check with config:list. Regards JB On 03/23/2016 10:14 AM, Manfred Dohmen wrote: Hello, I'm trying to deploy a datasource configuration file with a feature defined in a

Re: Embedding Karaf in a WAR (Tomcat)

2016-03-23 Thread Nick Baker
We boot Karaf on the Servlet Context Listener chain. Regular Karaf Main class with a lot of special code to handle write access issues to the installation directory. We also support multiple instances from the same install so the caches are segmented and port conflicts resolved prior to startup

Deploy datasource config with feature.xml

2016-03-23 Thread Manfred Dohmen
Hello, I'm trying to deploy a datasource configuration file with a feature defined in a feature.xml like this: xxx osgi.jdbc.driver.name=oracle-pool-xa url=jdbc:oracle:thin:@192.168.1.2:1521:orcl user=test password=test

Re: Run servlet in karaf

2016-03-23 Thread Jean-Baptiste Onofré
Good point and kudo to Achim. I'm humbly apologize to the Pax Web master ;) Regards JB On 03/23/2016 04:02 PM, Achim Nierbeck wrote: Hi, The only real source for samples are the PAX Web samples ;-) You'll find a bunch of samples and how the integration tests work at:

Re: Run servlet in karaf

2016-03-23 Thread Achim Nierbeck
Hi, The only real source for samples are the PAX Web samples ;-) You'll find a bunch of samples and how the integration tests work at: https://github.com/ops4j/org.ops4j.pax.web/tree/master/samples And

Re: Run servlet in karaf

2016-03-23 Thread Jean-Baptiste Onofré
Hi, yes, you can take a look on: https://github.com/jbonofre/karaf-boot/tree/master/karaf-boot-samples/karaf-boot-sample-servlet Basically, the easiest way is to use the @WebServlet annotation, and install the http-whiteboard feature. The http-whiteboard feature will "listen" for servlet

Re: Run servlet in karaf

2016-03-23 Thread Morgan
Hi Alioune, You don't need a ServiceTracker to run a servlet. You can do it without a servicetracker too. Christian wrote a blogpost where you can find an example of a servlet : http://www.liquid-reality.de/display/liquid/2011/02/15/Karaf+Tutorial+Part+1+-+Installation+and+First+application

Run servlet in karaf

2016-03-23 Thread Alioune
Hi All, I am trying to run a servlet in karaf contaire, I have successfully done that using ServiceTracker. Now I would like to set a filter for the servlet, but I have no idea about doing that with ServiceTracker. I have a few questions : 1: are there others ways than ServiceTracker to run

Re: [Ann] Java Conference in Barcelona : JBCNConf

2016-03-23 Thread Jean-Baptiste Onofré
Hi Jonathan, Thanks for the update. As already said, you can count on me ;) Regards JB On 03/23/2016 02:30 PM, Jonathan Vila Lopez wrote: Hi guys !!! As the last year we had very good results with our Java conference in Barcelona, this 2016 we've repeated the experience. www.jbcnconf.com

[Ann] Java Conference in Barcelona : JBCNConf

2016-03-23 Thread Jonathan Vila Lopez
Hi guys !!! As the last year we had very good results with our Java conference in Barcelona, this 2016 we've repeated the experience. www.jbcnconf.com So, we would really need that people send us Papers to talk in it, and obviously if you want to listen to good ( and not comercial) talks, do a

Re: Embedding Karaf in a WAR (Tomcat)

2016-03-23 Thread Jean-Baptiste Onofré
Hi, I worked with Serge (from Jahia) to embed Karaf in tomcat as a war. It's available there: https://github.com/apache/karaf/tree/master/demos/web You will see that this war use a WebAppListener that starts Karaf in Tomcat. Regards JB On 03/23/2016 12:53 PM, mjelen wrote: Dear Karaf

Re: Embedding Karaf in a WAR (Tomcat)

2016-03-23 Thread Tom Barber
Hi Martin I'm not sure quite how they bootstrap it, but Pentaho BI Server 6.x runs Tomcat & Karaf as a single service. Tom On Wed, Mar 23, 2016 at 11:53 AM, mjelen wrote: > Dear Karaf developers und fellow users, > > due to customer requirements, we have to deliver all

Embedding Karaf in a WAR (Tomcat)

2016-03-23 Thread mjelen
Dear Karaf developers und fellow users, due to customer requirements, we have to deliver all our software as web archives that are deployable on Tomcat. I'm hoping for this requirement to change in the future and I've been reasoning with our customer for over a year now about it, but at the

Proposal: ability to install features in different regions in single command

2016-03-23 Thread Владимир Коньков
Hi there! Use case: Environment: clean Karaf 4.x instance. Requirements: Multiple software modules should be install according to accepted deployment plan. Deployment plan consist 3 modules in different regions: ActiveMQ (root/broker), business module A (root), business module B (root). Some