Hi CUBA team,
This is my first time using CUBA and there are some confirmation I need before I start developing for my first CUBA project requested by me client. I have searched in google and forum and read but still a bit confused on some topics.
-
Multiple Databases (Tenant Database)
From other forum posts, I understand that CUBA is going to add features on Multiple Databases. I have some questions.
a. I will write a HR solution for my client. The client will offers HR solution to their existing customers. Their requirements are 1 webapp for multiple databases. The reason is said there are 100 customers with 100 databases (all entities are same across tenants) and there are 100 webapp.war then it will be very tedious to patch after fixing bugs or adding more features into the project. Will the promised Multiple Databases in another post’s summary caters my client’s requirement? Previously, we have a project to customize Liferay for Logistics modules and our client gone into Liferay Tenant Sharding with 400 databases. When the main Liferay Server boot up, it takes more than 2 hours. Although Liferay are using Hibernate but I think there must be some testing on this. May be implement it to connect only main DB or chosen DB, and connect only when the DB connection is requested from within eclipselink. -
Multiple Databases (Non-Tenant / Non-CUBA / Integration)
a. My client’s customers has Finger print devices and some databases in their server. My plan is to generate Entities from their Db and works inside CUBA. They have MsSQL, MySQL and some even .mdb (not sure CUBA can works on .mdb or not haha). I mean, if we have 3 Db in the project, 1 is type Pg, 1 is type My and 1 is type Ms. Will it be possible?
-
Because of some reason, we will implement portal either using CUBA MVC Portal or HTML5 + CSS + JavaScript. The website / portal will get data either from DataManager or JSON. I have an issue. Said Customer A login into portal (not necessary CUBA own MVC portal), instead of working inside portal, they want to use CUBA webclient, if we redirect them to the webclient address like http://www.abc.com:8089/app, they will need to login by typing user name and password. Is it possible to silent login and straight go to the main page with menu items? And better silent logout when customer close all firefox or close all chrome browser (doesn’t matter my portal has remember me on or not)
-
From the scaling manual, the middlewares will share webclient sessions and users of webclient will not logout if the webclient down. How about Portal. After I obtain Session Id from REST, I can operate on REST using &s=sessionid. Will user get error if 1 of the portal server is down? In addition, if the session info (either portal or webclient) is in middleware server C, if server C is down, will the session lost (causing either logout or errors on webclient or portal browser connection)?
-
Said I have 2 middleware server, 2 webclient server and 2 portal server. And I want to patch middleware, weblclient and portal with a new version. How do I operate so that customer is still operating while I am doing patching. Do I need to stop all server, patch and start all server?
-
I have a friend and he is also interesting on CUBA after he saw me hacking with samples projects. He asked is it possible to do all below steps in a script.
-
delete old temp folder, duplicate current project folder into temp folder
-
using temp folder, modify project property so that final war will have different file name (to be deployed into existing tomcat server before moving to new live server <<< I have another answered post asking about sharing same tomcat with multiple same project).
-
using temp folder, compile and create war
-
deploy war to server A, B, C …
-
modify config files and copy and paste to server A, B, C
I am not that good in scripting. Is scripting possible to perform above steps?
Thanks for helping up.