Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Chane contextPath programmatically
Chane contextPath programmatically [message #892619] Thu, 28 June 2012 14:21 Go to next message
Eclipse User
Hi,

ist it possible to customize the context path "..../rap"
programmatically and not with a branding when using a workbench?

We need to make this settable through a propertiese file so that our
customers can change this to their needs without writing plugins/fragment...

Regards,
Markus
Re: Chane contextPath programmatically [message #892711 is a reply to message #892619] Fri, 29 June 2012 06:02 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf Sternberg
Messages: 1290
Registered: July 2009
Senior Member

Hi,

the context path is what comes before the servlet path and is usually
set at deployment time (e.g. derived from war file name):

http://hostname/context/servlet

If you're talking about the servlet path, for workbench applications,
this can only be set in a branding extension, or in 1.5, directly in an
entrypoint extension. I think it should be possible to add extensions
programmatically...

Regards, Ralf

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Chane contextPath programmatically [message #893107 is a reply to message #892711] Mon, 02 July 2012 12:10 Go to previous messageGo to next message
Eclipse User
Am 29.06.2012 12:02, schrieb Ralf Sternberg:
> Hi,
>
> the context path is what comes before the servlet path and is usually
> set at deployment time (e.g. derived from war file name):
>
> http://hostname/context/servlet
>
> If you're talking about the servlet path, for workbench applications,
> this can only be set in a branding extension, or in 1.5, directly in an
> entrypoint extension. I think it should be possible to add extensions
> programmatically...
>
> Regards, Ralf
>

Hi Ralf,

Yes, I was talking about the servlet path.

I tried adding the extension programmatically in my Activator, but The
problem is, that RAP is reading the extensions the
WorkbenchApplicationConfigurator called by the HttpServiceTracker.
So registering the extension in my Activators start method seems to be
too late. Any other suggestions?

Regards,
Markus
Re: Chane contextPath programmatically [message #893433 is a reply to message #893107] Wed, 04 July 2012 03:26 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf Sternberg
Messages: 1290
Registered: July 2009
Senior Member

Hi Markus,

you could try to add a branding in a bundle that has a lower start level
than rap.ui. This bundle must not have a dependency to rap.ui, but since
the branding is plain declaration, it could work - it's an ugly
workaround however. Feel free to open an enhancement request.

Best regards,
Ralf


--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Chane contextPath programmatically [message #897501 is a reply to message #893433] Tue, 24 July 2012 06:09 Go to previous message
Eclipse User
Heres the enhancement request
https://bugs.eclipse.org/bugs/show_bug.cgi?id=385832

Am 04.07.2012 09:26, schrieb Ralf Sternberg:
> Hi Markus,
>
> you could try to add a branding in a bundle that has a lower start level
> than rap.ui. This bundle must not have a dependency to rap.ui, but since
> the branding is plain declaration, it could work - it's an ugly
> workaround however. Feel free to open an enhancement request.
>
> Best regards,
> Ralf
>
>
Previous Topic:Deploying on RAP 1.5
Next Topic:Single sourced app in JBoss AS 7
Goto Forum:
  


Current Time: Tue Jul 29 06:42:39 EDT 2014

Powered by FUDForum. Page generated in 0.02036 seconds