I'm just very very new on the OSGi world, and I'd like to ask for your help in this topic:
I've installed Apache Felix (1.0.4) and I want to be able to access a web service hosted in Felix, using a client application (outside Felix).
I've been doing some google searches, and after reading a lot (including apache mailing list), I believe that I need to use CXF inside Felix. And here comes my question.
How do I embed CFX inside Felix? How do I "bundelize" CFX so as to install it inside Felix? Is this what I have to do? I want to keep using Felix, but I want to publish a web service to the outside world. If this is the right approach, I don't have a clue how to do it.
I also thought that I could use ServiceMix Kernel.
The following page will certainly give you some informations and explain how to expose a web service. If you have any problem (the documentation may be slightly outdated), feel free to ping us on the ServiceMix mailing lists.
ApacheCon was really interesting this year! Recently, a lot of people have expressed a real interest in ServiceMix Kernel , our generic OSGi distribution for server side applications. We've been discussing moving this subproject into Apache Felix for several reasons: raise the visibility and awareness on ServiceMix Kernel attract a broader community Several Apache projects are planning to use ServiceMix Kernel as their container: this includes Apache James , Apache Directory and Apache ActiveMQ . The Apache Sling community is also willing to contribute to this effort along with some other groups like the OPS4J project. During this discussion, a name as been proposed by Jamie Goodyear: Apache Karaf . A carafe is a small container used for serving wine and other drinks (http://en.wikipedia.org/wiki/Carafe). In similarity to the name the Kernel allows applications to be more easily handled, and improves their characteristics (much like a bottle of wine left to breath in a dec...
Camel Endpoint DSL One of the new features of Camel 3.0 is an Endpoint DSL. This new API aims to provide a type safe replacement for the URLs that are used in Camel to designate the consumer or producer endpoints. These URLs provide 3 things: the scheme of the URL identifies the component to use, a unique name or id for the endpoint, and a set of parameters to customize the endpoint behavior. Here is an example of an FTP consumer endpoint definition: from( "ftp://foo@myserver?password=secret& recursive=true& ftpClient.dataTimeout=30000& ftpClientConfig.serverLanguageCode=fr" ) .to( "bean:doSomething" ); There are several drawbacks with such constructs : no type safety, bad readability and no simple completion. So we now use the meta model, which is currently extracted from the source using an annotation processor and written in various JSON files, to generate a fluent DSL for each endpoint. The same...
Over the past weeks, I spend some times load testing ServiceMix and ActiveMQ . I discovered two things: * ActiveMQ broker is currently single threaded for a given JMS connection. The main effect is that if you send messages from several threads on the same connection, all threads will be processing sequentially (well, not exactly, but they will all be processed by a single thread on the broker side). * ActiveMQ Resource Adapter does not pool sessions and producers: this means that sending a single message with Jencks using the JMS best practices in a J2EE environment (create a connection, create a session, create a producer, send, close all) will take three consecutive roundtrips to the JMS broker and is very CPU intensive for the broker (at least, when using JMX). The first problem is mainly apparent when using persistent messages and there are a few things than can be used to speed up things (see the LogicBlaze tuning guide for ActiveMQ). However these tuning tweaks are no...
Comments
I'm just very very new on the OSGi world, and I'd like to ask for your help in this topic:
I've installed Apache Felix (1.0.4) and I want to be able to access a web service hosted in Felix, using a client application (outside Felix).
I've been doing some google searches, and after reading a lot (including apache mailing list), I believe that I need to use CXF inside Felix. And here comes my question.
How do I embed CFX inside Felix? How do I "bundelize" CFX so as to install it inside Felix? Is this what I have to do?
I want to keep using Felix, but I want to publish a web service to the outside world.
If this is the right approach, I don't have a clue how to do it.
I also thought that I could use ServiceMix Kernel.
Thanks for your help.
Regards,
j.
Cheers,
j.