| Two RAP application in the SAME Virgo kernel [message #893908] |
Thu, 05 July 2012 19:15  |
Ronald So Messages: 198 Registered: April 2011 |
Senior Member |
|
|
Hello,
I have no problem running my RAP 1.5 application on Virgo 3.5.0_M3 thru Jetty. I may have a need to run a second RAP application (also based on 1.5) on the same kernel. Is this possible?
Thanks in advanced and I apologize if I am asking the obvious.
Ronald
|
|
|
|
| Re: Two RAP application in the SAME Virgo kernel [message #894103 is a reply to message #893974] |
Fri, 06 July 2012 12:22   |
Ronald So Messages: 198 Registered: April 2011 |
Senior Member |
|
|
I am a Virgo newbie so correct me if I make no sense on my answers. 
We are using Virgo Kernel with HttpService from Jetty and plain OSGi bundles. Right now we have all the RAP bundles in the PLAN file but we realize that we should really call out the RAP stuff and put them in an initial artifact. We are setting the port number in startup.sh (-Dorg.osgi.service.http.port=8080) but I think we should put this setting in a properties file under "lib" called "org.eclipse.virgo.kernel.launch.properties", right?
I was wondering if I can have two RAP applications that use different port numbers. But with the current setup, it seems that I can only set the port number in that properties file under "lib" and I am stuck.
Can you shed some lights on the first option you mention above by using WAB bundles?
Thanks so much for your help.
Ronald
[Updated on: Fri, 06 July 2012 12:23] Report message to a moderator
|
|
|
| Re: Two RAP application in the SAME Virgo kernel [message #894133 is a reply to message #894103] |
Fri, 06 July 2012 16:32   |
Florian Waibel Messages: 40 Registered: June 2010 |
Member |
|
|
Yes putting the VM argument to org.eclipse.virgo.kernel.launch.properties seems the better place.
It is possible to run multiple HttpServices on different ports but I personally think it would be easier to register different EntryPoints at different servlet paths on the same HttpService than hosting multiple HttpServices with one application each.
That's the same result as you would get with with one standalone servlet container and two war artifacts.
Regarding the WAB bundles: Maybe you can have a look at GitHUB github.com/fappel/RWT_SPRING
Hope this helps,
Florian
Here is a discussion about multiple HttpServices in the context of RAP. https://bugs.eclipse.org/bugs/show_bug.cgi?id=241210
[Updated on: Fri, 06 July 2012 16:34] Report message to a moderator
|
|
|
|
|
|
| Re: Two RAP application in the SAME Virgo kernel [message #898771 is a reply to message #894667] |
Fri, 27 July 2012 09:58   |
|
Hi,
I want to thank you for the tutorial on RWT/Virgo, I followed it and easily succeed .
For information, it also works with Virgo 3.5.0.RELEASE (but you have to put the http-service port on configuration/config.ini instead of the missing old launch config).
I'm a RAP beginner, so I wanted to ask you some questions:
* I wanted to know if it's also possible to integrate RAP ui & JFace (in Virgo) as easily as RWT?
* Also is server push (RAP way) is supported?
* How can I do to mimic extensions point (located in plugins.xml with equinox) with Virgo? I think this has to be done with an OSGI services (for example with spring-dm) but I'm not sure.
* Finally, what's the best way to make a dynamic RAP application (as you can do with snaps), is it possible without a 'super app' depending on all the RAP parts?
My best, Charlie
|
|
|
|
| Re: Two RAP application in the SAME Virgo kernel [message #909260 is a reply to message #899255] |
Thu, 06 September 2012 16:29  |
|
Hi,
I'm sorry Florian, I had'nt saw your answer.
Thank you for your answers, you're a man .
I tried to integrate JFace Databinding with Virgo (with osgi http services), but it complains about null realms. I think i've to deal with clustered web.xml conf :S.
Concerning the other points, (jface without db, asynccall, dynamic app...), I will test this once I will resolve the issue for sure 
My best,
Charlie
|
|
|
Powered by
FUDForum. Page generated in 0.01856 seconds