JCAPS 5.1.1 - Properties to modify jcd behaviour at runtime

I need to create jcds whose behaviour may be customized via runtime properties.

Currently, one possible way I found is to create one property file and access it via java code directly from within the jcd; this is nice because properties are modifiable at runtime, but needs some custom code to be added to the jcd and extrenal properties files to be mantained.

Anyone can suggest if there is a way to acheive similar functionalities, but using only JCAPS tools? For example Environment Variables or other ...

Thanks

Davide

[553 byte] By [damusa] at [2007-11-26 16:41:31]
# 1

Hi Davide,

I am glad you have mentioned Enviroment Variables because that is simple JCAPScompatible solution

Otherwise, what challenge are you trying to address? Do you want to change flow according to some conditions?

what is nature of this conditions? enviromental/behavioural/interaction?

I would think about this at first place, it could answer me how and from where this condition will arise.

Pegasa at 2007-7-8 23:08:32 > top of Java-index,Java Enterprise System,Java Composite Application Platform Suite -- General Discussion...
# 2

Hi,

the projects I run are very similar, and the most of times I can reuse the same projects, and in particular JCDs, by simply changing very little things.

Thus, I started creating JCDs whose behaviour can be a little bit customized to meet tha requirements of different installations. This way, on installation (and here is the scope), I only have to import a "standard" project and configure just some properties to adapt it to the peculiar needs of the customer.

Could the Environmental Variables be useful in this? I would be glad of this. By now I haven't found a way to read, from within a JCD, the value of environmental variables ...

damusa at 2007-7-8 23:08:32 > top of Java-index,Java Enterprise System,Java Composite Application Platform Suite -- General Discussion...