Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Multiple EntryPoints with multiple IApplications
icon5.gif  Multiple EntryPoints with multiple IApplications [message #1698732] Wed, 17 June 2015 14:00 Go to next message
Laszlo Orban is currently offline Laszlo OrbanFriend
Messages: 5
Registered: June 2015
Junior Member
Hi,

I'm very new to RAP, so sorry if I ask a stupid question... Rolling Eyes

I have a RAP application which can be accessed on specific URL. The entrypoint is defined in the fragment.xml like this:
<extension
	id="mainapp.entrypoints"
	point="org.eclipse.rap.ui.entrypoint">
		<entrypoint
			path="/xyz1"
			applicationId="asdf.rap.mainapp"
			id="mainapp.entrypoint">
		</entrypoint>
</extension>

so lets say I can access my app 127.0.0.1:34567/xyz1

This entryPoint is linked to an IApplication implementor like this:
<extension
	id="asdf.rap.mainapp"
	point="org.eclipse.core.runtime.applications">
		<application
			thread="main"
			cardinality="singleton-global" visible="true">
			<run class="mypackage.Application"/>
		</application>
</extension>


I need another url path to be defined where this application can get special http requests and I need a service handler to handle all those requests on that url.

For this I guess first I need to define a new entrypoint in the fragment.xml with a different path (path="/xyz2"), but how can I achieve what I want?

For example If I type this to the browser:

127.0.0.1/xyz2?attr1=value1&attr2=value2

Is there a way to somehow simply tell the app that every request comes to this URL should be handled by a different http ServiceHandler?

I hope my question is clear, i was in a hurry... Confused Thanks for the answers in prior.
Re: Multiple EntryPoints with multiple IApplications [message #1698817 is a reply to message #1698732] Thu, 18 June 2015 07:23 Go to previous messageGo to next message
Aleksander   is currently offline Aleksander Friend
Messages: 44
Registered: May 2014
Location: France
Member
Hi, what you are looking for are servlets, have a look here : https://wiki.eclipse.org/RAP/FAQ#How_to_access_a_RAP_application_without_specifying_a_servlet_name.3F

There are other solutions but this is the most straight forward.
icon14.gif  Re: Multiple EntryPoints with multiple IApplications [message #1698833 is a reply to message #1698817] Thu, 18 June 2015 09:20 Go to previous message
Laszlo Orban is currently offline Laszlo OrbanFriend
Messages: 5
Registered: June 2015
Junior Member
Big thanks mate, it looks it could be a solution to my problem!

cheers Cool
Previous Topic:Scrollpane paint problem with RAP 3.0 RC3
Next Topic:Tooltips on the FileUpload button
Goto Forum:
  


Current Time: Fri Apr 26 07:02:38 GMT 2024

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

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

Back to the top