Equinox and Tomcat [message #73197] |
Sat, 16 September 2006 17:00 |
Eclipse User |
|
|
|
Originally posted by: ridcully560.yahoo.com
Hello,
I'm trying to understand how to develop applications with equinox
running on a tomcat webserver for a while now.
First of all, my idea for the whole application: I thougt of my
application as one main-application-plugin which handles requests
in servlets and forwards them to JSPs (that one is existing already, so
I have to keep it that way). I want to use plugins to add functionalty
to this application, and there will probably also be servlets and JSPs
in this plugins. I thought about registering the plugin-servlets with
the equinox-framework and then let the main-application check for new
servlets, so that it can forward to these new functionaly. Also I need
to make some of the services (not OSGi, but database-access for example)
available to the plugins, too. I thought about building some kind of
OSGi-Service Wrapper(?) to register them with the framework and make
them available. I hope I'm on the right way there? By now I'm just
playing around with some very small examples to learn how to connect
plugins.
Some things I don't understand:
1) bridge.war or integrated in one plugin?
As far as I understand it both seems to be possible. The example on the
Eclipse-Equinox-website tells me to first deplay the bridge war and then
use this to install other plugins and so makes it possible to connect
them. Another example on
(http://www.infonoia.com/en/content.jsp?d=inf.05.09) seems to integrate
the /platform-directory directly into their "main-application". Are
those two ways equal?
2) Running it on a tomcat.
I managed to run my plugins under the equinox-framework in
eclipse (Run As -> Equinox Framework). But that also means that I'm not
able to really let them run, as I can't use the servlets and JSPs. So
until now I can only check if they are installed and running, which is
no problem as eclipse does everything for me. But I don't see how I get
it all on the tomcat (seems to be quite connected to question 1)). Simon
mentioned something about an embedded HttpService from OSGi, but I think
I didn't understand that.
Would be glad about some help and hints,
Johannes
|
|
|
Re: Equinox and Tomcat [message #73234 is a reply to message #73197] |
Mon, 18 September 2006 20:19 |
Eclipse User |
|
|
|
Originally posted by: simon.kaegi.cognos.com
> 2) Running it on a tomcat.
> I managed to run my plugins under the equinox-framework in
> eclipse (Run As -> Equinox Framework). But that also means that I'm not
> able to really let them run, as I can't use the servlets and JSPs. So
> until now I can only check if they are installed and running, which is no
> problem as eclipse does everything for me. But I don't see how I get it
> all on the tomcat (seems to be quite connected to question 1)). Simon
> mentioned something about an embedded HttpService from OSGi, but I think I
> didn't understand that.
Hi Johannes,
We're currently embedding Tomcat and using it to serve "Help/User
Assistance" content however, it does not expose an OSGi Http Service which
is what you need. To get a basic OSGi HttpService that you can use with (Run
As -> Equinox Framework) download and install the org.eclipse.equinox.http
and org.eclipse.equinox.servlet.api bundles from
http://download.eclipse.org/eclipse/equinox/drops/R-3.2-2006 06291905/index.php
-Simon
|
|
|
Powered by
FUDForum. Page generated in 0.03936 seconds