Re: REST routing issue

2019-02-19 Thread Jean-Baptiste Onofré
Thanks for the update Greg. I will take a look. Regards JB On 19/02/2019 22:12, Greg Logan wrote: > Hi JB, > > An example built tarball lives > in http://build.opencast.org/builds/r6.x/, or you can take a look at the > contents of https://github.com/opencast/opencast/tree/r/6.x/etc.  As far > as

Re: Missing .cfg file?

2019-02-19 Thread Jean-Baptiste Onofré
Hi Scott Pax web cfg file is not present by default in the standard distribution. It will come when installing the http feature. Regarding the file content, I will add (commented) the SSL part in pax web. Regards JB Le 19 févr. 2019 à 23:51, à 23:51, "Leschke, Scott" a écrit: >It looks like

Missing .cfg file?

2019-02-19 Thread Leschke, Scott
It looks like there isn't an etc/org.ops4j.pax.web.cfg in the Windows distro of Karaf 4.2.3. I'm guessing this isn't by design although I could be wrong. If I'm not wrong, might I suggest that you consider adding the SSL related properties to the file as well, with appropriate defaults of course

Re: REST routing issue

2019-02-19 Thread Greg Logan
Hi Francois, We have the backend (REST endpoints) and frontend (javascript, html) being served from the same Karaf instance yes. We're running an nginx instance in front of the demo servers, however I've experienced this connecting directly to Karaf, so I'm going to guess that doesn't affect anyt

Re: REST routing issue

2019-02-19 Thread Greg Logan
Hi JB, An example built tarball lives in http://build.opencast.org/builds/r6.x/, or you can take a look at the contents of https://github.com/opencast/opencast/tree/r/6.x/etc. As far as I know we're not entering any special redirections. The demo servers have nginx running in front of Karaf but

Re: Modular graphic interface

2019-02-19 Thread Weirig, Alex
Hello, if you want to stick with Java, you can have a look at the Vaadin Framework. Vaadin 8 was/is pure Java. With the newer versions you can also use webcomponents. You can create modular UIs where even individual parts of the UI can be OSGi modules. --- Mat frëndleche Gréiss, Mit fre

Re: Karaf - AMQ Borker startup

2019-02-19 Thread ggerla
Ok, thanks I created a thread that is started from the activator. This thread check the connection to the broker and ends when the connection is ok. I don't like very much this solution, but it works for now. What do you think to add a service registration after the broker is started? I mean in

Re: Karaf - AMQ Borker startup

2019-02-19 Thread Jean-Baptiste Onofré
It's not exactly what you want I guess, but pretty close: https://github.com/apache/karaf/blob/master/itests/test/src/test/java/org/apache/karaf/itests/JmsTest.java Basically, you can try to open a ServerSocket on the transport connector port to check if it's bound or not. You can do that in the

Re: Karaf - AMQ Borker startup

2019-02-19 Thread ggerla
Ok JB can you give me the name of the test inside karaf itest to check what I have to do? -- Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Re: Karaf - AMQ Borker startup

2019-02-19 Thread Jean-Baptiste Onofré
Hi, I think the most reliable is to check the transport connector then. Regards JB On 19/02/2019 16:14, ggerla wrote: > jbonofre wrote >> The broker itself is not registered as an OSGi service (I can do the >> improvement). > > This would be nice. I think that this is the best way to be sure th

Re: Karaf - AMQ Borker startup

2019-02-19 Thread ggerla
jbonofre wrote > The broker itself is not registered as an OSGi service (I can do the > improvement). This would be nice. I think that this is the best way to be sure that the broker is started. jbonofre wrote > You should check the blueprint container service associated with the > broker. This

Re: Karaf - AMQ Borker startup

2019-02-19 Thread Jean-Baptiste Onofré
The broker itself is not registered as an OSGi service (I can do the improvement). You should check the blueprint container service associated with the broker. Another option is to use a ConfigListener on org.apache.activemq.server factory. Regards JB On 19/02/2019 14:32, ggerla wrote: > Hi JB

Re: Karaf - AMQ Borker startup

2019-02-19 Thread ggerla
Hi JB I think that the right solution is to use ServiceTracker. The problem is that I didn't find which is the service name/interface to track. In the ActiveMQServiceFactory there are no service registrations Thanks Giuseppe -- Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f9

Re: how to change log42.xml configuration from karaf command

2019-02-19 Thread Jean-Baptiste Onofré
Hi Munish, log4j2 backend with pax-logging doesn't mean you have to use XML configuration format. Using config.file with XML has two limitations: 1. It doesn't reload automatically when you change the XML, you have to reload pax logging 2. You can't change the XML directly using config:* commands

how to change log42.xml configuration from karaf command

2019-02-19 Thread munishgupta.asr
Hi, Earlier with Log4J, we used to change "org.ops4j.pax.logging.cfg" for changing any configuration like compression etc by using karaf commands. config:edit org.ops4j.pax.logging property-set config:update with Log4J2, now entire configuration is in log4j2.xml and org.ops4j.pa

Re: Karaf - AMQ Borker startup

2019-02-19 Thread Jean-Baptiste Onofré
Hi Giuseppe, let me find some snippets (or do it ;)) for you. Regards JB On 19/02/2019 12:22, ggerla wrote: > Hi JB > Cool. I'm interested to first 2 solutions. > > Can you give me more details or URL to guide pages where I can find more > information? > > > Thanks > Regards > Giuseppe > >

Re: Karaf - AMQ Borker startup

2019-02-19 Thread ggerla
Hi JB Cool. I'm interested to first 2 solutions. Can you give me more details or URL to guide pages where I can find more information? Thanks Regards Giuseppe -- Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Re: Karaf - AMQ Borker startup

2019-02-19 Thread Jean-Baptiste Onofré
Hi Giuseppe, there's different ways: 1. You can use feature and define the broker feature as prerequisite=true. Then the broker feature will be installed before others. 2. You can use a ServiceTracker to listen for the broker service. 3. You can also test if the transport connector is bound (it

Re: Moving to JDK 11

2019-02-19 Thread Michal Hlavac
can confirm that with CXF 3.3.0 it works! thanks, m. On nedeľa 20. januára 2019 19:14:45 CET Michal Hlaváč wrote: one thing to mention is, that it works using Java 1.8 On Fri, Jan 18, 2019 at 1:39 PM Jean-Baptiste Onofré wrote: Hi Michal, There's a couple of fix coming in CXF 3.2.8. Let

Karaf - AMQ Borker startup

2019-02-19 Thread Giuseppe Gerla
Hi guys I have a problem with amq broker. My bundle try to connect to the broker, beofre it is started. How can I check programatically that the broker is started? There is an OSGi service for the broker, so I can use a tracker? Thanks regards Giuseppe

Re: Modular graphic interface

2019-02-19 Thread Jean-Baptiste Onofré
Hi, I know Yupiik is using Angular (deployed in Karaf) with Karaf backend. It's quite module as each part of the whole application is an Angular bundle. Maybe it's possible to do that same with other frameworks. Regards JB On 19/02/2019 10:23, LuisLo wrote: > Hi all. > > Currently my company h

Modular graphic interface

2019-02-19 Thread LuisLo
Hi all. Currently my company has a production system based on karaf. The system is quite dynamic and the client requests new functionalities periodically, some of which should not be deployed in all sites. Thanks to Karaf we have elegantly solved, through "features", the part of business logic, so