Beans

Starting with IntegrationManager version 4.5.0, provisioned IM instances have been extended to allow the usage of defined Spring Beans through the "beans" folder.

The main motivation behind this feature is to enable the definition of beans that are specifically required by the IM components. For instance, beans such as aggregation components or JDBC data sources.

This feature is available only for provisioned IM instances and the whole maintenance is done currently only via a Git repository which is linked to an appropriate IM instance. Each change inside this folder requires a restart of IM.

If you use a placeholder, you need to change it to a different format. You can see an example bellow. #{environment['my-value']}

<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:pfx="http://www.pricefx.eu/schema/pfx" xmlns:util="http://www.springframework.org/schema/util" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd http://www.pricefx.eu/schema/pfx http://www.pricefx.eu/schema/pfx.xsd"> <pfx:loadMapper id="pfxSellerExtensionLoadMapper" includeUnmappedProperties="true"> <pfx:constant expression="test" out="name"/> </pfx:loadMapper> <util:list id="myList" value-type="java.lang.String"> <value>foo</value> <value>bar</value> </util:list> <bean id="myStringBean" class="java.lang.String"> <constructor-arg value="#{environment['my-value']}" /> </bean> </beans>

 

PlatformManager version 1.75.0