tmart
02-27-2010, 08:57 PM
It would be handy to allow some form of property value expansion/substitution at the AppLogic level. For example... sometimes the value of a property might need to be used in slightly different contexts. A property representing an external IP address might be used both for an "IN" firewall appliance as well as to construct absolute URLs prefixes somewhere within an application.
So - maybe we define a property named "WEB_IPADDR" of our application boundary; the property has the name "IN_ipaddr" and we give this some routable IP address as a value. We redirect the "IN" appliance's corresponding property to this value.
Now elsewhere in the app we might want to use the value of WEB_IPADDR as more than just its value. It would be handy for example to be able to construct compound property values for example by giving another component property the value "http://${WEB_IPADDR}/" or even something like "http://${WEB_IPADDR}/${URL_BASE_PATH}" and so on...
Perhaps my example isn't a beautiful one; however, I hope that you can imagine other uses.
Certainly all of these properties could be leveraged in shell scripts once the components are running; however, in complicated applications we have had to create many properties for components and something like this would help to reduce the complexity and chances for errors & typos.
-- Tim
So - maybe we define a property named "WEB_IPADDR" of our application boundary; the property has the name "IN_ipaddr" and we give this some routable IP address as a value. We redirect the "IN" appliance's corresponding property to this value.
Now elsewhere in the app we might want to use the value of WEB_IPADDR as more than just its value. It would be handy for example to be able to construct compound property values for example by giving another component property the value "http://${WEB_IPADDR}/" or even something like "http://${WEB_IPADDR}/${URL_BASE_PATH}" and so on...
Perhaps my example isn't a beautiful one; however, I hope that you can imagine other uses.
Certainly all of these properties could be leveraged in shell scripts once the components are running; however, in complicated applications we have had to create many properties for components and something like this would help to reduce the complexity and chances for errors & typos.
-- Tim