Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » Multiple separate Scout applications in one tomcat installtion
Multiple separate Scout applications in one tomcat installtion [message #1848836] Mon, 20 December 2021 12:31 Go to next message
Nils Israel is currently offline Nils IsraelFriend
Messages: 72
Registered: May 2010
Member
Hi,
is it safe to host multiple Eclipse Scout applications with possibly different scout versions in one tomcat server?

Example:

http://localhost:8080/appA-server
http://localhost:8080/appA
http://localhost:8080/appB-server
http://localhost:8080/appB
http://localhost:8080/appC-server
http://localhost:8080/appC

Apache Proxy
https://some.hostname/appA proxy for http://localhost:8080/appA
https://some.hostname/appB proxy for http://localhost:8080/appB
https://appc.some.hostname/ proxy for http://localhost:8080/appC

I thought I read something about multiple app in one tomcat a while ago in this forum but I couldn't find it.

The idea is that we are using a few separate scout application which are only used by a couple of users and for the ease of administration I would like to put all of them on one server.
Thanks
Nils
Re: Multiple separate Scout applications in one tomcat installtion [message #1848838 is a reply to message #1848836] Mon, 20 December 2021 13:51 Go to previous messageGo to next message
Nils Israel is currently offline Nils IsraelFriend
Messages: 72
Registered: May 2010
Member
Hi,
I found the topic I had in mind:
https://www.eclipse.org/forums/index.php?t=msg&th=1085074&goto=1757878&#msg_1757878

In 2017 it was not recommended because of the Singleton SessionCookieStore. But Paolo also metions the intention of replacing the implementation with another one in the future.

It seems this was done with release 8.0

https://eclipsescout.github.io/7.0/release-notes.html#new-http-abstraction-layer-google-http-client-for-java
Quote:

For each Apache HTTP Client created using the org.eclipse.scout.rt.shared.http.ApacheHttpTransportFactory (by default each org.eclipse.scout.rt.shared.http.IHttpTransportManager using the Apache HTTP Client) their own org.eclipse.scout.rt.shared.http.ApacheMultiSessionCookieStore and org.eclipse.scout.rt.shared.http.proxy.ConfigurableProxySelector (see javadoc for detailed description and configurability) are created. These instances are therefore not registered globally for the java virtual machine anymore.


So I assume it is safe now. :)
Re: Multiple separate Scout applications in one tomcat installtion [message #1848841 is a reply to message #1848836] Mon, 20 December 2021 19:08 Go to previous message
Beat Schwarzentrub is currently offline Beat SchwarzentrubFriend
Messages: 207
Registered: November 2010
Senior Member
Hi Nils

Yes, this setup should work. I believe we run it for some of our internal test systems without problems. The app server will isolate the different webapps from each other, so even different Scout versions should not interfere with each other. The "cookie store" problem you dug out was indeed a problem in early scout versions, but has since been resolved. The only thing that you have to make sure is that each application has its own public URL (unique server name and/or context path). Otherwise, they might invalidate each other's http sessions.

Regards,
Beat
Previous Topic:Scout Application very Slow when 10+ Users are logged in
Next Topic:Login by Google Account
Goto Forum:
  


Current Time: Wed May 08 16:33:44 GMT 2024

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

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

Back to the top