Skip to main content



      Home
Home » Eclipse Projects » Eclipse Scout » Two client apps +server app on single Tomcat
Two client apps +server app on single Tomcat [message #1822582] Tue, 10 March 2020 05:18 Go to next message
Eclipse UserFriend
Hello,

Is it possible to deploy two same client apps (only different war name) with same server war on single Tomcat instance?

For example I have one app. When i create war files for server and client, I want to rename client to ROOT. war and copy client with another name portal.war. Server name stays the same.

So I would have this on tomcat:
ROOT.war
portal.war
myapp.server.war

Why I need this?

ROOT.war is primary client application, and name is ROOT so I dont have suffix in URL.

portal.war is same client application, but I can access it in URL like myapp:8080/portal.

Then in app I would parse URL, to see if there is "portal" in suffix and create session for portal (client users), if there is no "portal" in URL I would create normal session for users.

The point is, that I want to have option for both users and clients to log in in application.

Now, my question is, Is this good way, can there be any problems with session, are there any steps I need to do additionaly?

Thank you
Re: Two client apps +server app on single Tomcat [message #1822988 is a reply to message #1822582] Tue, 17 March 2020 12:17 Go to previous message
Eclipse UserFriend
Hello Mr. Robot

I don't understand why you want to deploy exactly the same UI application on different URLs. Is it because "portal" and "root" users should have different permissions in the application?
Then you should work with the Permission concept of Scout (explained in the Scout Beginners Guide). The permissions are tied to a user (no matter from which URL the application has been started)
When you need to make the same application available under different URLs you should deploy the UI server only once and work with proxies on the network layer.

The usual setup for a Scout classic application is one backend-server and one UI-server. This works out-of-the-box. I guess it's possible to have more than one UI-server, but I'm sure you would have to deal with multiple problems to make it really work, which requires in-depth know-how of the Scout framework. So I would not recommend to try that.

Cheers,
André


Previous Topic:Table with data not visible on mobile device
Next Topic:DataSourceCredentialVerifier
Goto Forum:
  


Current Time: Mon Jul 14 01:21:21 EDT 2025

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

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

Back to the top