54 lines
2.7 KiB
XML
54 lines
2.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
~~~~~~licensing~~~~~~
|
|
system-commons
|
|
==========
|
|
Copyright (C) 2020 - 2026 EmDev LLC
|
|
==========
|
|
You may not use this file except in accordance with the License Terms of the Copyright
|
|
Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
|
rights to the Software and any copies are the property of the Copyright Holder. Unless
|
|
it is explicitly allowed the Copyright Holder, the User is prohibited from using the
|
|
Software for commercial purposes to provide services to third parties.
|
|
|
|
The Copyright Holder hereby declares that the Software is provided on an "AS IS".
|
|
Under no circumstances does the Copyright Holder guarantee or promise that the
|
|
Software provided by him will be suitable or not suitable for the specific purposes
|
|
of the User, that the Software will meet all commercial and personal subjective
|
|
expectations of the User, that the Software will work properly, without technical
|
|
errors, quickly and uninterruptedly.
|
|
|
|
Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
|
to the User for any direct or indirect losses of the User, his expenses or actual
|
|
damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
|
or damage to data, property, etc.
|
|
~~~~~~/licensing~~~~~~
|
|
-->
|
|
|
|
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
|
|
xsi:schemaLocation="
|
|
http://www.osgi.org/xmlns/blueprint/v1.0.0 https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
|
|
">
|
|
|
|
<cm:property-placeholder persistent-id="ru.entaxy.esb" update-strategy="reload">
|
|
<cm:default-properties>
|
|
</cm:default-properties>
|
|
</cm:property-placeholder>
|
|
|
|
<bean id="artemisConnectionFactory" class="org.apache.activemq.artemis.jms.client.ActiveMQJMSConnectionFactory">
|
|
<argument index="0" value="${common.jms.url}"/>
|
|
<argument index="1" value="${common.jms.username}"/>
|
|
<argument index="2" value="${common.jms.password}"/>
|
|
</bean>
|
|
<bean id="pooledConnectionFactory" class="org.messaginghub.pooled.jms.JmsPoolConnectionFactory"
|
|
init-method="start" destroy-method="stop">
|
|
<property name="maxConnections" value="${common.jms.maxConnections}"/>
|
|
<property name="maxSessionsPerConnection"
|
|
value="${common.jms.maxSessionsPerConnection}"/>
|
|
<property name="connectionFactory" ref="artemisConnectionFactory"/>
|
|
</bean>
|
|
<service interface="javax.jms.ConnectionFactory" ref="pooledConnectionFactory"/>
|
|
</blueprint>
|