On 8/27/2015 12:39 AM, hsinchen wrote:
For a consumer bundle to access the provider bundle within a JVM, the
performance should be better than the two standalone (consumer and provider)
applications deployed in two JVMs with SOAP or REST. With DOSGi (Remote
OSGi) by CXF, it goes with SOAP or REST, too. Then, the performance is the
same just like the two standalone applications with SOAP or REST. Is it
right? If yes, any of ways to get better performance near the same JVM.
One way to go is to create your app using the OSGi Remote Services/RSA
specification, and use an appropriate distribution provider (or even
create your own provider if your needs dictate). As an example, ECF's
RSA implementation currently has the following distribution providers:
1) tcp/socket-based (generic)
2) socket/websocket-based (rosgi)
3) JMS (all protocols)
4) Jax-RS
5) MQTT
6) Hazelcast
7) Custom
Each of these have different performance characteristics, based upon
what transports are being used, but all of them implement the OSGi R6
RSA specification. Another advantage of such an approach is the ability
to use different distribution systems for development, testing, and
deployment (perhaps into different environments) without modifying the
application.
Scott
[1] https://wiki.eclipse.org/ECF