Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » any pointers on setting up a Tomcat/OSGI dev environemnt?
any pointers on setting up a Tomcat/OSGI dev environemnt? [message #128325] Wed, 01 April 2009 15:28 Go to next message
Craig Salter is currently offline Craig Salter
Messages: 169
Registered: July 2009
Senior Member
Hi

I'm just getting started on a project that involves using the OSGI servlet
bridge via Tomcat. I'm hoping to set up a development environment where I
can make changes to plugin code (e.g. html and js files) and have these
changes automatically published to the server (as we do with standard jee
apps). So far I haven't been successful .. and it seems I need to
stop/clean-out-cache/start Tomcat in order to test code changes.

Does anyone have tips, tricks or links that might help?
Re: any pointers on setting up a Tomcat/OSGI dev environemnt? [message #128338 is a reply to message #128325] Wed, 01 April 2009 16:21 Go to previous message
Simon Kaegi is currently offline Simon Kaegi
Messages: 381
Registered: July 2009
Senior Member
Hi Craig,

Unless your team requires access to functionality in the app server I would
suggest using Equinox's Jetty-based Http Service at dev time and run
embedded as you do for an RCP. Debugging is way easier and you get all the
automatic deployment and file updates you're wanting for free. You still
likely will have to put in some dev effort around using the servlet bridge
but for the most part it's something you use only at deployment time.

Now, with that said some teams have done what you're looking for by doing
all sorts of fancy things with "osgi.dev" to point at files in their
workspace but I unfortunately don't have any links to point you at. Perhaps
others can pipe in with their approaches... I know that the Jazz team has
some infrastructure in place to more tightly use the servlet bridge at dev
time, but I'm not sure if anyone has gone through the effort to make that
available in open source. I'll dig a bit there.

-Simon


"Craig Salter" <csalter@ca.ibm.com> wrote in message
news:2f51fa83c78d64b40150e63bab7eb12c$1@www.eclipse.org...
> Hi
>
> I'm just getting started on a project that involves using the OSGI servlet
> bridge via Tomcat. I'm hoping to set up a development environment where I
> can make changes to plugin code (e.g. html and js files) and have these
> changes automatically published to the server (as we do with standard jee
> apps). So far I haven't been successful .. and it seems I need to
> stop/clean-out-cache/start Tomcat in order to test code changes.
> Does anyone have tips, tricks or links that might help?
>
Previous Topic:[DS] Why is it necessary to activate bundles offering services?
Next Topic:[p2] no repository found
Goto Forum:
  


Current Time: Fri Aug 29 10:15:13 EDT 2014

Powered by FUDForum. Page generated in 0.02890 seconds