Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » The other side of the server-side coin
The other side of the server-side coin [message #63611] Thu, 16 March 2006 22:25 Go to next message
Eclipse UserFriend
Originally posted by: bhunt.online.mac.com

I've just started reading about the new OSGi server-side work, and it
looks interesting. It appears that you are looking at embedding OSGi
inside a container - do I understand this correctly? Has anyone
considered the other side of the coin - creating a container as a
plugin? it seems that there could be a framework of server-side
services that would operate at a higher level outisde a web container
or an EJB container.

For example, I could imagine a generic RSP (Rich Server Platform) with
tooling in the Eclipse IDE that could connect to the RSP and deploy
plugins. I might create a plugin with a task extension point. The
plugin would execute the task extensions at user specified times (think
cron). Other developers could crete plugins that extended that task
extension point and simply deploy their plugins for execution.

Just my $0.02

Bryan
Re: The other side of the server-side coin [message #63634 is a reply to message #63611] Thu, 16 March 2006 23:03 Go to previous messageGo to next message
Harald Niesche is currently offline Harald NiescheFriend
Messages: 23
Registered: July 2009
Junior Member
Bryan Hunt wrote:
> I've just started reading about the new OSGi server-side work, and it
> looks interesting. It appears that you are looking at embedding OSGi
> inside a container - do I understand this correctly? Has anyone
> considered the other side of the coin - creating a container as a
> plugin? it seems that there could be a framework of server-side
> services that would operate at a higher level outisde a web container or
> an EJB container.

There is the OSGi HttpService that implements something like a servlet
container. Several implementations are available, one is based on Jetty,
so you might say this has been considered.

I believe the whole point of the embedding efforts to be that you no
longer have to care where your bundle will be deployed -- you can deploy
it as part of some web application, in a rich client or in some embedded
server application, the bundle won't have to know.

> For example, I could imagine a generic RSP (Rich Server Platform) with
> tooling in the Eclipse IDE that could connect to the RSP and deploy
> plugins. I might create a plugin with a task extension point. The
> plugin would execute the task extensions at user specified times (think
> cron). Other developers could crete plugins that extended that task
> extension point and simply deploy their plugins for execution.

I am not sure, but someone may already be working on IDE support for
provisioning. Manageability is one of the goals of the OSGi platform.

And for your 'cron' service, an implementation based on (declarative)
services might be nicer, as it would allow you to add tasks dynamically
without installing any bundles (I believe extension points are only
parsed on framework startup / bundle installation, please correct me if
I am wrong).

In the discussions about the OSGi server-side stuff, several people
mentioned that a higher-level application model like the RCP model would
be needed, so I think your ideas on this subject will be very welcome.

Harald
Re: The other side of the server-side coin [message #63657 is a reply to message #63634] Thu, 16 March 2006 23:38 Go to previous messageGo to next message
Erkki Lindpere is currently offline Erkki LindpereFriend
Messages: 90
Registered: July 2009
Member
This whole OSGi in the container thing seems very interesting to me, and
it would be great to deploy for example BIRT in a web app as it is,
without requiring it's own "platform" or plugin loading mechanism, but
just standard OSGi.

But there's one thing that concerns me: how (if at all) is scalability
addressed? I have only read parts of the OSGi spec, and haven't really
taken a look at all this that has been discussed in this newsgroup
lately, but based on what I know, OSGi doesn't seem to handle
scalability very well?
Re: The other side of the server-side coin [message #63679 is a reply to message #63611] Fri, 17 March 2006 01:43 Go to previous messageGo to next message
Patrick Mueller is currently offline Patrick MuellerFriend
Messages: 15
Registered: July 2009
Junior Member
Bryan Hunt wrote:
> I've just started reading about the new OSGi server-side work, and it
> looks interesting. It appears that you are looking at embedding OSGi
> inside a container - do I understand this correctly? Has anyone
> considered the other side of the coin - creating a container as a
> plugin? it seems that there could be a framework of server-side
> services that would operate at a higher level outisde a web container or
> an EJB container.

Running a container as a bundle is a nice development time story, as you
can then do a launch via an equinox launch, instead of having to deploy
your plugins inside a container's web app and deal with that. I've got
a not-completely-kosher-servlet-wise Jetty launch for some servlet work
I do now, that's good enough for me, and the launch time is a couple of
seconds. Very nice compared to having to having to deal with a real
container, external to the IDE (even nicer that WTP, for me anyway).

Ideally, such a story could dovetail with the servlet bridge, so you
could do your final deployment that way, but all your development work
with the 'container in a bundle' story.

I suppose the best answer would be to see if the HttpService in OSGi
would serve this purpose. It might. Kill two birds with one stone: get
the HttpService implemented in equinox OSGi, and create a usable
development environment for folks planning on deploying under the
servlet bridge.

Note that I'm assuming equinox doesn't already implement the
HttpService; otherwise you could already do this, or something close.

--
Patrick Mueller - pmuellr@yahoo.com

Oblique Strategies: Accretion
Re: The other side of the server-side coin [message #63701 is a reply to message #63611] Fri, 17 March 2006 18:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eishays.us.ibm.com

Bryan Hunt wrote:
> plugin? it seems that there could be a framework of server-side
> services that would operate at a higher level outisde a web container or
> an EJB container.
We discussed it a bit in this thread:
http://dev.eclipse.org/newslists/news.eclipse.technology.equ inox/msg01389.html

See this link to get a notion of what people are trying to do with it:
http://mail-archives.apache.org/mod_mbox/geronimo-dev/200510 .mbox/%3COFAB51AAE4.7B57413E-ON802570A5.003B2969-802570A5.00 3F83BB@uk.ibm.com%3E
And you can see some trials the Geronimo team are doing here:
http://cvs.codehaus.org/viewrep/xbean/trunk/osgi/src/main/ja va/org/xbean/osgi
http://cvs.codehaus.org/viewrep/~raw,r=166/xbean/trunk/osgi/ src/test/java/org/xbean/osgi/OSGiTest.java

If they indeed will have Geronimo based on equinox, then it will be easy
to have a GBean as an OSGi Bundle.
Until then, it might be easier to have the OSGi bridge contained in a
GBean. This way we'll have an OSGi container side be side with the other
container (all the container in Geronimo are actually GBeans).

Eishay
Re: The other side of the server-side coin [message #63724 is a reply to message #63657] Sat, 18 March 2006 01:53 Go to previous messageGo to next message
Harald Niesche is currently offline Harald NiescheFriend
Messages: 23
Registered: July 2009
Junior Member
Erkki Lindpere wrote:
> This whole OSGi in the container thing seems very interesting to me, and
> it would be great to deploy for example BIRT in a web app as it is,
> without requiring it's own "platform" or plugin loading mechanism, but
> just standard OSGi.
>
> But there's one thing that concerns me: how (if at all) is scalability
> addressed? I have only read parts of the OSGi spec, and haven't really
> taken a look at all this that has been discussed in this newsgroup
> lately, but based on what I know, OSGi doesn't seem to handle
> scalability very well?

You are right: OSGi isn't about scalability, or replication services.
But it doesn't keep you from replicating things, I find it supports it
rather nicely. We have built an application on top of an embedded OSGi
framework that runs distributed across several machines.

OSGi actually helped doing it, because by reducing the coupling between
service use and implementations it made the services easier to distribute.

Harald
Re: The other side of the server-side coin [message #63747 is a reply to message #63679] Sat, 18 March 2006 07:35 Go to previous message
Harald Niesche is currently offline Harald NiescheFriend
Messages: 23
Registered: July 2009
Junior Member
Patrick Mueller wrote:
> Ideally, such a story could dovetail with the servlet bridge, so you
> could do your final deployment that way, but all your development work
> with the 'container in a bundle' story.

You might want to test your code in the container every now and then ...

> I suppose the best answer would be to see if the HttpService in OSGi
> would serve this purpose. It might. Kill two birds with one stone: get
> the HttpService implemented in equinox OSGi, and create a usable
> development environment for folks planning on deploying under the
> servlet bridge.
>
> Note that I'm assuming equinox doesn't already implement the
> HttpService; otherwise you could already do this, or something close.

There already is an HttpService in Equinox, but it only supports the
servlet API 2.1 and no JSPs or redirects between different HttpContext
instances ... at least unless you use a patched version of the
HttpService(*) and the JasperBundle(**).


Harald

*: see http://osxa.org/wiki/DemoDownload
**: http://osxa.org/wiki/JasperBundle
Previous Topic:org.eclipse.equinox.servlet.bridge.launcher config.ini in HEAD references a new project I can't find
Next Topic:Platform
Goto Forum:
  


Current Time: Fri Apr 26 06:14:53 GMT 2024

Powered by FUDForum. Page generated in 0.02596 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top