You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Richard Snowden <ri...@gmail.com> on 2014/09/17 09:12:17 UTC
Adding a Web Interface for a Legacy OSGi application
Hi all,
I have a question that is more of a general OSGi nature.
For a legacy application, that’s already running in an OSGi container, I’d
like to provide a Web Service interface.
- At the moment this application uses some non-standard, socket-based
protocol.
- It’s all pretty monolithic – all in one big bundle.
My first idea was to simply expose the functionality of this application as
an OSGi service and create a second bundle that consumes this OSGi service
and exposes it as a Web Service.
Does that sound reasonable? Not sure what the standard-approach is for such
use cases.
cheers,
Richard
Re: Adding a Web Interface for a Legacy OSGi application
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
Actually no such "standard" approach, :-)
However your approach sounds good to me, that said, has a webservice facade and your legacy application as a backend
-------------
Freeman(Yue) Fang
Red Hat, Inc.
FuseSource is now part of Red Hat
On 2014-9-17, at 下午3:12, Richard Snowden wrote:
> Hi all,
>
>
> I have a question that is more of a general OSGi nature.
>
>
> For a legacy application, that’s already running in an OSGi container, I’d like to provide a Web Service interface.
>
> - At the moment this application uses some non-standard, socket-based protocol.
>
> - It’s all pretty monolithic – all in one big bundle.
>
>
> My first idea was to simply expose the functionality of this application as an OSGi service and create a second bundle that consumes this OSGi service and exposes it as a Web Service.
>
>
> Does that sound reasonable? Not sure what the standard-approach is for such use cases.
>
>
> cheers,
>
> Richard
>
Re: Adding a Web Interface for a Legacy OSGi application
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Richard,
I did something similar implementing a Camel Marshaller component:
https://github.com/jbonofre/camel-mashup
This component browses a website and parses the HTML sources and
extracts data. These data can exposed as a WebService or whatever.
Regards
JB
On 09/17/2014 09:12 AM, Richard Snowden wrote:
> Hi all,
>
> I have a question that is more of a general OSGi nature.
>
> For a legacy application, that’s already running in an OSGi container,
> I’d like to provide a Web Service interface.
>
> - At the moment this application uses some non-standard, socket-based
> protocol.
>
> - It’s all pretty monolithic – all in one big bundle.
>
> My first idea was to simply expose the functionality of this application
> as an OSGi service and create a second bundle that consumes this OSGi
> service and exposes it as a Web Service.
>
> Does that sound reasonable? Not sure what the standard-approach is for
> such use cases.
>
> cheers,
>
> Richard
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com