Making web application based on Eclipse? [message #247890] |
Tue, 01 June 2004 09:16  |
Eclipse User |
|
|
|
Originally posted by: lintonye.tometasoftware.com
Good day!
Well, we have Rich Client Platform in version 3.0 of Eclipse. How rich the
platform could be? :)
I am just wondering if we can make a web application based on Eclipse. That
is, it's based on RCP and can have the plug-in architecture. E.g. a
Java+Tomcat system which supports plug-ins and probably other features of
Eclipse platform?
Any ideas and discussions are welcomed.
Thanks
Linton
|
|
|
|
Re: Making web application based on Eclipse? [message #248304 is a reply to message #247890] |
Wed, 02 June 2004 06:31  |
Eclipse User |
|
|
|
"Linton" <lintonye@tometasoftware.com> wrote in message
news:c9hv59$is9$1@eclipse.org...
> Good day!
>
> Well, we have Rich Client Platform in version 3.0 of Eclipse. How rich
the
> platform could be? :)
>
> I am just wondering if we can make a web application based on Eclipse.
That
> is, it's based on RCP and can have the plug-in architecture. E.g. a
> Java+Tomcat system which supports plug-ins and probably other features of
> Eclipse platform?
>
Yes you can, but it's not a publicly supported use of Eclipse and therefore
will require a lot of determination to actually use. Eclipse currently
embeds the Tomcat app server in a plugin (it is used to host the help
system). You can create plugins that wrap web applications and then deploy
those application using the Eclipse-based Tomcat. Your web applications can
then take advantage of the Eclipse extension mechanism.
Warning: this uses non-public APIs.
-----------------------------------
Quick instrtructions:
Create a plugin that contains your web application (see the
org.eclipse.help.webapp plugin for an example). Create an instance of
IPlatformRunnable that will start your web application. When the
IPlatformRunnable is started deploy your web app via the
org.eclipse.help.internal.appserver.WebappManager class, like so:
WebappManager.start("rpc", "com.rpc.core.web", new Path("rpc"));
....in the statement above I have put my web application in a subdirectory
named "rpc". I am telling the WebappManager to map my application to the
"rpc" namespace in the web server, that my web application is in the
com.rpc.core.web plugins, and where my app is located within the plugin that
contains it.
Before your IPlatformRunnable shuts down do this to stop your web app:
WebappManager.stop("rpc");
ted stockwell
RPC Software
|
|
|
Powered by
FUDForum. Page generated in 0.03117 seconds