[midPoint] Use of constants in systemConfiguration object?
Ivan Noris
ivan.noris at evolveum.com
Tue Dec 10 10:33:23 CET 2019
Hi Fréderic,
as a matter of fact, both config.xml and System configuration have some
advantages and disadvantages. For example any change in config.xml
requires midpoint restart, which is not the case for System
configuration. Also in case of multi-node deployment, any change in
config.xml must be done in all nodes, while change of System
configuration is repository-centric.
And you can always preconfigure your System configuration using
post-initial configuration so that it will be loaded when midPoint is
started for the very first time.
Best regards,
Ivan
On 10. 12. 2019 10:20, Frédéric Lohier wrote:
> Hello Pavol,
>
> Thank you, got it!
> This would be very useful to customize deployment information from the
> config.xml file using constants.
>
> -Frederic
>
>
> On Tue, Dec 10, 2019, 09:26 Pavol Mederly <mederly at evolveum.com
> <mailto:mederly at evolveum.com>> wrote:
>
> Hello Fréderic,
>
> oh, I've found this message right now. :) As I wrote, this could -
> eventually - work but it's not supported right now.
>
> Best regards,
>
> Pavol Mederly
> Software developer
> evolveum.com <http://evolveum.com>
>
> On 09/12/2019 14:21, Frédéric Lohier wrote:
>>
>> Hello,
>>
>>
>>
>> I am trying to make use of the constants as described here, but
>> the systemConfiguration object doesn’t resolve the constant.
>>
>>
>>
>> In midpoint.home/config.xml I have the following :
>>
>>
>>
>> <configuration>
>>
>> <midpoint>
>>
>> <constants>
>>
>> <orgName>Example, Inc.</orgName>
>>
>> </constants>
>>
>> </midpoint>
>>
>> </configuration>
>>
>>
>>
>> And in systemConfiguration object I have the following :
>>
>>
>>
>> <systemConfiguration>
>>
>> <deploymentInformation>
>>
>> <customerName>
>>
>> <expression>
>>
>> <const>orgName</const>
>>
>> </expression>
>>
>> </customerName>
>>
>> </deploymentInformation>
>>
>> </systemConfiguration>
>>
>>
>>
>> Is it supposed to work in the systemConfiguration object ?
>>
>> My deployment is using Midpoint 4.0.1-dist
>>
>>
>>
>>
>> _______________________________________________
>> midPoint mailing list
>> midPoint at lists.evolveum.com <mailto:midPoint at lists.evolveum.com>
>> http://lists.evolveum.com/mailman/listinfo/midpoint
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com <mailto:midPoint at lists.evolveum.com>
> http://lists.evolveum.com/mailman/listinfo/midpoint
>
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint
--
Ivan Noris
Senior Identity Engineer
evolveum.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20191210/6f810308/attachment.htm>
More information about the midPoint
mailing list