Hi Isomorphic,
I noticed the reference to a file project.properties during startup:
For what could this file be used?
Currently, I have a CustomerSettings.java like this:
The file is used clientside and serverside and modified by many <replaceregexp>-tags inside my ANT-script prior to compilation.
This works for me, but as I saw the log message I thought if it would be possible to have the same war-file/complied app for all tenants (only different server.properties and project.properties).
Could you explain what this file is for? Perhaps it can replace my CustomerSettings.java - at least for the serverside.
Best regards,
Blama
I noticed the reference to a file project.properties during startup:
Code:
=== 2014-08-27 14:07:17,097 [c-11] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework - Initializing === 2014-08-27 14:07:17,107 [c-11] INFO ConfigLoader - Attempting to load framework.properties from CLASSPATH === 2014-08-27 14:07:17,362 [c-11] INFO ConfigLoader - Successfully loaded framework.properties from CLASSPATH at location: jar:file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%207.0/webapps/myapp/WEB-INF/lib/isomorphic_core_rpc.jar!/framework.properties [B]=== 2014-08-27 14:07:17,362 [c-11] INFO ConfigLoader - Attempting to load project.properties from CLASSPATH === 2014-08-27 14:07:17,363 [c-11] INFO ConfigLoader - Unable to locate project.properties in CLASSPATH [/B]=== 2014-08-27 14:07:17,372 [c-11] INFO ConfigLoader - Successfully loaded isc_interfaces.properties from CLASSPATH at location: jar:file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%207.0/webapps/myapp/WEB-INF/lib/isomorphic_core_rpc.jar!/isc_interfaces.properties === 2014-08-27 14:07:17,372 [c-11] INFO ConfigLoader - Attempting to load server.properties from CLASSPATH === 2014-08-27 14:07:17,379 [c-11] INFO ConfigLoader - Successfully loaded server.properties from CLASSPATH at location: file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%207.0/webapps/myapp/WEB-INF/classes/server.properties === 2014-08-27 14:07:17,394 [c-11] INFO Logger - Logging system started. === 2014-08-27 14:07:17,399 [c-11] INFO ISCInit - Auto-detected webRoot - using: C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\myapp === 2014-08-27 14:07:17,402 [c-11] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework (v9.1p_2014-08-22/EVAL Deployment 2014-08-22) - Initialization Complete
Currently, I have a CustomerSettings.java like this:
Code:
public class CustomerSettings { public final static long customerTenantId = 0; public final static String customerName = "..."; public final static String customerUrl = "..."; public final static String customerImage = "..."; ... ... ...getters for these...
This works for me, but as I saw the log message I thought if it would be possible to have the same war-file/complied app for all tenants (only different server.properties and project.properties).
Could you explain what this file is for? Perhaps it can replace my CustomerSettings.java - at least for the serverside.
Best regards,
Blama
Comment