Customize build of Java WAR for different customers using same code base

428
March 16, 2017, at 04:05 AM

We have a code base for a Java EE application that is customized for different customers. The customization is realized at runtime. The application is bootstrapped by a factory class that reads the configuration parameters from JNDI, detects the customer and builds the customized components.

One drawback of this approach is that the application always contains the code for all customers (e. g. label files for different customers, where a button is labeled for customer A as "Decline" and for customer B as "Reject", but also parts with customer-specific logic).

Another drawback is that customer A can use customer B's configuration parameters and use the application version designed for customer B.

Is it possible to set the customer during build time and not at runtime? The result of each build should be some our-app-customer-X.war Our build system is maven.

Rent Charter Buses Company
READ ALSO
Java applet silently fails to run on Firefox and Chromium

Java applet silently fails to run on Firefox and Chromium

I'm trying to test my first appletI've uploaded the jar file, and an index

438
Java Socket: data is not transfered

Java Socket: data is not transfered

I am new to the socket programmingI'd like to read data from local files and send it to the server by the socket

466
IBM Websphere 8.5 not adding web container custom properties to System

IBM Websphere 8.5 not adding web container custom properties to System

according to the IBM WAS documentation I have read, any custom properties added to the web container will appear in the Java SystemgetProperties() collection

457
How to iterate through Hashmap with one key and many values

How to iterate through Hashmap with one key and many values

Good day, I have HashMap<String, Set<String>> and I want to get the values inside the Set one by oneI have this method for getting the phone numbers of a certain person now but the problem is it returns all the values in one print

430