Fornax-Platform
Forum

Runtime hierarchical environment

View: New views
2 Messages — Rating Filter:   Alert me  

Runtime hierarchical environment

by PaloT :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

For now we have properties in:
    generated-spring.properties
and
    spring.properties

We have no per server properties. In our project we use also server
specific settings because every environment is different. For example
in tests you use another mail server than in production environemt ...
.
This should be implemented two ways:
a) Add "spring-${serverName}.properties" to PropertyConfigurer and
serverName have to be defined as startup parameter of java server via
-D option.
b) Add "${user.home}/.<PROJECTNAME>.properties"

Minuses:
- error is raised when property file doesn't exist
- error is raised when serverName isn't defined

Of course anybody can do this in more.xml or applicationContext.xml.
Should this be also useful for others in default setup?

Pavel

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Fornax-developer mailing list
Fornax-developer@...
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Re: Runtime hierarchical environment

by Patrik Nordwall :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I think it is a good idea, add it to jira backlogg, but it can wait a while. For now (1.7.0) it is possible to solve it with more.xml or SpecialCases.xpt.

I prefer alt a.

/Patrik
PaloT wrote:
For now we have properties in:
    generated-spring.properties
and
    spring.properties

We have no per server properties. In our project we use also server
specific settings because every environment is different. For example
in tests you use another mail server than in production environemt ...
.
This should be implemented two ways:
a) Add "spring-${serverName}.properties" to PropertyConfigurer and
serverName have to be defined as startup parameter of java server via
-D option.
b) Add "${user.home}/.<PROJECTNAME>.properties"

Minuses:
- error is raised when property file doesn't exist
- error is raised when serverName isn't defined

Of course anybody can do this in more.xml or applicationContext.xml.
Should this be also useful for others in default setup?

Pavel

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Fornax-developer mailing list
Fornax-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fornax-developer