release version 1.10.0
This commit is contained in:
@ -1,11 +0,0 @@
|
||||
# путь до рабочей директории для ignite, на каждой ноде своя
|
||||
ignite.work.directory.path=entaxy/uniform/ignite
|
||||
|
||||
# количество узлов, которые будут хранить данные(бэкапы) с этого узла,
|
||||
# нужен для корректной работы кластера,если данный узел упал
|
||||
# по умолчанию backups = 2
|
||||
ignite.backups=2
|
||||
# спектр адресов, которые занимает игнайт для образовния кластера
|
||||
# https://apacheignite.readme.io/docs/tcpip-discovery
|
||||
ignite.addresses=127.0.0.1:47500,127.0.0.1:47501
|
||||
|
@ -20,9 +20,5 @@ active.password=
|
||||
# валидация сообщения по wsdl
|
||||
active.validation=false
|
||||
|
||||
# uuid шины, для отправки в активном режиме в систему от имени шины
|
||||
bus.id=FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF
|
||||
get.destination=
|
||||
|
||||
# параметр для тестирования активного коннектора
|
||||
test.empty.rate=20
|
||||
test.empty.rate=20
|
||||
|
@ -3,7 +3,7 @@
|
||||
<parent>
|
||||
<groupId>ru.entaxy.esb.platform.runtime.modules</groupId>
|
||||
<artifactId>uniform-service</artifactId>
|
||||
<version>1.9.0</version>
|
||||
<version>1.10.0</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
@ -26,10 +26,10 @@
|
||||
!com.sun.xml.*,
|
||||
ru.entaxy.esb.system.common.aggregation,
|
||||
ru.entaxy.esb.system.core.common.error.handler.interceptor,
|
||||
ru.entaxy.esb.system.core.template,
|
||||
ru.entaxy.esb.system.profile.commons,
|
||||
ru.entaxy.esb.system.profile.commons.connectors.in,
|
||||
ru.entaxy.esb.system.profile.commons.connectors.out,
|
||||
<!-- ru.entaxy.esb.system.core.template,-->
|
||||
<!-- ru.entaxy.esb.system.profile.commons,-->
|
||||
<!-- ru.entaxy.esb.system.profile.commons.connectors.in,-->
|
||||
<!-- ru.entaxy.esb.system.profile.commons.connectors.out,-->
|
||||
javax.xml.bind;version="[2,3)",
|
||||
javax.xml.bind.annotation;version="[2,3)",
|
||||
javassist.util.proxy,
|
||||
@ -44,22 +44,20 @@
|
||||
<artifactId>xercesImpl</artifactId>
|
||||
<version>${xerces.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>ru.entaxy.esb.system.commons</groupId>
|
||||
<artifactId>system-commons</artifactId>
|
||||
<groupId>ru.entaxy.esb.platform.runtime.core</groupId>
|
||||
<artifactId>core-support-runtime-legacy</artifactId>
|
||||
<version>${project.version}</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>ru.entaxy.esb.system.registry.systems.profile</groupId>
|
||||
<artifactId>system-profile-api</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>ru.entaxy.esb.system.registry.systems.profile</groupId>
|
||||
<artifactId>system-profile-collector</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>ru.entaxy.esb.platform.runtime.core.objects-implementations.profile-implementation</groupId>
|
||||
<artifactId>profile-runtime-legacy-support</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.osgi</groupId>
|
||||
<artifactId>osgi.core</artifactId>
|
||||
@ -79,4 +77,22 @@
|
||||
<version>${commons-lang3.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.felix</groupId>
|
||||
<artifactId>maven-bundle-plugin</artifactId>
|
||||
<version>${maven-bundle-plugin.version}</version>
|
||||
<extensions>true</extensions>
|
||||
<configuration>
|
||||
<instructions>
|
||||
<Entaxy-Factory-Provider>true</Entaxy-Factory-Provider>
|
||||
<Entaxy-Resource-Provider>true</Entaxy-Resource-Provider>
|
||||
<Entaxy-Template-Provider>true</Entaxy-Template-Provider>
|
||||
</instructions>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
|
@ -1,83 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
~~~~~~licensing~~~~~~
|
||||
connector
|
||||
==========
|
||||
Copyright (C) 2020 - 2023 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"
|
||||
xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">
|
||||
|
||||
<!--template in connector-->
|
||||
<bean id="inActiveTemplate" class="ru.entaxy.esb.system.core.template.TemplateImpl">
|
||||
<property name="bundleContext" ref="blueprintBundleContext"/>
|
||||
<property name="templateName" value="uniform-service-active-in-connector"/>
|
||||
<property name="templateFileName" value="uniform-service-active-in-connector"/>
|
||||
<property name="params">
|
||||
<map>
|
||||
<entry key="period" value="1m"/>
|
||||
<entry key="username" value="admin"/>
|
||||
<entry key="password" value=""/>
|
||||
<entry key="endpointUrl" value=""/>
|
||||
<entry key="connectionTimeout" value="3000"/>
|
||||
<entry key="connectionMaxThreads" value="1"/>
|
||||
</map>
|
||||
</property>
|
||||
</bean>
|
||||
<service interface="ru.entaxy.esb.system.core.template.Template" ref="inActiveTemplate"/>
|
||||
|
||||
<!--template in connector-->
|
||||
<bean id="inPassiveTemplate" class="ru.entaxy.esb.system.core.template.TemplateImpl">
|
||||
<property name="bundleContext" ref="blueprintBundleContext"/>
|
||||
<property name="templateName" value="uniform-service-passive-in-connector"/>
|
||||
<property name="templateFileName" value="uniform-service-passive-in-connector"/>
|
||||
</bean>
|
||||
<service interface="ru.entaxy.esb.system.core.template.Template" ref="inPassiveTemplate"/>
|
||||
|
||||
<!--template out connector-->
|
||||
<bean id="outActiveTemplate" class="ru.entaxy.esb.system.core.template.TemplateImpl">
|
||||
<property name="bundleContext" ref="blueprintBundleContext"/>
|
||||
<property name="templateName" value="uniform-service-active-out-connector"/>
|
||||
<property name="templateFileName" value="uniform-service-active-out-connector"/>
|
||||
<property name="params">
|
||||
<map>
|
||||
<entry key="username" value="admin"/>
|
||||
<entry key="password" value=""/>
|
||||
<entry key="endpointUrl" value=""/>
|
||||
<entry key="connectionTimeout" value="3000"/>
|
||||
<entry key="connectionMaxThreads" value="1"/>
|
||||
</map>
|
||||
</property>
|
||||
</bean>
|
||||
<service interface="ru.entaxy.esb.system.core.template.Template" ref="outActiveTemplate"/>
|
||||
|
||||
<!--template out connector-->
|
||||
<bean id="outPassiveTemplate" class="ru.entaxy.esb.system.core.template.TemplateImpl">
|
||||
<property name="bundleContext" ref="blueprintBundleContext"/>
|
||||
<property name="templateName" value="uniform-service-passive-out-connector"/>
|
||||
<property name="templateFileName" value="uniform-service-passive-out-connector"/>
|
||||
</bean>
|
||||
<service interface="ru.entaxy.esb.system.core.template.Template" ref="outPassiveTemplate"/>
|
||||
|
||||
</blueprint>
|
@ -1,494 +0,0 @@
|
||||
[#ftl attributes={"generated.type":"blueprint"}]
|
||||
[#--
|
||||
|
||||
~~~~~~licensing~~~~~~
|
||||
connector
|
||||
==========
|
||||
Copyright (C) 2020 - 2023 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~~~~~~
|
||||
|
||||
--]
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<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"
|
||||
xmlns:soap-type="http://www.entaxy.ru/ExchangeTypes/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="uniform.service.support"
|
||||
update-strategy="reload">
|
||||
<cm:default-properties>
|
||||
<cm:property name="redelivery.maximumRedeliveries" value="2"/>
|
||||
<cm:property name="redelivery.deadLetterQueue" value="revert.message.dead"/>
|
||||
<cm:property name="acknowledge.completion.timeout" value="600000"/>
|
||||
|
||||
<cm:property name="bus.id" value="FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF"/>
|
||||
<cm:property name="get.destination" value=""/>
|
||||
<cm:property name="test.empty.rate" value="20"/>
|
||||
<cm:property name="acknowledge.aggregation.repository" value="jdbcAggregationRepository"/>
|
||||
<cm:property name="error.system.name" value="error"/>
|
||||
</cm:default-properties>
|
||||
</cm:property-placeholder>
|
||||
|
||||
<reference id="entaxy-broker" interface="org.apache.camel.Component"
|
||||
filter="(connection.name=entaxy-broker)"/>
|
||||
|
||||
<bean id="inConnector" class="ru.entaxy.esb.system.profile.commons.connectors.in.DirectVMInConnectorImpl">
|
||||
<property name="endpointName" value="uniform-active-service"/>
|
||||
<property name="systemName" value="[=systemName]"/>
|
||||
<property name="params">
|
||||
<map>
|
||||
<entry key="role" value="default"/>
|
||||
<entry key="type" value="uniform-service"/>
|
||||
<entry key="subtype" value="active"/>
|
||||
<entry key="period" value="[=period]"/>
|
||||
<entry key="username" value="[=username]"/>
|
||||
<entry key="password" value="[=password]"/>
|
||||
<entry key="endpointUrl" value="[=endpointUrl]"/>
|
||||
<entry key="connectionTimeout" value="[=connectionTimeout]"/>
|
||||
<entry key="connectionMaxThreads" value="[=connectionMaxThreads]"/>
|
||||
</map>
|
||||
</property>
|
||||
</bean>
|
||||
<service ref="inConnector" auto-export="interfaces">
|
||||
<service-properties>
|
||||
<entry key="endpointName" value="uniform-active-service"/>
|
||||
<entry key="systemName" value="[=systemName]"/>
|
||||
</service-properties>
|
||||
</service>
|
||||
|
||||
<bean id="forced" class="java.lang.IllegalArgumentException">
|
||||
<argument index="0" value="Content is invalid"/>
|
||||
</bean>
|
||||
|
||||
<bean id="uuidGenerator" class="java.util.UUID" scope="prototype" factory-method="randomUUID"/>
|
||||
|
||||
<bean id="headersConverter" class="ru.entaxy.esb.system.common.util.HeadersConverter">
|
||||
<property name="namespace" value="http://www.entaxy.ru/ExchangeTypes/1.0"/>
|
||||
<property name="customHeaders" value="NTX_CustomHeaders"/>
|
||||
<property name="customHeaderPrefix" value="NTX_UNIFORM_EXCHANGE_CustomHeader"/>
|
||||
</bean>
|
||||
|
||||
<bean id="headerMergeAggregator" class="ru.entaxy.esb.system.common.aggregation.HeaderMergeAggregatorImpl"/>
|
||||
|
||||
<camelContext id="uniform-service-in-connector-[=systemName]-context"
|
||||
xmlns="http://camel.apache.org/schema/blueprint"
|
||||
errorHandlerRef="commonErrorHandler">
|
||||
|
||||
<errorHandler id="commonErrorHandler" redeliveryPolicyRef="noRedelivery"
|
||||
type="DeadLetterChannel" deadLetterUri="direct-vm:commonErrorEndpoint"/>
|
||||
<redeliveryPolicyProfile id="noRedelivery" disableRedelivery="true"/>
|
||||
|
||||
<route id="uniform-service-active-in-connector">
|
||||
<from uri="timer://get-package?synchronous=true&period=[=period]"/>
|
||||
<setHeader name="NTX_SystemId">
|
||||
<constant>[=systemName]</constant>
|
||||
</setHeader>
|
||||
<setHeader name="ENTAXY_SystemEndpoint">
|
||||
<constant>[=endpointUrl]</constant>
|
||||
</setHeader>
|
||||
<to uri="direct:uniform-service-connector-get-package-active?block=true&timeout=60000"/>
|
||||
</route>
|
||||
|
||||
<!--In-->
|
||||
<route id="get-package-active" streamCache="true">
|
||||
<from uri="direct:uniform-service-connector-get-package-active"/>
|
||||
<when>
|
||||
<simple>${headers.ENTAXY_SystemEndpoint} == null || ${headers.NTX_SystemId} == null</simple>
|
||||
<log message="ENTAXY_SystemEndpoint is not set" loggingLevel="ERROR"/>
|
||||
<stop/>
|
||||
</when>
|
||||
<setHeader name="SystemHasMessages">
|
||||
<constant>true</constant>
|
||||
</setHeader>
|
||||
|
||||
<setHeader name="operationNamespace">
|
||||
<constant>http://www.entaxy.ru/connector/universal/system/1.0</constant>
|
||||
</setHeader>
|
||||
<setHeader name="CamelDestinationOverrideUrl">
|
||||
<simple>${headers.ENTAXY_SystemEndpoint}</simple>
|
||||
</setHeader>
|
||||
|
||||
<loop doWhile="true" copy="true">
|
||||
<simple resultType="Boolean">${headers.SystemHasMessages} == 'true'</simple>
|
||||
<to uri="direct:get-package"/>
|
||||
</loop>
|
||||
</route>
|
||||
|
||||
<route id="direct:get-package">
|
||||
<from uri="direct:get-package"/>
|
||||
|
||||
<setHeader name="NTX_BusUUID">
|
||||
<constant>{{bus.id}}</constant>
|
||||
</setHeader>
|
||||
<setHeader name="ENTAXY_Destination">
|
||||
<constant>{{get.destination}}</constant>
|
||||
</setHeader>
|
||||
<to uri="xslt:ru/entaxy/esb/platform/runtime/modules/uniform-service/xslt/GetPacketRequest.xsl?failOnNullBody=false"/>
|
||||
<removeHeader headerName="NTX_BusUUID"/>
|
||||
<removeHeader headerName="ENTAXY_Destination"/>
|
||||
|
||||
<setHeader name="operationName">
|
||||
<constant>GetPackets</constant>
|
||||
</setHeader>
|
||||
<to uri="direct-vm:uniform-service-send-package-active"/>
|
||||
<removeHeader headerName="SOAPAction"/>
|
||||
|
||||
<setBody>
|
||||
<xpath>//soap-type:response/soap-type:packets</xpath>
|
||||
</setBody>
|
||||
|
||||
<choice>
|
||||
<when>
|
||||
<xpath>//soap-type:packets/soap-type:packet[1]/soap-type:message/soap-type:content/node()
|
||||
</xpath>
|
||||
<setBody>
|
||||
<xpath>//soap-type:packets/soap-type:packet[1]</xpath>
|
||||
</setBody>
|
||||
|
||||
<to uri="entaxy-broker:queue:entaxy.uniform.service.exchange.send.to.profile?exchangePattern=InOnly"/>
|
||||
|
||||
<setHeader name="NTX_UUID">
|
||||
<simple>${headers.ENTAXY_MessageUUID}</simple>
|
||||
</setHeader>
|
||||
<to uri="xslt:ru/entaxy/esb/platform/runtime/modules/uniform-service/xslt/ConfirmGettingPacketRequest.xsl?failOnNullBody=false"/>
|
||||
<setHeader name="operationName">
|
||||
<constant>ConfirmGettingPackets</constant>
|
||||
</setHeader>
|
||||
|
||||
<to uri="direct-vm:uniform-service-send-package-active"/>
|
||||
<removeHeader headerName="SOAPAction"/>
|
||||
|
||||
<when>
|
||||
<xpath>not(//soap-type:status/text() = '200')</xpath>
|
||||
<log message="ConfirmGettingPacket fail" loggingLevel="ERROR"/>
|
||||
<!-- TODO что делать с сообщением в очереди ? -->
|
||||
</when>
|
||||
<setHeader name="SystemHasMessages">
|
||||
<constant>true</constant>
|
||||
</setHeader>
|
||||
</when>
|
||||
<otherwise>
|
||||
<setHeader name="SystemHasMessages">
|
||||
<constant>false</constant>
|
||||
</setHeader>
|
||||
<log message="System ${headers.NTX_SystemId} does not have messages" loggingLevel="INFO"/>
|
||||
</otherwise>
|
||||
</choice>
|
||||
</route>
|
||||
|
||||
<route id="soap-send-to-profile">
|
||||
<from uri="entaxy-broker:queue:entaxy.uniform.service.exchange.send.to.profile"/>
|
||||
<setHeader name="ENTAXY_MessageUUID">
|
||||
<xpath resultType="String">//soap-type:packet/soap-type:message/soap-type:messageUUID/text()</xpath>
|
||||
</setHeader>
|
||||
<setHeader name="ENTAXY_Destination">
|
||||
<xpath resultType="String">
|
||||
//soap-type:packet/soap-type:header/soap-type:destination/soap-type:id/text()
|
||||
</xpath>
|
||||
</setHeader>
|
||||
<setHeader name="ENTAXY_DestinationType">
|
||||
<xpath resultType="String">
|
||||
//soap-type:packet/soap-type:header/soap-type:destination/soap-type:type/text()
|
||||
</xpath>
|
||||
</setHeader>
|
||||
<setHeader name="ENTAXY_Source">
|
||||
<xpath resultType="String">//soap-type:packet/soap-type:message/soap-type:source/soap-type:id/text()
|
||||
</xpath>
|
||||
</setHeader>
|
||||
<setHeader name="ENTAXY_SourceType">
|
||||
<xpath resultType="String">//soap-type:packet/soap-type:message/soap-type:source/soap-type:type/text()
|
||||
</xpath>
|
||||
</setHeader>
|
||||
|
||||
<choice>
|
||||
<when>
|
||||
<simple>${headers.ENTAXY_Source} == ''</simple>
|
||||
<setHeader name="ENTAXY_Source">
|
||||
<simple>${headers.X-SystemName}</simple>
|
||||
</setHeader>
|
||||
</when>
|
||||
<when>
|
||||
<simple>${headers.NTX_SystemId} != ${headers.ENTAXY_Source}</simple>
|
||||
<log message="Source name header and SystemId is not equals!" loggingLevel="WARN"/>
|
||||
</when>
|
||||
</choice>
|
||||
<setHeader name="ENTAXY_MessageType">
|
||||
<xpath resultType="String">//soap-type:packet/soap-type:message/soap-type:messageType/text()</xpath>
|
||||
</setHeader>
|
||||
<setHeader name="ENTAXY_Priority">
|
||||
<xpath resultType="Integer">//soap-type:packet/soap-type:message/soap-type:priority/text()</xpath>
|
||||
</setHeader>
|
||||
<setHeader name="ENTAXY_ExchangePattern">
|
||||
<xpath resultType="String">/soap-type:packet/soap-type:message/soap-type:exchangePattern/text()
|
||||
</xpath>
|
||||
</setHeader>
|
||||
<when>
|
||||
<simple>${headers.ENTAXY_ExchangePattern} == 'InOnly'</simple>
|
||||
<setExchangePattern pattern="InOnly"/>
|
||||
</when>
|
||||
<when>
|
||||
<simple>${headers.ENTAXY_ExchangePattern} == 'InOut'</simple>
|
||||
<setExchangePattern pattern="InOut"/>
|
||||
</when>
|
||||
<when>
|
||||
<simple>${headers.ENTAXY_Priority} == null || ${headers.ENTAXY_Priority} == ""</simple>
|
||||
<setHeader name="ENTAXY_Priority">
|
||||
<simple resultType="Integer">4</simple>
|
||||
</setHeader>
|
||||
</when>
|
||||
|
||||
<setHeader name="NTX_CustomHeaders">
|
||||
<xpath>//soap-type:packet/soap-type:message/soap-type:customHeader</xpath>
|
||||
</setHeader>
|
||||
|
||||
<to uri="direct:get-content-and-content-type"/>
|
||||
<when>
|
||||
<simple>${body} == null</simple>
|
||||
<log message="Content is invalid" loggingLevel="ERROR"/>
|
||||
<throwException ref="forced"/>
|
||||
</when>
|
||||
<removeHeaders pattern="*" excludePattern="NTX_.+|CamelJms.+|ENTAXY_.+"/>
|
||||
<to uri="direct-vm:profile-[=systemName]-exit-dispatcher?block=false"/>
|
||||
</route>
|
||||
|
||||
<route id="send-packets">
|
||||
<from uri="direct:send-packets"/>
|
||||
|
||||
<setHeader name="NTX_UNIFORM_EXCHANGE_PacketCount">
|
||||
<xpath resultType="Integer">count(/soap-type:packets/soap-type:packet)</xpath>
|
||||
</setHeader>
|
||||
<when>
|
||||
<simple>${headers.NTX_UNIFORM_EXCHANGE_PacketCount} > 1</simple>
|
||||
<throwException exceptionType="java.lang.UnsupportedOperationException"
|
||||
message="Not supported more then 1 packet"/>
|
||||
</when>
|
||||
|
||||
<setBody>
|
||||
<xpath resultType="org.w3c.dom.Document">/soap-type:packets/soap-type:packet[1]</xpath>
|
||||
</setBody>
|
||||
|
||||
<setHeader name="ENTAXY_MessageUUID">
|
||||
<xpath resultType="String">/soap-type:packet/soap-type:message/soap-type:messageUUID/text()</xpath>
|
||||
</setHeader>
|
||||
<choice>
|
||||
<when>
|
||||
<simple>${headers.ENTAXY_MessageUUID} == "00000000-0000-0000-0000-000000000000"</simple>
|
||||
[#-- health check --]
|
||||
<removeHeaders pattern="ENTAXY_.+|NTX_.+|X-.+"/>
|
||||
<setBody>
|
||||
<simple><![CDATA[
|
||||
<test/>
|
||||
]]>
|
||||
</simple>
|
||||
</setBody>
|
||||
<to uri="xslt:ru/entaxy/esb/platform/runtime/modules/uniform-service/xslt/PutPacketResponse.xsl?failOnNullBody=false"/>
|
||||
</when>
|
||||
<otherwise>
|
||||
<setHeader name="ENTAXY_Destination">
|
||||
<xpath resultType="String">
|
||||
/soap-type:packet/soap-type:header/soap-type:destination/soap-type:id/text()
|
||||
</xpath>
|
||||
</setHeader>
|
||||
<setHeader name="ENTAXY_DestinationType">
|
||||
<xpath resultType="String">
|
||||
/soap-type:packet/soap-type:header/soap-type:destination/soap-type:type/text()
|
||||
</xpath>
|
||||
</setHeader>
|
||||
|
||||
<log message="Receive message ${headers.ENTAXY_MessageUUID} for ${headers.ENTAXY_Destination}"
|
||||
loggingLevel="INFO"/>
|
||||
<setHeader name="ENTAXY_Source">
|
||||
<xpath resultType="String">
|
||||
/soap-type:packet/soap-type:message/soap-type:source/soap-type:id/text()
|
||||
</xpath>
|
||||
</setHeader>
|
||||
<setHeader name="ENTAXY_SourceType">
|
||||
<xpath resultType="String">
|
||||
/soap-type:packet/soap-type:message/soap-type:source/soap-type:type/text()
|
||||
</xpath>
|
||||
</setHeader>
|
||||
<when>
|
||||
<simple>${headers.X-SystemName} != ${headers.ENTAXY_Source}</simple>
|
||||
<log message="Source name header and auth username is not equals!" loggingLevel="WARN"/>
|
||||
<when>
|
||||
<simple>${headers.ENTAXY_Source} == ''</simple>
|
||||
<setHeader name="ENTAXY_Source">
|
||||
<simple>${headers.X-SystemName}</simple>
|
||||
</setHeader>
|
||||
</when>
|
||||
</when>
|
||||
<setHeader name="ENTAXY_MessageType">
|
||||
<xpath resultType="String">/soap-type:packet/soap-type:message/soap-type:messageType/text()
|
||||
</xpath>
|
||||
</setHeader>
|
||||
<setHeader name="ENTAXY_Priority">
|
||||
<xpath resultType="Integer">/soap-type:packet/soap-type:message/soap-type:priority/text()
|
||||
</xpath>
|
||||
</setHeader>
|
||||
<setHeader name="ENTAXY_ExchangePattern">
|
||||
<xpath resultType="String">/soap-type:packet/soap-type:message/soap-type:exchangePattern/text()
|
||||
</xpath>
|
||||
</setHeader>
|
||||
<when>
|
||||
<simple>${headers.ENTAXY_ExchangePattern} == 'InOnly'</simple>
|
||||
<setExchangePattern pattern="InOnly"/>
|
||||
</when>
|
||||
<when>
|
||||
<simple>${headers.ENTAXY_ExchangePattern} == 'InOut'</simple>
|
||||
<setExchangePattern pattern="InOut"/>
|
||||
</when>
|
||||
<setHeader name="NTX_CustomHeaders">
|
||||
<xpath>/soap-type:packet/soap-type:message/soap-type:customHeader</xpath>
|
||||
</setHeader>
|
||||
<bean ref="headersConverter" method="xml2Json"/>
|
||||
<log message="Headers converted: ${headers}" loggingLevel="DEBUG"/>
|
||||
|
||||
<to uri="direct:get-content-and-content-type"/>
|
||||
|
||||
<when>
|
||||
<simple>${body} == null</simple>
|
||||
<log message="Content is invalid" loggingLevel="ERROR"/>
|
||||
<throwException ref="forced"/>
|
||||
</when>
|
||||
<removeHeaders pattern="*" excludePattern="NTX_.+|CamelJms.+|ENTAXY_.+|X-.+"/>
|
||||
|
||||
<to uri="direct-vm:profile-[=systemName]-exit-dispatcher"/>
|
||||
<removeHeaders pattern="ENTAXY_.+|NTX_.+|X-.+"/>
|
||||
<setBody>
|
||||
<simple><![CDATA[
|
||||
<test/>
|
||||
]]>
|
||||
</simple>
|
||||
</setBody>
|
||||
|
||||
<to uri="xslt:ru/entaxy/esb/platform/runtime/modules/uniform-service/xslt/PutPacketResponse.xsl?failOnNullBody=false"/>
|
||||
</otherwise>
|
||||
</choice>
|
||||
</route>
|
||||
|
||||
<route id="get-content-and-content-type">
|
||||
<from uri="direct:get-content-and-content-type"/>
|
||||
|
||||
<setHeader name="ENTAXY_ContentType">
|
||||
<xpath resultType="String">/soap-type:packet/soap-type:message/soap-type:contentType/text()
|
||||
</xpath>
|
||||
</setHeader>
|
||||
<choice>
|
||||
<when>
|
||||
<xpath>count(/soap-type:packet/soap-type:message/soap-type:content) = 1</xpath>
|
||||
<setHeader name="CamelJms_IntContentXsiType">
|
||||
<xpath resultType="String">
|
||||
/soap-type:packet/soap-type:message/soap-type:content/@xsi:type
|
||||
</xpath>
|
||||
</setHeader>
|
||||
<setHeader name="NTX_ContentHasNotEmptyText">
|
||||
<xpath resultType="Boolean">
|
||||
boolean(normalize-space(/soap-type:packet/soap-type:message/soap-type:content/text()))
|
||||
</xpath>
|
||||
</setHeader>
|
||||
<setHeader name="NTX_ContentChildNodesCount">
|
||||
<xpath resultType="Integer">
|
||||
count(/soap-type:packet/soap-type:message/soap-type:content/child::*)
|
||||
</xpath>
|
||||
</setHeader>
|
||||
<choice>
|
||||
<when>
|
||||
<simple>${headers.NTX_ContentChildNodesCount} == 1</simple>
|
||||
<setBody>
|
||||
<xpath resultType="org.w3c.dom.Document">
|
||||
/soap-type:packet/soap-type:message/soap-type:content/*
|
||||
</xpath>
|
||||
</setBody>
|
||||
<setHeader name="CamelJms_IntMessageType">
|
||||
<constant>Document</constant>
|
||||
</setHeader>
|
||||
</when>
|
||||
<when>
|
||||
<simple>${headers.NTX_ContentChildNodesCount} > 1</simple>
|
||||
<setBody>
|
||||
<xpath resultType="org.w3c.dom.NodeList">
|
||||
/soap-type:packet/soap-type:message/soap-type:content/*
|
||||
</xpath>
|
||||
</setBody>
|
||||
<setHeader name="CamelJms_IntMessageType">
|
||||
<constant>NodeList</constant>
|
||||
</setHeader>
|
||||
</when>
|
||||
<when>
|
||||
<simple>${headers.NTX_ContentChildNodesCount} == 0</simple>
|
||||
<choice>
|
||||
<when>
|
||||
<simple>${headers.NTX_ContentHasNotEmptyText}</simple>
|
||||
<setBody>
|
||||
<xpath resultType="String">
|
||||
/soap-type:packet/soap-type:message/soap-type:content/text()
|
||||
</xpath>
|
||||
</setBody>
|
||||
<setHeader name="CamelJms_IntMessageType">
|
||||
<constant>String</constant>
|
||||
</setHeader>
|
||||
</when>
|
||||
<otherwise>
|
||||
<setBody>
|
||||
<constant>
|
||||
<![CDATA[
|
||||
<emptyContent xmlns="http://www.entaxy.ru/connector/universal/internal"/>
|
||||
]]>
|
||||
</constant>
|
||||
</setBody>
|
||||
</otherwise>
|
||||
</choice>
|
||||
</when>
|
||||
<otherwise>
|
||||
<log message="Content is invalid" loggingLevel="ERROR"/>
|
||||
<throwException ref="forced"/>
|
||||
</otherwise>
|
||||
</choice>
|
||||
<removeHeader headerName="NTX_ContentHasNotEmptyText"/>
|
||||
<removeHeader headerName="NTX_ContentChildNodesCount"/>
|
||||
</when>
|
||||
<otherwise>
|
||||
<setBody>
|
||||
<constant>
|
||||
<![CDATA[
|
||||
<empty xmlns="http://www.entaxy.ru/connector/universal/internal"/>
|
||||
]]>
|
||||
</constant>
|
||||
</setBody>
|
||||
</otherwise>
|
||||
</choice>
|
||||
</route>
|
||||
</camelContext>
|
||||
|
||||
</blueprint>
|
@ -1,184 +0,0 @@
|
||||
[#ftl attributes={"generated.type":"blueprint"}]
|
||||
[#--
|
||||
|
||||
~~~~~~licensing~~~~~~
|
||||
connector
|
||||
==========
|
||||
Copyright (C) 2020 - 2023 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~~~~~~
|
||||
|
||||
--]
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<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"
|
||||
xmlns:soap-type="http://www.entaxy.ru/ExchangeTypes/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="uniform.service.support"
|
||||
update-strategy="reload">
|
||||
<cm:default-properties>
|
||||
<cm:property name="redelivery.maximumRedeliveries" value="2"/>
|
||||
<cm:property name="redelivery.deadLetterQueue" value="revert.message.dead"/>
|
||||
<cm:property name="acknowledge.completion.timeout" value="600000"/>
|
||||
|
||||
<cm:property name="bus.id" value="FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF"/>
|
||||
<cm:property name="get.destination" value=""/>
|
||||
<cm:property name="test.empty.rate" value="20"/>
|
||||
<cm:property name="acknowledge.aggregation.repository" value="jdbcAggregationRepository"/>
|
||||
<cm:property name="error.system.name" value="error"/>
|
||||
</cm:default-properties>
|
||||
</cm:property-placeholder>
|
||||
|
||||
<reference id="entaxy-broker" interface="org.apache.camel.Component"
|
||||
filter="(connection.name=entaxy-broker)"/>
|
||||
|
||||
<bean id="soapOutConnector" class="ru.entaxy.esb.system.profile.commons.connectors.out.DirectVMOutConnectorImpl">
|
||||
<property name="endpointName" value="uniform-active-service"/>
|
||||
<property name="systemName" value="[=systemName]"/>
|
||||
<property name="params">
|
||||
<map>
|
||||
<entry key="role" value="default"/>
|
||||
<entry key="type" value="uniform-service"/>
|
||||
<entry key="subtype" value="active"/>
|
||||
<entry key="username" value="[=username]"/>
|
||||
<entry key="password" value="[=password]"/>
|
||||
<entry key="endpointUrl" value="[=endpointUrl]"/>
|
||||
<entry key="connectionTimeout" value="[=connectionTimeout]"/>
|
||||
<entry key="connectionMaxThreads" value="[=connectionMaxThreads]"/>
|
||||
</map>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<service ref="soapOutConnector" auto-export="interfaces">
|
||||
<service-properties>
|
||||
<entry key="endpointName" value="uniform-active-service"/>
|
||||
<entry key="systemName" value="[=systemName]"/>
|
||||
</service-properties>
|
||||
</service>
|
||||
|
||||
<bean id="uuidGenerator" class="java.util.UUID" scope="prototype" factory-method="randomUUID"/>
|
||||
|
||||
<bean id="headersConverter" class="ru.entaxy.esb.system.common.util.HeadersConverter">
|
||||
<property name="namespace" value="http://www.entaxy.ru/ExchangeTypes/1.0"/>
|
||||
<property name="customHeaders" value="NTX_CustomHeaders"/>
|
||||
<property name="customHeaderPrefix" value="NTX_UNIFORM_EXCHANGE_CustomHeader"/>
|
||||
</bean>
|
||||
|
||||
<camelContext id="uniform-service-out-connector-[=systemName]-context"
|
||||
xmlns="http://camel.apache.org/schema/blueprint"
|
||||
errorHandlerRef="commonErrorHandler">
|
||||
|
||||
<errorHandler id="commonErrorHandler" redeliveryPolicyRef="noRedelivery"
|
||||
type="DeadLetterChannel" deadLetterUri="direct-vm:commonErrorEndpoint"/>
|
||||
<redeliveryPolicyProfile id="noRedelivery" disableRedelivery="true"/>
|
||||
|
||||
<route id="soap-out-active-connector" streamCache="true">
|
||||
<from uri="entaxy-broker:queue:entaxy.uniform.service.exchange.active.[=systemName]"/>
|
||||
<log message="Message ${headers} send to system" loggingLevel="TRACE"/>
|
||||
<setHeader name="NTX_SystemId">
|
||||
<constant>[=systemName]</constant>
|
||||
</setHeader>
|
||||
<setHeader name="ENTAXY_SystemEndpoint">
|
||||
<constant>[=endpointUrl]</constant>
|
||||
</setHeader>
|
||||
|
||||
<log message="ACTIVE-CONSUMER: Message for system ${headers.NTX_SystemId} to ${headers.ENTAXY_SystemEndpoint}"
|
||||
loggingLevel="DEBUG"/>
|
||||
<when>
|
||||
<simple>${headers.ENTAXY_SystemEndpoint} == null || ${headers.NTX_SystemId} == null</simple>
|
||||
<log message="ENTAXY_SystemEndpoint for ${headers.NTX_SystemId} is not set"
|
||||
loggingLevel="ERROR"/>
|
||||
<stop/>
|
||||
</when>
|
||||
<bean ref="headersConverter" method="json2xml"/>
|
||||
|
||||
<setHeader name="NTX_OutQueue">
|
||||
<simple>entaxy.uniform.service.exchange.active.[=systemName]</simple>
|
||||
</setHeader>
|
||||
<setHeader name="ENTAXY_AcknowledgeMsgID">
|
||||
<simple>${bean:uuidGenerator.toString}</simple>
|
||||
</setHeader>
|
||||
|
||||
<to uri="direct-vm:uniform-service-common-save-acknowledge?block=true&timeout=70000"/>
|
||||
|
||||
<setBody>
|
||||
<simple><![CDATA[
|
||||
<body>${body}</body>
|
||||
]]>
|
||||
</simple>
|
||||
</setBody>
|
||||
<to uri="xslt:ru/entaxy/esb/platform/runtime/modules/uniform-service/xslt/PutPacketRequest.xsl"/>
|
||||
<setHeader name="operationNamespace">
|
||||
<constant>http://www.entaxy.ru/connector/universal/system/1.0</constant>
|
||||
</setHeader>
|
||||
<setHeader name="operationName">
|
||||
<constant>PutPackets</constant>
|
||||
</setHeader>
|
||||
<setHeader name="CamelDestinationOverrideUrl">
|
||||
<simple>${headers.ENTAXY_SystemEndpoint}</simple>
|
||||
</setHeader>
|
||||
|
||||
<to uri="direct-vm:uniform-service-send-package-active"/>
|
||||
<choice>
|
||||
<when>
|
||||
<xpath>not(//soap-type:status/text() = '200')</xpath>
|
||||
<log message="PutPackets fail" loggingLevel="ERROR"/>
|
||||
</when>
|
||||
<otherwise>
|
||||
<setHeader name="NTX_AckMessage">
|
||||
<simple>true</simple>
|
||||
</setHeader>
|
||||
<to uri="entaxy-broker:queue:entaxy.uniform.service.exchange.aggregate?exchangePattern=InOnly&asyncConsumer=true"/>
|
||||
</otherwise>
|
||||
</choice>
|
||||
</route>
|
||||
|
||||
<route id="uniform-active-service-out-connector">
|
||||
<from uri="direct-vm:uniform-active-service-out-connector-[=systemName]"/>
|
||||
<log message="Message ${headers} send to system" loggingLevel="TRACE"/>
|
||||
<when>
|
||||
<simple>${headers.ENTAXY_Priority} == null || ${headers.ENTAXY_Priority} == ""</simple>
|
||||
<setHeader name="ENTAXY_Priority">
|
||||
<simple resultType="Integer">4</simple>
|
||||
</setHeader>
|
||||
</when>
|
||||
<setHeader name="NTX_OutQueue">
|
||||
<simple>entaxy.uniform.service.exchange.active.[=systemName]</simple>
|
||||
</setHeader>
|
||||
<removeHeaders pattern="X-.+"/>
|
||||
<toD uri="entaxy-broker:queue:${headers.NTX_OutQueue}?priority=${headers.ENTAXY_Priority}"/>
|
||||
</route>
|
||||
</camelContext>
|
||||
|
||||
</blueprint>
|
@ -1,323 +0,0 @@
|
||||
[#ftl attributes={"generated.type":"blueprint"}]
|
||||
[#--
|
||||
|
||||
~~~~~~licensing~~~~~~
|
||||
connector
|
||||
==========
|
||||
Copyright (C) 2020 - 2023 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~~~~~~
|
||||
|
||||
--]
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<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"
|
||||
xmlns:soap-type="http://www.entaxy.ru/ExchangeTypes/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="uniform.service.support"
|
||||
update-strategy="reload">
|
||||
<cm:default-properties>
|
||||
<cm:property name="redelivery.maximumRedeliveries" value="2"/>
|
||||
<cm:property name="redelivery.deadLetterQueue" value="revert.message.dead"/>
|
||||
<cm:property name="acknowledge.completion.timeout" value="600000"/>
|
||||
|
||||
<cm:property name="bus.id" value="FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF"/>
|
||||
<cm:property name="get.destination" value=""/>
|
||||
<cm:property name="test.empty.rate" value="20"/>
|
||||
<cm:property name="acknowledge.aggregation.repository" value="jdbcAggregationRepository"/>
|
||||
<cm:property name="error.system.name" value="error"/>
|
||||
</cm:default-properties>
|
||||
</cm:property-placeholder>
|
||||
|
||||
<reference id="entaxy-broker" interface="org.apache.camel.Component"
|
||||
filter="(connection.name=entaxy-broker)"/>
|
||||
|
||||
<bean id="inConnector" class="ru.entaxy.esb.system.profile.commons.connectors.in.DirectVMInConnectorImpl">
|
||||
<property name="endpointName" value="uniform-passive-service"/>
|
||||
<property name="systemName" value="[=systemName]"/>
|
||||
<property name="params">
|
||||
<map>
|
||||
<entry key="role" value="default"/>
|
||||
<entry key="type" value="uniform-service"/>
|
||||
<entry key="subtype" value="passive"/>
|
||||
</map>
|
||||
</property>
|
||||
</bean>
|
||||
<service ref="inConnector" auto-export="interfaces">
|
||||
<service-properties>
|
||||
<entry key="endpointName" value="uniform-passive-service"/>
|
||||
<entry key="systemName" value="[=systemName]"/>
|
||||
</service-properties>
|
||||
</service>
|
||||
|
||||
<bean id="forced" class="java.lang.IllegalArgumentException">
|
||||
<argument index="0" value="Content is invalid"/>
|
||||
</bean>
|
||||
|
||||
<bean id="headersConverter" class="ru.entaxy.esb.system.common.util.HeadersConverter">
|
||||
<property name="namespace" value="http://www.entaxy.ru/ExchangeTypes/1.0"/>
|
||||
<property name="customHeaders" value="NTX_CustomHeaders"/>
|
||||
<property name="customHeaderPrefix" value="NTX_UNIFORM_EXCHANGE_CustomHeader"/>
|
||||
</bean>
|
||||
|
||||
<camelContext id="uniform-service-in-connector-[=systemName]-context"
|
||||
xmlns="http://camel.apache.org/schema/blueprint"
|
||||
errorHandlerRef="commonErrorHandler">
|
||||
|
||||
<errorHandler id="commonErrorHandler" redeliveryPolicyRef="noRedelivery"
|
||||
type="DeadLetterChannel" deadLetterUri="direct-vm:commonErrorEndpoint"/>
|
||||
<redeliveryPolicyProfile id="noRedelivery" disableRedelivery="true"/>
|
||||
|
||||
<route id="uniform-passive-service-in-connector">
|
||||
<from uri="direct-vm:uniform-passive-service-in-connector-[=systemName]"/>
|
||||
<log message="Start uniform exchange connector ${headers.operationName}" loggingLevel="DEBUG"/>
|
||||
<setHeader name="ENTAXY_ConnectorType">
|
||||
<simple>uniform-service</simple>
|
||||
</setHeader>
|
||||
<setHeader name="ENTAXY_ConnectorName">
|
||||
<simple>uniform-service-in-connector-[=systemName]</simple>
|
||||
</setHeader>
|
||||
<to uri="direct:send-packets"/>
|
||||
</route>
|
||||
|
||||
<route id="send-packets">
|
||||
<from uri="direct:send-packets"/>
|
||||
|
||||
<setHeader name="NTX_UNIFORM_EXCHANGE_PacketCount">
|
||||
<xpath resultType="Integer">count(/soap-type:packets/soap-type:packet)</xpath>
|
||||
</setHeader>
|
||||
<when>
|
||||
<simple>${headers.NTX_UNIFORM_EXCHANGE_PacketCount} > 1</simple>
|
||||
<throwException exceptionType="java.lang.UnsupportedOperationException"
|
||||
message="Not supported more then 1 packet"/>
|
||||
</when>
|
||||
|
||||
<setBody>
|
||||
<xpath resultType="org.w3c.dom.Document">/soap-type:packets/soap-type:packet[1]</xpath>
|
||||
</setBody>
|
||||
|
||||
<setHeader name="ENTAXY_MessageUUID">
|
||||
<xpath resultType="String">/soap-type:packet/soap-type:message/soap-type:messageUUID/text()</xpath>
|
||||
</setHeader>
|
||||
<choice>
|
||||
<when>
|
||||
<simple>${headers.ENTAXY_MessageUUID} == "00000000-0000-0000-0000-000000000000"</simple>
|
||||
[#-- health check --]
|
||||
<removeHeaders pattern="ENTAXY_.+|NTX_.+|X-.+"/>
|
||||
<setBody>
|
||||
<simple><![CDATA[
|
||||
<test/>
|
||||
]]>
|
||||
</simple>
|
||||
</setBody>
|
||||
<to uri="xslt:ru/entaxy/esb/platform/runtime/modules/uniform-service/xslt/PutPacketResponse.xsl?failOnNullBody=false"/>
|
||||
</when>
|
||||
<otherwise>
|
||||
<setHeader name="ENTAXY_Destination">
|
||||
<xpath resultType="String">
|
||||
/soap-type:packet/soap-type:header/soap-type:destination/soap-type:id/text()
|
||||
</xpath>
|
||||
</setHeader>
|
||||
<setHeader name="ENTAXY_DestinationType">
|
||||
<xpath resultType="String">
|
||||
/soap-type:packet/soap-type:header/soap-type:destination/soap-type:type/text()
|
||||
</xpath>
|
||||
</setHeader>
|
||||
|
||||
<log message="Receive message ${headers.ENTAXY_MessageUUID} for ${headers.ENTAXY_Destination}"
|
||||
loggingLevel="INFO"/>
|
||||
<setHeader name="ENTAXY_Source">
|
||||
<xpath resultType="String">
|
||||
/soap-type:packet/soap-type:message/soap-type:source/soap-type:id/text()
|
||||
</xpath>
|
||||
</setHeader>
|
||||
<setHeader name="ENTAXY_SourceType">
|
||||
<xpath resultType="String">
|
||||
/soap-type:packet/soap-type:message/soap-type:source/soap-type:type/text()
|
||||
</xpath>
|
||||
</setHeader>
|
||||
<when>
|
||||
<simple>${headers.X-SystemName} != ${headers.ENTAXY_Source}</simple>
|
||||
<log message="Source name header and auth username is not equals!" loggingLevel="WARN"/>
|
||||
<when>
|
||||
<simple>${headers.ENTAXY_Source} == ''</simple>
|
||||
<setHeader name="ENTAXY_Source">
|
||||
<simple>${headers.X-SystemName}</simple>
|
||||
</setHeader>
|
||||
</when>
|
||||
</when>
|
||||
<setHeader name="ENTAXY_MessageType">
|
||||
<xpath resultType="String">/soap-type:packet/soap-type:message/soap-type:messageType/text()
|
||||
</xpath>
|
||||
</setHeader>
|
||||
<setHeader name="ENTAXY_Priority">
|
||||
<xpath resultType="Integer">/soap-type:packet/soap-type:message/soap-type:priority/text()
|
||||
</xpath>
|
||||
</setHeader>
|
||||
<setHeader name="ENTAXY_ExchangePattern">
|
||||
<xpath resultType="String">/soap-type:packet/soap-type:message/soap-type:exchangePattern/text()
|
||||
</xpath>
|
||||
</setHeader>
|
||||
<when>
|
||||
<simple>${headers.ENTAXY_ExchangePattern} == 'InOnly'</simple>
|
||||
<setExchangePattern pattern="InOnly"/>
|
||||
</when>
|
||||
<when>
|
||||
<simple>${headers.ENTAXY_ExchangePattern} == 'InOut'</simple>
|
||||
<setExchangePattern pattern="InOut"/>
|
||||
</when>
|
||||
<setHeader name="NTX_CustomHeaders">
|
||||
<xpath>/soap-type:packet/soap-type:message/soap-type:customHeader</xpath>
|
||||
</setHeader>
|
||||
<bean ref="headersConverter" method="xml2Json"/>
|
||||
<log message="Headers converted: ${headers}" loggingLevel="DEBUG"/>
|
||||
|
||||
<to uri="direct:get-content-and-content-type"/>
|
||||
|
||||
<when>
|
||||
<simple>${body} == null</simple>
|
||||
<log message="Content is invalid" loggingLevel="ERROR"/>
|
||||
<throwException ref="forced"/>
|
||||
</when>
|
||||
<removeHeaders pattern="*" excludePattern="NTX_.+|CamelJms.+|ENTAXY_.+|X-.+"/>
|
||||
|
||||
<to uri="direct-vm:profile-[=systemName]-exit-dispatcher"/>
|
||||
<removeHeaders pattern="ENTAXY_.+|NTX_.+|X-.+"/>
|
||||
<setBody>
|
||||
<simple><![CDATA[
|
||||
<test/>
|
||||
]]>
|
||||
</simple>
|
||||
</setBody>
|
||||
|
||||
<to uri="xslt:ru/entaxy/esb/platform/runtime/modules/uniform-service/xslt/PutPacketResponse.xsl?failOnNullBody=false"/>
|
||||
</otherwise>
|
||||
</choice>
|
||||
</route>
|
||||
|
||||
<route id="get-content-and-content-type">
|
||||
<from uri="direct:get-content-and-content-type"/>
|
||||
|
||||
<setHeader name="ENTAXY_ContentType">
|
||||
<xpath resultType="String">/soap-type:packet/soap-type:message/soap-type:contentType/text()
|
||||
</xpath>
|
||||
</setHeader>
|
||||
<choice>
|
||||
<when>
|
||||
<xpath>count(/soap-type:packet/soap-type:message/soap-type:content) = 1</xpath>
|
||||
<setHeader name="CamelJms_IntContentXsiType">
|
||||
<xpath resultType="String">
|
||||
/soap-type:packet/soap-type:message/soap-type:content/@xsi:type
|
||||
</xpath>
|
||||
</setHeader>
|
||||
<setHeader name="NTX_ContentHasNotEmptyText">
|
||||
<xpath resultType="Boolean">
|
||||
boolean(normalize-space(/soap-type:packet/soap-type:message/soap-type:content/text()))
|
||||
</xpath>
|
||||
</setHeader>
|
||||
<setHeader name="NTX_ContentChildNodesCount">
|
||||
<xpath resultType="Integer">
|
||||
count(/soap-type:packet/soap-type:message/soap-type:content/child::*)
|
||||
</xpath>
|
||||
</setHeader>
|
||||
<choice>
|
||||
<when>
|
||||
<simple>${headers.NTX_ContentChildNodesCount} == 1</simple>
|
||||
<setBody>
|
||||
<xpath resultType="org.w3c.dom.Document">
|
||||
/soap-type:packet/soap-type:message/soap-type:content/*
|
||||
</xpath>
|
||||
</setBody>
|
||||
<setHeader name="CamelJms_IntMessageType">
|
||||
<constant>Document</constant>
|
||||
</setHeader>
|
||||
</when>
|
||||
<when>
|
||||
<simple>${headers.NTX_ContentChildNodesCount} > 1</simple>
|
||||
<setBody>
|
||||
<xpath resultType="org.w3c.dom.NodeList">
|
||||
/soap-type:packet/soap-type:message/soap-type:content/*
|
||||
</xpath>
|
||||
</setBody>
|
||||
<setHeader name="CamelJms_IntMessageType">
|
||||
<constant>NodeList</constant>
|
||||
</setHeader>
|
||||
</when>
|
||||
<when>
|
||||
<simple>${headers.NTX_ContentChildNodesCount} == 0</simple>
|
||||
<choice>
|
||||
<when>
|
||||
<simple>${headers.NTX_ContentHasNotEmptyText}</simple>
|
||||
<setBody>
|
||||
<xpath resultType="String">
|
||||
/soap-type:packet/soap-type:message/soap-type:content/text()
|
||||
</xpath>
|
||||
</setBody>
|
||||
<setHeader name="CamelJms_IntMessageType">
|
||||
<constant>String</constant>
|
||||
</setHeader>
|
||||
</when>
|
||||
<otherwise>
|
||||
<setBody>
|
||||
<constant>
|
||||
<![CDATA[
|
||||
<emptyContent xmlns="http://www.entaxy.ru/connector/universal/internal"/>
|
||||
]]>
|
||||
</constant>
|
||||
</setBody>
|
||||
</otherwise>
|
||||
</choice>
|
||||
</when>
|
||||
<otherwise>
|
||||
<log message="Content is invalid" loggingLevel="ERROR"/>
|
||||
<throwException ref="forced"/>
|
||||
</otherwise>
|
||||
</choice>
|
||||
<removeHeader headerName="NTX_ContentHasNotEmptyText"/>
|
||||
<removeHeader headerName="NTX_ContentChildNodesCount"/>
|
||||
</when>
|
||||
<otherwise>
|
||||
<setBody>
|
||||
<constant>
|
||||
<![CDATA[
|
||||
<empty xmlns="http://www.entaxy.ru/connector/universal/internal"/>
|
||||
]]>
|
||||
</constant>
|
||||
</setBody>
|
||||
</otherwise>
|
||||
</choice>
|
||||
</route>
|
||||
</camelContext>
|
||||
|
||||
</blueprint>
|
@ -1,244 +0,0 @@
|
||||
[#ftl attributes={"generated.type":"blueprint"}]
|
||||
[#--
|
||||
|
||||
~~~~~~licensing~~~~~~
|
||||
connector
|
||||
==========
|
||||
Copyright (C) 2020 - 2023 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~~~~~~
|
||||
|
||||
--]
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<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"
|
||||
xmlns:soap-type="http://www.entaxy.ru/ExchangeTypes/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="uniform.service.support"
|
||||
update-strategy="reload">
|
||||
<cm:default-properties>
|
||||
<cm:property name="redelivery.maximumRedeliveries" value="2"/>
|
||||
<cm:property name="redelivery.deadLetterQueue" value="revert.message.dead"/>
|
||||
<cm:property name="acknowledge.completion.timeout" value="600000"/>
|
||||
|
||||
<cm:property name="bus.id" value="FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF"/>
|
||||
<cm:property name="get.destination" value=""/>
|
||||
<cm:property name="test.empty.rate" value="20"/>
|
||||
<cm:property name="acknowledge.aggregation.repository" value="jdbcAggregationRepository"/>
|
||||
<cm:property name="error.system.name" value="error"/>
|
||||
</cm:default-properties>
|
||||
</cm:property-placeholder>
|
||||
|
||||
<reference id="entaxy-broker" interface="org.apache.camel.Component"
|
||||
filter="(connection.name=entaxy-broker)"/>
|
||||
|
||||
<bean id="soapOutConnector" class="ru.entaxy.esb.system.profile.commons.connectors.out.DirectVMOutConnectorImpl">
|
||||
<property name="endpointName" value="uniform-passive-service"/>
|
||||
<property name="systemName" value="[=systemName]"/>
|
||||
<property name="params">
|
||||
<map>
|
||||
<entry key="role" value="default"/>
|
||||
<entry key="type" value="uniform-service"/>
|
||||
<entry key="subtype" value="passive"/>
|
||||
</map>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<service ref="soapOutConnector" auto-export="interfaces">
|
||||
<service-properties>
|
||||
<entry key="endpointName" value="uniform-passive-service"/>
|
||||
<entry key="systemName" value="[=systemName]"/>
|
||||
</service-properties>
|
||||
</service>
|
||||
|
||||
<bean id="uuidGenerator" class="java.util.UUID" scope="prototype" factory-method="randomUUID"/>
|
||||
|
||||
<bean id="headersConverter" class="ru.entaxy.esb.system.common.util.HeadersConverter">
|
||||
<property name="namespace" value="http://www.entaxy.ru/ExchangeTypes/1.0"/>
|
||||
<property name="customHeaders" value="NTX_CustomHeaders"/>
|
||||
<property name="customHeaderPrefix" value="NTX_UNIFORM_EXCHANGE_CustomHeader"/>
|
||||
</bean>
|
||||
|
||||
<bean id="headerMergeAggregator" class="ru.entaxy.esb.system.common.aggregation.HeaderMergeAggregatorImpl"/>
|
||||
|
||||
<camelContext id="uniform-service-out-connector-[=systemName]-context"
|
||||
xmlns="http://camel.apache.org/schema/blueprint"
|
||||
errorHandlerRef="commonErrorHandler">
|
||||
|
||||
<errorHandler id="commonErrorHandler" redeliveryPolicyRef="noRedelivery"
|
||||
type="DeadLetterChannel" deadLetterUri="direct-vm:commonErrorEndpoint"/>
|
||||
<redeliveryPolicyProfile id="noRedelivery" disableRedelivery="true"/>
|
||||
|
||||
<route id="uniform-passive-service-out-connector">
|
||||
<from uri="direct-vm:uniform-passive-service-out-connector-[=systemName]"/>
|
||||
<choice>
|
||||
<when>
|
||||
<simple>${headers.operationName} == 'ConfirmGettingPackets'</simple>
|
||||
<to uri="direct:confirm-packets"/>
|
||||
</when>
|
||||
<when>
|
||||
<simple>${headers.operationName} == 'GetPackets'</simple>
|
||||
<to uri="direct:get-packets"/>
|
||||
</when>
|
||||
<otherwise>
|
||||
<to uri="direct:sent-message"/>
|
||||
</otherwise>
|
||||
</choice>
|
||||
</route>
|
||||
|
||||
<route id="sent-message">
|
||||
<from uri="direct:sent-message"/>
|
||||
<log message="Message ${headers} send to system" loggingLevel="TRACE"/>
|
||||
<when>
|
||||
<simple>${headers.ENTAXY_Priority} == null || ${headers.ENTAXY_Priority} == ""</simple>
|
||||
<setHeader name="ENTAXY_Priority">
|
||||
<simple resultType="Integer">4</simple>
|
||||
</setHeader>
|
||||
</when>
|
||||
<setHeader name="NTX_OutQueue">
|
||||
<simple>entaxy.uniform.service.exchange.[=systemName]</simple>
|
||||
</setHeader>
|
||||
<removeHeaders pattern="X-.+"/>
|
||||
<toD uri="entaxy-broker:queue:${headers.NTX_OutQueue}?priority=${headers.ENTAXY_Priority}"/>
|
||||
</route>
|
||||
|
||||
<route id="confirm-packets">
|
||||
<from uri="direct:confirm-packets"/>
|
||||
|
||||
<setHeader name="NTX_UuidCount">
|
||||
<xpath resultType="Integer">count(/soap-type:uuids/soap-type:uuid)</xpath>
|
||||
</setHeader>
|
||||
<when>
|
||||
<simple>${headers.NTX_UuidCount} > 1</simple>
|
||||
<throwException exceptionType="java.lang.UnsupportedOperationException"
|
||||
message="Not supported more then 1 uuid"/>
|
||||
</when>
|
||||
<setBody>
|
||||
<xpath resultType="org.w3c.dom.Document">/soap-type:uuids/soap-type:uuid[1]</xpath>
|
||||
</setBody>
|
||||
|
||||
<setHeader name="ENTAXY_AcknowledgeMsgID">
|
||||
<xpath resultType="String">/soap-type:uuid/text()</xpath>
|
||||
</setHeader>
|
||||
<to uri="direct-vm:uniform-service-receive-acknowledge"/>
|
||||
<setHeader name="NTX_UUID">
|
||||
<simple>${headers.ENTAXY_AcknowledgeMsgID}</simple>
|
||||
</setHeader>
|
||||
<to uri="xslt:ru/entaxy/esb/platform/runtime/modules/uniform-service/xslt/ConfirmGettingPacketResponse.xsl?failOnNullBody=false"/>
|
||||
<removeHeaders pattern="Authorization|breadcrumbId|NTX_.+|ENTAXY_.+"/>
|
||||
</route>
|
||||
|
||||
<route id="get-packets">
|
||||
<from uri="direct:get-packets"/>
|
||||
<setHeader name="NTX_SystemId">
|
||||
<xpath>/soap-type:getPacketsRequest/soap-type:destination/soap-type:id/text()</xpath>
|
||||
</setHeader>
|
||||
<choice>
|
||||
<when>
|
||||
<simple>${headers.NTX_SystemId} == ''</simple>
|
||||
<setHeader name="NTX_SystemId">
|
||||
<simple>${headers.X-SystemName}</simple>
|
||||
</setHeader>
|
||||
</when>
|
||||
<when>
|
||||
<simple>${headers.NTX_SystemId} != ${headers.X-SystemName}</simple>
|
||||
<log message="Source name header and SystemId is not equals!" loggingLevel="WARN"/>
|
||||
<throwException exceptionType="java.security.AccessControlException" message="Unauthorized"/>
|
||||
</when>
|
||||
</choice>
|
||||
|
||||
<setHeader name="NTX_OutQueue">
|
||||
<simple>entaxy.uniform.service.exchange.[=systemName]</simple>
|
||||
</setHeader>
|
||||
<setHeader name="NTX_LimitCount">
|
||||
<xpath resultType="Integer">/soap-type:getPacketsRequest/soap-type:limitCount/text()</xpath>
|
||||
</setHeader>
|
||||
<setHeader name="NTX_LimitSize">
|
||||
<xpath resultType="Integer">/soap-type:getPacketsRequest/soap-type:limitSize/text()</xpath>
|
||||
</setHeader>
|
||||
<when>
|
||||
<simple>${headers.NTX_LimitCount} > 1 || ${headers.NTX_LimitSize} > 0</simple>
|
||||
<throwException exceptionType="java.lang.UnsupportedOperationException"
|
||||
message="Not supported limitation mode! Only default values."/>
|
||||
</when>
|
||||
|
||||
<log message="Fetch From JMS queue: ${headers.NTX_OutQueue}; SystemId=${headers.NTX_SystemId}"
|
||||
loggingLevel="INFO"/>
|
||||
|
||||
<setBody>
|
||||
<simple>${null}</simple>
|
||||
</setBody>
|
||||
|
||||
<pollEnrich timeout="0" strategyRef="headerMergeAggregator">
|
||||
<simple>entaxy-broker:queue:${headers.NTX_OutQueue}</simple>
|
||||
</pollEnrich>
|
||||
|
||||
<choice>
|
||||
<when>
|
||||
<simple>${body} == null</simple>
|
||||
<log message="No Messages" loggingLevel="WARN"/>
|
||||
<setHeader name="NTX_Status">
|
||||
<constant>204</constant>
|
||||
</setHeader>
|
||||
<to uri="xslt:ru/entaxy/esb/platform/runtime/modules/uniform-service/xslt/GetPacketResponse.xsl?failOnNullBody=false"/>
|
||||
<removeHeaders pattern="NTX_Status"/>
|
||||
</when>
|
||||
<otherwise>
|
||||
<log message="Get Message ${body}" loggingLevel="DEBUG"/>
|
||||
<setHeader name="ENTAXY_AcknowledgeMsgID">
|
||||
<simple>${bean:uuidGenerator.toString}</simple>
|
||||
</setHeader>
|
||||
<to uri="direct-vm:uniform-service-common-save-acknowledge?block=true&timeout=70000"/>
|
||||
|
||||
<bean ref="headersConverter" method="json2xml"/>
|
||||
<when>
|
||||
<simple>${headers.CamelJms_IntMessageType} == 'String'</simple>
|
||||
<bean beanType="org.apache.commons.lang3.StringEscapeUtils"
|
||||
method="escapeXml(${body})"/>
|
||||
</when>
|
||||
<setBody>
|
||||
<simple><![CDATA[<body>${body}</body>]]></simple>
|
||||
</setBody>
|
||||
|
||||
<to uri="xslt:ru/entaxy/esb/platform/runtime/modules/uniform-service/xslt/GetPacketResponse.xsl"/>
|
||||
<to uri="direct-vm:uniform-service-transform-body?block=true&timeout=30000"/>
|
||||
<log message="Send message ${headers.ENTAXY_MessageUUID} for ${headers.NTX_SystemId} ackId ${headers.ENTAXY_AcknowledgeMsgID}"
|
||||
loggingLevel="INFO"/>
|
||||
<removeHeaders pattern="JMS.+|NTX_.+|ENTAXY_.+"/>
|
||||
</otherwise>
|
||||
</choice>
|
||||
</route>
|
||||
</camelContext>
|
||||
|
||||
</blueprint>
|
@ -1,34 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!-- feature:repo-add mvn:ru.entaxy.esb.platform.runtime.modules/uniform-service/$ESB_ENTAXY_VERSION/xml/features -->
|
||||
<features name="ru.entaxy.esb.platform.runtime.modules-${project.version}"
|
||||
xmlns="http://karaf.apache.org/xmlns/features/v1.3.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.3.0 http://karaf.apache.org/xmlns/features/v1.3.0">
|
||||
|
||||
<!-- repository>mvn:ru.entaxy.esb/karaf-features/${project.version}/xml/features</repository -->
|
||||
|
||||
<feature name="common-soap" version="${project.version}">
|
||||
<configfile finalname="${karaf.etc}/uniform.service.support.cfg" override="false">
|
||||
mvn:ru.entaxy.esb.platform.runtime.modules/uniform-service/${project.version}/cfg/uniform.service.support
|
||||
</configfile>
|
||||
<configfile finalname="${karaf.etc}/uniform.service.ignite.cfg" override="false">
|
||||
mvn:ru.entaxy.esb.platform.runtime.modules/uniform-service/${project.version}/cfg/uniform.service.ignite
|
||||
</configfile>
|
||||
|
||||
<bundle>mvn:ru.entaxy.esb.platform.runtime.modules.uniform.service/support/${project.version}</bundle>
|
||||
<bundle>mvn:ru.entaxy.esb.platform.runtime.modules.uniform.service/connector/${project.version}</bundle>
|
||||
<capability>
|
||||
osgi.service;effective:=active;objectClass=org.apache.camel.Component;connection.name=entaxy-broker
|
||||
</capability>
|
||||
</feature>
|
||||
|
||||
<feature name="entaxy-uniform-service" version="${project.version}">
|
||||
<feature version="${project.version}">common-soap</feature>
|
||||
<configfile finalname="${karaf.etc}/uniform.exchange.passive.cfg" override="false">
|
||||
mvn:ru.entaxy.esb.platform.runtime.modules/uniform-service/${project.version}/cfg/uniform.exchange.passive
|
||||
</configfile>
|
||||
<bundle>mvn:ru.entaxy.esb.platform.runtime.modules.uniform.service/uniform-service-endpoint/${project.version}</bundle>
|
||||
</feature>
|
||||
|
||||
</features>
|
@ -1,9 +1,10 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>ru.entaxy.esb.platform.runtime</groupId>
|
||||
<artifactId>modules</artifactId>
|
||||
<version>1.9.0</version>
|
||||
<version>1.10.0</version>
|
||||
</parent>
|
||||
<groupId>ru.entaxy.esb.platform.runtime.modules</groupId>
|
||||
<artifactId>uniform-service</artifactId>
|
||||
@ -13,86 +14,26 @@
|
||||
<modules>
|
||||
<module>connector</module>
|
||||
<module>support</module>
|
||||
<module>uniform-service-endpoint</module>
|
||||
<module>service</module>
|
||||
</modules>
|
||||
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>attach-configs</id>
|
||||
<build>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>cfg</directory>
|
||||
<targetPath>${project.build.directory}/cfg</targetPath>
|
||||
</resource>
|
||||
</resources>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>build-helper-maven-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>attach-configs</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>attach-artifact</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<artifacts>
|
||||
<artifact>
|
||||
<file>target/cfg/uniform.service.ignite.cfg</file>
|
||||
<type>cfg</type>
|
||||
<classifier>uniform.service.ignite</classifier>
|
||||
</artifact>
|
||||
<artifact>
|
||||
<file>target/cfg/uniform.exchange.passive.cfg</file>
|
||||
<type>cfg</type>
|
||||
<classifier>uniform.exchange.passive</classifier>
|
||||
</artifact>
|
||||
<artifact>
|
||||
<file>target/cfg/uniform.service.support.cfg</file>
|
||||
<type>cfg</type>
|
||||
<classifier>uniform.service.support</classifier>
|
||||
</artifact>
|
||||
</artifacts>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<activation>
|
||||
<file>
|
||||
<exists>cfg</exists>
|
||||
</file>
|
||||
</activation>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>features</id>
|
||||
<id>attach-uniform-passive-service-resources</id>
|
||||
<activation>
|
||||
<file>
|
||||
<exists>src/main/resources/etc/init</exists>
|
||||
</file>
|
||||
</activation>
|
||||
<build>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>./</directory>
|
||||
<filtering>true</filtering>
|
||||
<includes>
|
||||
<include>**/features.xml</include>
|
||||
</includes>
|
||||
<targetPath>${project.build.directory}</targetPath>
|
||||
</resource>
|
||||
<resource>
|
||||
<directory>cfg</directory>
|
||||
<targetPath>${project.build.directory}/cfg</targetPath>
|
||||
</resource>
|
||||
</resources>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>build-helper-maven-plugin</artifactId>
|
||||
<version>1.12</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>attach-artifacts</id>
|
||||
<id>attach-uniform-passive-service-resources</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>attach-artifact</goal>
|
||||
@ -100,24 +41,17 @@
|
||||
<configuration>
|
||||
<artifacts>
|
||||
<artifact>
|
||||
<file>target/feature/features.xml</file>
|
||||
<file>
|
||||
${project.build.outputDirectory}/etc/init/artifacts/shared/uniform-passive-service-blueprint.xml
|
||||
</file>
|
||||
<type>xml</type>
|
||||
<classifier>features</classifier>
|
||||
<classifier>uniform.service</classifier>
|
||||
</artifact>
|
||||
|
||||
<artifact>
|
||||
<file>target/cfg/uniform.service.ignite.cfg</file>
|
||||
<type>cfg</type>
|
||||
<classifier>uniform.service.ignite</classifier>
|
||||
</artifact>
|
||||
<artifact>
|
||||
<file>target/cfg/uniform.exchange.passive.cfg</file>
|
||||
<type>cfg</type>
|
||||
<classifier>uniform.exchange.passive</classifier>
|
||||
</artifact>
|
||||
<artifact>
|
||||
<file>target/cfg/uniform.service.support.cfg</file>
|
||||
<type>cfg</type>
|
||||
<classifier>uniform.service.support</classifier>
|
||||
<file>${project.build.outputDirectory}/etc/init/install/uniform-service.properties</file>
|
||||
<type>properties</type>
|
||||
<classifier>uniform-service</classifier>
|
||||
</artifact>
|
||||
</artifacts>
|
||||
</configuration>
|
||||
@ -126,11 +60,6 @@
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<activation>
|
||||
<file>
|
||||
<exists>feature1/features.xml</exists>
|
||||
</file>
|
||||
</activation>
|
||||
</profile>
|
||||
</profiles>
|
||||
</project>
|
||||
|
@ -3,7 +3,7 @@
|
||||
~~~~~~licensing~~~~~~
|
||||
uniform-service
|
||||
==========
|
||||
Copyright (C) 2020 - 2023 EmDev LLC
|
||||
Copyright (C) 2020 - 2024 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
|
||||
@ -30,34 +30,41 @@
|
||||
<features name="ru.entaxy.esb.platform.runtime.modules-${project.version}"
|
||||
xmlns="http://karaf.apache.org/xmlns/features/v1.3.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.3.0 http://karaf.apache.org/xmlns/features/v1.3.0">
|
||||
xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.6.0 http://karaf.apache.org/xmlns/features/v1.6.0">
|
||||
|
||||
<!-- repository>mvn:ru.entaxy.esb/karaf-features/${project.version}/xml/features</repository -->
|
||||
|
||||
<feature name="common-soap" version="${project.version}">
|
||||
<feature name="common-soap" version="${project.version}" start-level="${bundle.startlevel.modules}">
|
||||
<configfile finalname="${karaf.etc}/uniform.service.support.cfg" override="false">
|
||||
mvn:ru.entaxy.esb.platform.runtime.modules/uniform-service/${project.version}/cfg/uniform.service.support
|
||||
</configfile>
|
||||
<configfile finalname="${karaf.etc}/uniform.service.ignite.cfg" override="false">
|
||||
mvn:ru.entaxy.esb.platform.runtime.modules/uniform-service/${project.version}/cfg/uniform.service.ignite
|
||||
</configfile>
|
||||
|
||||
<bundle>mvn:ru.entaxy.esb.platform.runtime.modules.uniform.service/support/${project.version}</bundle>
|
||||
<bundle>mvn:ru.entaxy.esb.platform.runtime.modules.uniform.service/connector/${project.version}</bundle>
|
||||
|
||||
<capability>
|
||||
osgi.service;effective:=active;objectClass=org.apache.camel.Component;connection.name=entaxy-broker
|
||||
osgi.service;effective:=active;objectClass=org.apache.camel.Component;connection.name=entaxy-broker,
|
||||
osgi.service;effective:=active;objectClass=org.apache.ignite.Ignite
|
||||
</capability>
|
||||
|
||||
</feature>
|
||||
|
||||
<feature name="entaxy-uniform-service" version="${project.version}">
|
||||
<feature name="entaxy-uniform-service" version="${project.version}" start-level="${bundle.startlevel.modules}">
|
||||
<feature version="${project.version}">common-soap</feature>
|
||||
<configfile finalname="${karaf.etc}/uniform.exchange.passive.cfg" override="false">
|
||||
mvn:ru.entaxy.esb.platform.runtime.modules/uniform-service/${project.version}/cfg/uniform.exchange.passive
|
||||
</configfile>
|
||||
<configfile finalname="${karaf.etc}/org.apache.felix.hc.generalchecks.HttpRequestsCheck-uniform_service.cfg" override="true">
|
||||
mvn:ru.entaxy.esb.platform.runtime.modules/uniform-service/${project.version}/cfg/org.apache.felix.hc.generalchecks.HttpRequestsCheck-uniform_service
|
||||
</configfile>
|
||||
<bundle>mvn:ru.entaxy.esb.platform.runtime.modules.uniform.service/uniform-service-endpoint/${project.version}</bundle>
|
||||
</configfile>
|
||||
<feature version="${project.version}">entaxy-uniform-passive-service</feature>
|
||||
<bundle start="true">mvn:ru.entaxy.esb.platform.runtime.modules.uniform.service/service/${project.version}</bundle>
|
||||
</feature>
|
||||
|
||||
<feature name="entaxy-uniform-passive-service" version="${project.version}" start-level="${bundle.startlevel.base}">
|
||||
<configfile finalname="${karaf.etc}/init/artifacts/shared/entaxy/runtime/service/uniform-passive-service/1.0.0/uniform-passive-service-1.0.0-blueprint.xml" override="false">
|
||||
mvn:ru.entaxy.esb.platform.runtime.modules/uniform-service/${project.version}/xml/uniform.service
|
||||
</configfile>
|
||||
<configfile finalname="${karaf.etc}/init/install/uniform-service.properties" override="false">
|
||||
mvn:ru.entaxy.esb.platform.runtime.modules/uniform-service/${project.version}/properties/uniform-service
|
||||
</configfile>
|
||||
</feature>
|
||||
|
||||
</features>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!-- -->
|
||||
<configfile finalname="etc/org.apache.felix.hc.generalchecks.HttpRequestsCheck-uniform_service.cfg" override="true">
|
||||
mvn:ru.entaxy.esb.platform.runtime.modules/uniform-service/1.9.0/cfg/org.apache.felix.hc.generalchecks.HttpRequestsCheck-uniform_service
|
||||
mvn:ru.entaxy.esb.platform.runtime.modules/uniform-service/1.10.0/cfg/org.apache.felix.hc.generalchecks.HttpRequestsCheck-uniform_service
|
||||
</configfile>
|
||||
<!-- -->
|
@ -2,7 +2,7 @@
|
||||
# ~~~~~~licensing~~~~~~
|
||||
# uniform-service
|
||||
# ==========
|
||||
# Copyright (C) 2020 - 2023 EmDev LLC
|
||||
# Copyright (C) 2020 - 2024 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
|
||||
@ -24,7 +24,7 @@
|
||||
# ~~~~~~/licensing~~~~~~
|
||||
###
|
||||
requests = [ \
|
||||
"-u admin:admin http://localhost:8181/cxf/uniform-exchange?wsdl => 200", \
|
||||
"http://localhost:${entaxy.org.osgi.service.http.port:-8181}/cxf/uniform-exchange?wsdl => 200", \
|
||||
]
|
||||
hc.tags = [ \
|
||||
"http", \
|
||||
|
@ -3,7 +3,7 @@
|
||||
<parent>
|
||||
<groupId>ru.entaxy.esb.platform.runtime.modules</groupId>
|
||||
<artifactId>uniform-service</artifactId>
|
||||
<version>1.9.0</version>
|
||||
<version>1.10.0</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
@ -23,13 +23,20 @@
|
||||
javax.jws.soap.*;version="[2.0.0,3.0.0)",
|
||||
javax.xml.ws.*;version="[2.2.0,3.0.0)",
|
||||
!com.sun.xml.*,
|
||||
ru.entaxy.esb.system.common.osgi,
|
||||
ru.entaxy.esb.system.common.osgi.impl,
|
||||
ru.entaxy.esb.system.common.exception,
|
||||
ru.entaxy.esb.system.common.aggregation.*,
|
||||
ru.entaxy.esb.system.common.interceptor,
|
||||
ru.entaxy.esb.system.common.util,
|
||||
ru.entaxy.esb.system.common.validator,
|
||||
org.apache.ignite,
|
||||
org.apache.ignite.internal.processors.cluster,
|
||||
org.apache.ignite.internal.processors.marshaller,
|
||||
org.apache.ignite.internal.util.lang.gridfunc,
|
||||
org.apache.ignite.spi.discovery.tcp.internal,
|
||||
org.apache.ignite.transactions,
|
||||
org.apache.ignite.internal.*,
|
||||
org.apache.ignite.lang,
|
||||
org.apache.ignite.configuration,
|
||||
*</bundle.osgi.import.pkg>
|
||||
</properties>
|
||||
|
||||
@ -55,21 +62,24 @@
|
||||
<version>${xerces.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>ru.entaxy.esb.system.commons</groupId>
|
||||
<artifactId>system-commons</artifactId>
|
||||
<groupId>ru.entaxy.esb.platform.runtime.core.objects-implementations.profile-implementation</groupId>
|
||||
<artifactId>profile-runtime-legacy-support</artifactId>
|
||||
<version>${project.version}</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>ru.entaxy.esb.system.registry.systems.profile</groupId>
|
||||
<artifactId>system-profile-api</artifactId>
|
||||
<groupId>ru.entaxy.esb.platform.runtime.core</groupId>
|
||||
<artifactId>core-support-runtime-legacy</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>ru.entaxy.esb.system.registry.systems.profile</groupId>
|
||||
<artifactId>system-profile-collector</artifactId>
|
||||
<groupId>ru.entaxy.esb.platform.runtime.core.objects-implementations.profile-implementation</groupId>
|
||||
<artifactId>profile-runtime-legacy-support</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.osgi</groupId>
|
||||
<artifactId>osgi.core</artifactId>
|
||||
|
@ -3,7 +3,7 @@
|
||||
~~~~~~licensing~~~~~~
|
||||
support
|
||||
==========
|
||||
Copyright (C) 2020 - 2023 EmDev LLC
|
||||
Copyright (C) 2020 - 2024 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
|
||||
@ -54,15 +54,6 @@
|
||||
</cm:default-properties>
|
||||
</cm:property-placeholder>
|
||||
|
||||
<cm:property-placeholder persistent-id="uniform.service.ignite" update-strategy="reload"
|
||||
placeholder-prefix="$ignite{">
|
||||
<cm:default-properties>
|
||||
<cm:property name="ignite.work.directory.path" value="/mnt/ignite"/>
|
||||
<cm:property name="ignite.backups" value="2"/>
|
||||
<cm:property name="ignite.addresses" value="127.0.0.1:47500,127.0.0.1:47501"/>
|
||||
</cm:default-properties>
|
||||
</cm:property-placeholder>
|
||||
|
||||
<!-- авторизация? -->
|
||||
<camelcxf:cxfEndpoint id="soap-active"
|
||||
address="/active_connector_test_consumer"
|
||||
@ -102,17 +93,19 @@
|
||||
<property name="maximumRedeliveries" value="${redelivery.maximumRedeliveries}"/>
|
||||
<property name="deadLetterUri" value="entaxy-broker:queue:entaxy.${redelivery.deadLetterQueue}"/>
|
||||
</bean>
|
||||
|
||||
|
||||
<reference id="igniteInstance" interface="org.apache.ignite.Ignite" availability="mandatory"/>
|
||||
|
||||
<bean id="igniteAggregationRepository"
|
||||
class="ru.entaxy.esb.system.common.aggregation.repo.IgniteAggregationRepository">
|
||||
<property name="bundleContext" ref="blueprintBundleContext"/>
|
||||
<property name="workDirectory" value="$ignite{ignite.work.directory.path}"/>
|
||||
<property name="backups" value="$ignite{ignite.backups}"/>
|
||||
<property name="ignite" ref="igniteInstance"/>
|
||||
<property name="maximumRedeliveries" value="${redelivery.maximumRedeliveries}"/>
|
||||
<property name="deadLetterUri" value="entaxy-broker:queue:entaxy.${redelivery.deadLetterQueue}"/>
|
||||
<property name="addresses" value="$ignite{ignite.addresses}"/>
|
||||
</bean>
|
||||
|
||||
<bean id="jmsExtension" class="ru.entaxy.platform.core.support.runtime.camel.aggregation.JmsCamelAggregateExtension"/>
|
||||
|
||||
<bean id="aggregateProcessor" class="ru.entaxy.esb.system.common.aggregation.hazelcast.DisconnectedMembershipListener">
|
||||
<property name="hazelcastInstance" ref="hazelcastInstance"/>
|
||||
</bean>
|
||||
@ -150,7 +143,7 @@
|
||||
</setHeader>
|
||||
<to uri="entaxy-broker:queue:entaxy.uniform.service.exchange.aggregate?exchangePattern=InOnly&asyncConsumer=true"/>
|
||||
|
||||
<log message="Message ${headers.ENTAXY_AcknowledgeMsgID} from ${headers.NTX_OutQueue} saved in acknowledge"
|
||||
<log message="${headers.NTX_loggingKey} Message ${headers.ENTAXY_AcknowledgeMsgID} from ${headers.NTX_OutQueue} saved in acknowledge"
|
||||
loggingLevel="DEBUG"/>
|
||||
</route>
|
||||
|
||||
@ -175,7 +168,7 @@
|
||||
<choice>
|
||||
<when>
|
||||
<simple>${headers.NTX_Acknowledge} == true</simple>
|
||||
<log message="No acknowledge for ${headers.ENTAXY_AcknowledgeMsgID}; system queue: ${headers.NTX_OutQueue}"
|
||||
<log message="${headers.NTX_loggingKey} No acknowledge for ${headers.ENTAXY_AcknowledgeMsgID}; system queue: ${headers.NTX_OutQueue}"
|
||||
loggingLevel="DEBUG"/>
|
||||
<toD uri="entaxy-broker:queue:${headers.NTX_OutQueue}?exchangePattern=InOnly"/>
|
||||
</when>
|
||||
@ -184,13 +177,13 @@
|
||||
|
||||
<route id="receive-acknowledge">
|
||||
<from uri="direct-vm:uniform-service-receive-acknowledge"/>
|
||||
<log message="Receive acknowledge with ackId ${headers.ENTAXY_AcknowledgeMsgID}" loggingLevel="INFO"/>
|
||||
<log message="${headers.NTX_loggingKey} Receive acknowledge with ackId ${headers.ENTAXY_AcknowledgeMsgID}" loggingLevel="INFO"/>
|
||||
<setHeader name="NTX_AckMessage">
|
||||
<simple>true</simple>
|
||||
</setHeader>
|
||||
<to uri="entaxy-broker:queue:entaxy.uniform.service.exchange.aggregate?exchangePattern=InOnly&asyncConsumer=true"/>
|
||||
|
||||
<log message="Message ${headers.ENTAXY_AcknowledgeMsgID} acknowledge received" loggingLevel="DEBUG"/>
|
||||
<log message="${headers.NTX_loggingKey} Message ${headers.ENTAXY_AcknowledgeMsgID} acknowledge received" loggingLevel="DEBUG"/>
|
||||
</route>
|
||||
|
||||
<!--ACTIVE-->
|
||||
@ -223,10 +216,10 @@
|
||||
<setHeader name="ENTAXY_EmptyContent">
|
||||
<simple resultType="Boolean">${headers.currSeconds} > {{test.empty.rate}}</simple>
|
||||
</setHeader>
|
||||
<log message="CXF-TEST-CONSUMER: EmptyContent=${headers.ENTAXY_EmptyContent}"
|
||||
<log message="${headers.NTX_loggingKey} CXF-TEST-CONSUMER: EmptyContent=${headers.ENTAXY_EmptyContent}"
|
||||
loggingLevel="INFO"/>
|
||||
<setHeader name="ENTAXY_Source">
|
||||
<constant>s1</constant>
|
||||
<constant>system-1c</constant>
|
||||
</setHeader>
|
||||
<setHeader name="ENTAXY_Destination">
|
||||
<simple>${headers.NTX_SystemId}</simple>
|
||||
@ -263,7 +256,7 @@
|
||||
<to uri="xslt:ru/entaxy/esb/platform/runtime/modules/uniform-service/xslt/PutPacketResponse.xsl?failOnNullBody=false"/>
|
||||
</when>
|
||||
<otherwise>
|
||||
<log message="CXF-TEST-CONSUMER: Unknown operation ${headers.operationName}" loggingLevel="ERROR"/>
|
||||
<log message="${headers.NTX_loggingKey} CXF-TEST-CONSUMER: Unknown operation ${headers.operationName}" loggingLevel="ERROR"/>
|
||||
</otherwise>
|
||||
</choice>
|
||||
</route>
|
||||
|
@ -2,7 +2,7 @@
|
||||
~~~~~~licensing~~~~~~
|
||||
support
|
||||
==========
|
||||
Copyright (C) 2020 - 2023 EmDev LLC
|
||||
Copyright (C) 2020 - 2024 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
|
||||
|
@ -2,7 +2,7 @@
|
||||
~~~~~~licensing~~~~~~
|
||||
support
|
||||
==========
|
||||
Copyright (C) 2020 - 2023 EmDev LLC
|
||||
Copyright (C) 2020 - 2024 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
|
||||
|
@ -2,7 +2,7 @@
|
||||
~~~~~~licensing~~~~~~
|
||||
support
|
||||
==========
|
||||
Copyright (C) 2020 - 2023 EmDev LLC
|
||||
Copyright (C) 2020 - 2024 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
|
||||
|
@ -2,7 +2,7 @@
|
||||
~~~~~~licensing~~~~~~
|
||||
support
|
||||
==========
|
||||
Copyright (C) 2020 - 2023 EmDev LLC
|
||||
Copyright (C) 2020 - 2024 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
|
||||
|
@ -2,7 +2,7 @@
|
||||
~~~~~~licensing~~~~~~
|
||||
support
|
||||
==========
|
||||
Copyright (C) 2020 - 2023 EmDev LLC
|
||||
Copyright (C) 2020 - 2024 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
|
||||
|
@ -2,7 +2,7 @@
|
||||
~~~~~~licensing~~~~~~
|
||||
support
|
||||
==========
|
||||
Copyright (C) 2020 - 2023 EmDev LLC
|
||||
Copyright (C) 2020 - 2024 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
|
||||
|
@ -2,7 +2,7 @@
|
||||
~~~~~~licensing~~~~~~
|
||||
support
|
||||
==========
|
||||
Copyright (C) 2020 - 2023 EmDev LLC
|
||||
Copyright (C) 2020 - 2024 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
|
||||
|
@ -2,7 +2,7 @@
|
||||
~~~~~~licensing~~~~~~
|
||||
support
|
||||
==========
|
||||
Copyright (C) 2020 - 2023 EmDev LLC
|
||||
Copyright (C) 2020 - 2024 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
|
||||
|
@ -2,7 +2,7 @@
|
||||
~~~~~~licensing~~~~~~
|
||||
support
|
||||
==========
|
||||
Copyright (C) 2020 - 2023 EmDev LLC
|
||||
Copyright (C) 2020 - 2024 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
|
||||
|
@ -2,7 +2,7 @@
|
||||
~~~~~~licensing~~~~~~
|
||||
support
|
||||
==========
|
||||
Copyright (C) 2020 - 2023 EmDev LLC
|
||||
Copyright (C) 2020 - 2024 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
|
||||
|
@ -2,7 +2,7 @@
|
||||
~~~~~~licensing~~~~~~
|
||||
support
|
||||
==========
|
||||
Copyright (C) 2020 - 2023 EmDev LLC
|
||||
Copyright (C) 2020 - 2024 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
|
||||
|
@ -2,7 +2,7 @@
|
||||
~~~~~~licensing~~~~~~
|
||||
support
|
||||
==========
|
||||
Copyright (C) 2020 - 2023 EmDev LLC
|
||||
Copyright (C) 2020 - 2024 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
|
||||
|
@ -2,7 +2,7 @@
|
||||
~~~~~~licensing~~~~~~
|
||||
support
|
||||
==========
|
||||
Copyright (C) 2020 - 2023 EmDev LLC
|
||||
Copyright (C) 2020 - 2024 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
|
||||
|
@ -2,7 +2,7 @@
|
||||
~~~~~~licensing~~~~~~
|
||||
support
|
||||
==========
|
||||
Copyright (C) 2020 - 2023 EmDev LLC
|
||||
Copyright (C) 2020 - 2024 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
|
||||
|
@ -2,7 +2,7 @@
|
||||
~~~~~~licensing~~~~~~
|
||||
support
|
||||
==========
|
||||
Copyright (C) 2020 - 2023 EmDev LLC
|
||||
Copyright (C) 2020 - 2024 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
|
||||
|
@ -1,175 +0,0 @@
|
||||
ЛИЦЕНЗИЯ ОГРАНИЧЕННОГО ПРИМЕНЕНИЯ
|
||||
|
||||
Настоящий документ устанавливает для Пользователя условия применения Базовой (некоммерческой)
|
||||
версии лицензии для пробного использования программного обеспечения ENTAXY, принадлежащего
|
||||
Правообладателю – Обществу с ограниченной ответственностью "ЕМДЕВ" (ОГРН 1057810026658, ИНН
|
||||
7813313860, юридический адрес: 197022, Россия, г. Санкт-Петербург, ул. Профессора Попова,
|
||||
д. 23, литера В, помещение 3Н), расположенной в сети Интернет по адресу
|
||||
https://www.emdev.ru/about (далее - Компания).
|
||||
|
||||
Используя или получая доступ к Программному обеспечению, или нажав «Я согласен с Условиями»
|
||||
(или аналогичную кнопку или флажок) после загрузки или установки Программного обеспечения,
|
||||
Пользователь выражает свое согласие на обязательность условий и ограничений, изложенных в
|
||||
настоящем документе, в противном случае, он должен не использовать или не получать доступ
|
||||
к Программному обеспечению.
|
||||
|
||||
1. ТЕРМИНЫ И ОПРЕДЕЛЕНИЯ
|
||||
|
||||
a) ПО – Программное обеспечение, интеграционная шина «ЭНТАКСИ» (ENTAXY) в любой ее версии
|
||||
или редакции, исключительные права на которую принадлежат Правообладателю.
|
||||
b) Правообладатель (Компания) – ООО «ЕМДЕВ», ОГРН 1057810026658, ИНН 7813313860, исключительные
|
||||
права которого подтверждаются Свидетельством о государственной регистрации в Реестре программ
|
||||
для ЭВМ № 2021610848 от 19.01.2021 года.
|
||||
c) Пользователь – юридическое или физическое лицо, получившее через скачивание с сайта
|
||||
https://entaxy.ru или иным образом, дистрибутив ПО, пользующееся ПО.
|
||||
d) ИС – интеллектуальная собственность – закреплённое законом исключительное право, а также
|
||||
личные неимущественные права авторов произведений на результат интеллектуальной деятельности.
|
||||
e) Подписка – это коммерческое предложение Правообладателя, состоящее из Лицензии на использование
|
||||
ПО и доступа к технической поддержке программного обеспечения на срок Подписки. Подписка
|
||||
включает предоставление Пользователю неисключительного права использования ПО, в том числе
|
||||
получение обновлений функционала ПО и безопасности ПО, исправление ошибок ПО и получение
|
||||
патчей с обновлениями и исправлениями программного обеспечения. Подписка приобретается
|
||||
Пользователем на период времени, указанный в Сертификате. Количество подписок устанавливается
|
||||
для каждого Пользователя индивидуально в Сертификате.
|
||||
f) Сертификат – документ, выдаваемый Дистрибъютором или Авторизованным партнёром (Партнёром),
|
||||
подтверждающий факт приобретения физическим или юридическим лицом Подписки на программное
|
||||
обеспечение в ограниченном объёме и на определённый период времени.
|
||||
g) Лицензия (простая (неисключительная) – совокупность ограниченных прав использования ПО,
|
||||
предоставленных Пользователю согласно условиям Подписки.
|
||||
h) Библиотека – совокупность подпрограмм и объектов, используемых для разработки программного
|
||||
обеспечения.
|
||||
i) Исходный код – текст компьютерной программы на каком-либо языке программирования, состоящий
|
||||
из одного или нескольких файлов, который может быть прочтён человеком.
|
||||
j) Объектный код – файл (часть машинного кода) с промежуточным представлением отдельного модуля
|
||||
программы, полученный в результате обработки исходного кода, еще не связанный в полную программу.
|
||||
Это машинный код для одной конкретной библиотеки или модуля, который будет составлять готовый
|
||||
продукт.
|
||||
k) Некоммерческое использование – индивидуальное личное использование Пользователем программного
|
||||
обеспечения с целью обучения работе с Программным обеспечением, для оценки или демонстрации
|
||||
возможностей Программного обеспечения, при котором, Пользователем не извлекается коммерческая
|
||||
выгода и/или не идёт в доход денежное вознаграждение при использовании Программного обеспечения.
|
||||
|
||||
2. ДОПУСТИМЫЕ СПОСОБЫ ИСПОЛЬЗОВАНИЯ ПРОГРАММНОГО ОБЕСПЕЧЕНИЯ
|
||||
|
||||
2.1. Правообладатель предоставляет Пользователю ограниченное право использования Программного
|
||||
обеспечения на условиях простой (неисключительной) лицензии в объёме, ограниченном правом
|
||||
воспроизведения полной рабочей версии программного обеспечения, новых версий программного обеспечения
|
||||
в памяти оборудования и его запуска на оборудовании в соответствии со ст. 1280 ГК РФ.
|
||||
2.2. Право на использование Программного обеспечения, предоставляемое Пользователю, носит
|
||||
неисключительный характер.
|
||||
2.3. Пользователю предоставляется всемирная, неисключительная, не подлежащая сублицензированию,
|
||||
лицензия на ограниченное использование Программного обеспечения.
|
||||
2.4. Пользователь, имеющий Базовую (некоммерческую) версию лицензии для пробного использования
|
||||
имеет право приобрести Подписку на программное обеспечение. В этом случае Пользователь обязан
|
||||
обратиться в службу поддержки Правообладателя по адресу: https://entaxy.ru/ для изменения
|
||||
вида лицензии с Базовой бесплатной версии на Подписки.
|
||||
2.5. Срок использования скачанной Пользователем базовой (некоммерческой) версии лицензии для
|
||||
пробного использования программного обеспечения – не ограничен.
|
||||
2.6. Использование Пользователем настоящего программного обеспечения в целях разработки,
|
||||
модификации, обновления другого ПО, принадлежащего третьим лицам, а не Правообладателю,
|
||||
без разрешения Правообладателя не допускается.
|
||||
|
||||
3. АВТОРСКОЕ ПРАВО.
|
||||
|
||||
3.1. Все авторские права, все права интеллектуальной собственности на Программное обеспечение
|
||||
и любые его копии принадлежат Правообладателю.
|
||||
3.2. Все авторские права, все права интеллектуальной собственности в отношении любого контента,
|
||||
к которому можно получить доступ с помощью Программного обеспечения, является собственностью
|
||||
соответствующего владельца контента и защищается применимым законодательством об авторском
|
||||
праве или другими законами и договорами об интеллектуальной собственности.
|
||||
3.3. Условия использования Программного обеспечения.
|
||||
Лицензия, предоставленная Пользователю, действительна только в том случае, если Пользователь
|
||||
придерживается следующих условий:
|
||||
3.3.1. Принятие уведомлений об авторских правах. Пользователю запрещается удалять или изменять
|
||||
какие-либо уведомления об авторских правах или лицензиях, которые появляются при использовании
|
||||
Программного обеспечения или на нем.
|
||||
3.3.2. Модификация. Пользователю запрещается модифицировать, изменять, декомпилировать,
|
||||
расшифровывать, дизассемблировать, переводить или реверсировать, перепроектировать
|
||||
Программное обеспечение.
|
||||
3.3.3. Распространение. Пользователю запрещается сублицензировать, передавать право использования
|
||||
ПО или иным образом распространять или предоставлять Программное обеспечение любой третьей стороне.
|
||||
3.3.4. SaaS. За исключением случаев, когда это разрешено Правообладателем, Пользователю запрещено
|
||||
использовать Программное обеспечение в коммерческих целях для оказания услуг третьим лицам.
|
||||
|
||||
4. ОТВЕТСТВЕННОСТЬ ПРАВООБЛАДАТЕЛЯ ПРИ НАРУШЕНИИ ПОЛЬЗОВАТЕЛЕМ ПРАВ «ИС»
|
||||
|
||||
4.1. Правообладатель не несет никаких обязательств в отношении каких-либо претензий к Пользователю
|
||||
на предмет нарушения последним прав Интеллектуальной собственности, возникших в связи с
|
||||
использованием Пользователем:
|
||||
4.1.1. Любых компонентов программного обеспечения с открытым исходным кодом, включенных в
|
||||
Программное обеспечение;
|
||||
4.1.2. Любого нарушения правил использования Программного обеспечения, установленного условиями
|
||||
настоящего соглашения;
|
||||
4.1.3. Любого использования Программного обеспечения в сочетании с другими ПО, оборудованием,
|
||||
или данными, не предоставленными Пользователю Правообладателем;
|
||||
4.1.4. Любого изменения Программного обеспечения любым третьим лицом, а не Правообладателем.
|
||||
|
||||
|
||||
5. НАСТОЯЩИМ ПРАВООБЛАДАТЕЛЬ ЗАЯВЛЯЕТ, ЧТО ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ ПРЕДОСТАВЛЯЕТСЯ ПОЛЬЗОВАТЕЛЮ
|
||||
ПО ПРИНЦИПУ «AS IS» - «КАК ЕСТЬ». НИ ПРИ КАКИХ ОБСТОЯТЕЛЬСТВАХ ПРАВООБЛАДАТЕЛЬ НЕ ГАРАНТИРУЕТ
|
||||
И НЕ ОБЕЩАЕТ, ЧТО ПРЕДОСТАВЛЕННОЕ ИМ ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ БУДЕТ ПОДХОДИТЬ ИЛИ НЕ ПОДХОДИТЬ
|
||||
ДЛЯ КОНКРЕТНЫХ ЦЕЛЕЙ ПОЛЬЗОВАТЕЛЯ, ЧТО ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ БУДЕТ ОТВЕЧАТЬ ВСЕМ КОММЕРЧЕСКИМ
|
||||
И ЛИЧНЫМ СУБЪЕКТИВНЫМ ОЖИДАНИЯМ ПОЛЬЗОВАТЕЛЯ, ЧТО ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ БУДЕТ РАБОТАТЬ
|
||||
ИСПРАВНО, БЕЗ ТЕХНИЧЕСКИХ ОШИБОК, БЫСТРО И БЕСПЕРЕБОЙНО.
|
||||
|
||||
6. ОГРАНИЧЕНИЕ ОТВЕТСТВЕННОСТИ.
|
||||
НИ ПРИ КАКИХ ОБСТОЯТЕЛЬСТВАХ ПРАВООБЛАДАТЕЛЬ ИЛИ ЕГО АФФИЛЛИРОВАННЫЕ ЛИЦА НЕ НЕСУТ ПЕРЕД ПОЛЬЗОВАТЕЛЕМ
|
||||
ОТВЕТСТВЕННОСТИ ЗА ЛЮБЫЕ ПРЯМЫЕ ИЛИ КОСВЕННЫЕ УБЫТКИ ПОЛЬЗОВАТЕЛЯ, ЕГО РАСХОДЫ ИЛИ РЕАЛЬНЫЙ УЩЕРБ,
|
||||
ВКЛЮЧАЯ, ПОМИМО ПРОЧЕГО, ПРОСТОИ; УТРАТУ БИЗНЕСА; УПУЩЕННУЮ ВЫГОДУ; НЕДОПОЛУЧЕННУЮ ПРИБЫЛЬ;
|
||||
ПОТЕРЮ ИЛИ ПОВРЕЖДЕНИЕ ДАННЫХ, ИМУЩЕСТВА И ИНОЕ.
|
||||
ОГРАНИЧЕНИЯ ПРИМЕНЯЮТСЯ НЕЗАВИСИМО ОТ ОСНОВАНИЯ НАСТУПЛЕНИЯ ОТВЕТСТВЕННОСТИ; В ТОМ ЧИСЛЕ ВСЛЕДСТВИЕ
|
||||
ДЕЙСТВИЯ ИЛИ БЕЗДЕЙСТВИЯ, НЕБРЕЖНОСТИ, УМЫСЛА, ПРЯМОГО ИЛИ КОСВЕННОГО; НЕОСТОРОЖНОСТИ; ЗАБЛУЖДЕНИЯ;
|
||||
КЛЕВЕТЫ; НАРУШЕНИЯ КОНФИДЕНЦИАЛЬНОСТИ ИЛИ ПРАВА ИНТЕЛЛЕКТУАЛЬНОЙ СОБСТВЕННОСТИ; ИЛИ ЛЮБОЕ ДРУГОЕ
|
||||
ОСНОВАНИЕ НАСТУПЛЕНИЯ ОТВЕТСТВЕННОСТИ.
|
||||
|
||||
7. ОБЯЗАННОСТЬ ПОЛЬЗОВАТЕЛЯ:
|
||||
Не осуществлять самостоятельно и (или) с привлечением третьих лиц нижеследующие действия
|
||||
(включая, но не ограничиваясь) по:
|
||||
-дизассемблированию и (или) декомпилированию (преобразованию объектного кода в исходный код)
|
||||
Программного обеспечения;
|
||||
-модификации Программного обеспечения, в том числе вносить изменения в объектный код, исходный
|
||||
код Программного обеспечения, за исключением тех изменений, которые вносятся средствами,
|
||||
включёнными в Программное обеспечение и описанными непосредственно в документации к нему;
|
||||
-созданию условий для использования Программного обеспечения лицами, не имеющими прав на
|
||||
использование данного Программного обеспечения, включая (но не ограничиваясь) вмешательство
|
||||
третьих лиц в функционирование Программного обеспечения, предоставление третьим лицам доступа
|
||||
к исследованию и (или) замене настроек Программного обеспечения, включая его первичную установку;
|
||||
-распространению Программного обеспечения в целом или в части (включая приложенную к нему документацию).
|
||||
|
||||
8. БИБЛИОТЕКА ПО. ИСПОЛЬЗУЕМЫЕ ПРОГРАММНЫЕ СРЕДСТВА.
|
||||
|
||||
8.1. Настоящим, Правообладатель заверяет, что Библиотека программного обеспечения состоит из
|
||||
лицензионных продуктов, используемых на законных основаниях, а
|
||||
именно https://entaxy.ru/libs/licenses/root-aggregated.deps.
|
||||
8.2. Любые программные средства, применяемые Пользователем при работе с ПО, должны быть
|
||||
совместимы с библиотекой ПО, указанной в п.8.1. настоящего соглашения.
|
||||
8.3. Перечень внешних модулей ПО, указанный в п.8.1 настоящего соглашения, может изменяться
|
||||
Правообладателем в одностороннем порядке, в зависимости от выпуска релизов программного обеспечения,
|
||||
содержащих все изменения и дополнения программного обеспечения.
|
||||
|
||||
9. ВНЕСЕНИЕ ИЗМЕНЕНИЙ В ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ.
|
||||
|
||||
9.1. Программное обеспечение, интеграционная шина «ЭНТАКСИ» (ENTAXY) является свободно распространяемым
|
||||
программным обеспечением.
|
||||
9.2. Пользователь имеет право вносить изменения в исходный код программного обеспечения исключительно
|
||||
с согласия Правообладателя в порядке предложения изменений/правок/дополнений через механизм
|
||||
«Pull Requests» в открытом репозитории Правообладателя по адресу: https://git.entaxy.ru/entaxy/entaxy-public.
|
||||
9.3. Любые изменения программного обеспечения, осуществляемые Пользователем без соблюдения условий
|
||||
пункта 9.2. настоящего документа, являются нарушением авторских и смежных прав Правообладателя,
|
||||
прав интеллектуальной собственности Правообладателя и влекут применение к Пользователю мер
|
||||
ответственности в соответствии с условиями настоящей Лицензии, а также применимого законодательства
|
||||
Российской Федерации.
|
||||
|
||||
10. ЗАКЛЮЧИТЕЛЬНЫЕ ПОЛОЖЕНИЯ.
|
||||
|
||||
10.1. В случае нарушения Пользователем любого из условий настоящей Лицензии, Правообладатель имеет
|
||||
право взыскать с Пользователя любые причинённые таким нарушением убытки, реальный ущерб,
|
||||
недополученную прибыль, упущенную выгоду, а также в случае нарушения Пользователем условий
|
||||
пункта 9.2 настоящего соглашения, в том числе, взыскать с Пользователя штраф в размере
|
||||
2 000 000 (Два миллиона) рублей за каждый установленный случай несанкционированного изменения
|
||||
исходного или объектного кода Программного обеспечения «Энтакси» (Entaxy).
|
||||
10.2. В рамках исполнения Пользователем обязательств по настоящей Лицензии, применимое
|
||||
законодательство – Российской Федерации.
|
||||
10.3. Если какое-либо положение настоящей Лицензии будет признано судом недействительным,
|
||||
остальные положения будут продолжать своё действие, а Пользователь будет обязан продолжать
|
||||
исполнять свои обязанности в соответствии с этими положениями.
|
@ -1,64 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<groupId>ru.entaxy.esb.platform.runtime.modules</groupId>
|
||||
<artifactId>uniform-service</artifactId>
|
||||
<version>1.9.0</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>ru.entaxy.esb.platform.runtime.modules.uniform.service</groupId>
|
||||
<artifactId>uniform-service-endpoint</artifactId>
|
||||
<packaging>bundle</packaging>
|
||||
|
||||
<name>ENTAXY :: PLATFORM :: RUNTIME :: MODULES :: UNIFORM :: SERVICE :: ENDPOINT</name>
|
||||
<description>ENTAXY :: PLATFORM :: RUNTIME :: MODULES :: UNIFORM :: SERVICE :: ENDPOINT</description>
|
||||
|
||||
<properties>
|
||||
<bundle.osgi.import.pkg>
|
||||
javax.xml.soap*;version="[1.3,2)",
|
||||
javax.jws.*;version="[2.0.0,3.0.0)",
|
||||
javax.jws.soap.*;version="[2.0.0,3.0.0)",
|
||||
javax.xml.ws.*;version="[2.2.0,3.0.0)",
|
||||
ru.entaxy.esb.system.core.common.error.handler.interceptor,
|
||||
ru.entaxy.esb.system.core.template,
|
||||
ru.entaxy.esb.system.profile.commons,
|
||||
ru.entaxy.esb.system.profile.commons.connectors.in,
|
||||
ru.entaxy.esb.system.profile.commons.connectors.out,
|
||||
javax.xml.bind;version="[2,3)",
|
||||
javax.xml.bind.annotation;version="[2,3)",
|
||||
javax.persistence;version="[2,3)",
|
||||
ru.entaxy.esb.platform.runtime.modules.uniform-service.wsdl,
|
||||
ru.entaxy.esb.platform.runtime.modules.uniform-service.xslt,
|
||||
ru.entaxy.esb.platform.runtime.modules.uniform-service.xslt.type,
|
||||
*
|
||||
</bundle.osgi.import.pkg>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>ru.entaxy.esb.system.commons</groupId>
|
||||
<artifactId>system-commons</artifactId>
|
||||
<version>${project.version}</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>ru.entaxy.esb.system.registry.systems.profile</groupId>
|
||||
<artifactId>system-profile-api</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>ru.entaxy.esb.system.registry.systems.profile</groupId>
|
||||
<artifactId>system-profile-collector</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.cxf</groupId>
|
||||
<artifactId>cxf-rt-transports-http</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.cxf</groupId>
|
||||
<artifactId>cxf-rt-transports-http-jetty</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
@ -1,139 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
~~~~~~licensing~~~~~~
|
||||
uniform-service-exchange-endpoint
|
||||
==========
|
||||
Copyright (C) 2020 - 2023 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"
|
||||
xmlns:camelcxf="http://camel.apache.org/schema/blueprint/cxf"
|
||||
xmlns:cxf="http://cxf.apache.org/blueprint/core"
|
||||
xmlns:esbExchange="http://www.entaxy.ru/connector/universal/esb/1.0"
|
||||
xmlns:soap-type="http://www.entaxy.ru/ExchangeTypes/1.0"
|
||||
xsi:schemaLocation="
|
||||
http://www.osgi.org/xmlns/blueprint/v1.0.0 https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
|
||||
http://cxf.apache.org/blueprint/core http://cxf.apache.org/schemas/blueprint/core.xsd
|
||||
">
|
||||
|
||||
<cm:property-placeholder persistent-id="uniform.exchange.passive" update-strategy="reload">
|
||||
<cm:default-properties>
|
||||
<cm:property name="passive.endpoint.address" value="/uniform-exchange"/>
|
||||
<cm:property name="passive.endpoint.validation" value="true"/>
|
||||
</cm:default-properties>
|
||||
</cm:property-placeholder>
|
||||
|
||||
<camelcxf:cxfEndpoint id="uniform-service-endpoint-passive"
|
||||
address="${passive.endpoint.address}"
|
||||
endpointName="esbExchange:esbExchangeSOAP"
|
||||
serviceName="esbExchange:esbExchange"
|
||||
wsdlURL="ru/entaxy/esb/platform/runtime/modules/uniform-service/wsdl/soap-passive.wsdl">
|
||||
<camelcxf:properties>
|
||||
<entry key="dataFormat" value="PAYLOAD"/>
|
||||
<entry key="mtom-enabled" value="false"/>
|
||||
<entry key="schema-validation-enabled" value="false"/>
|
||||
</camelcxf:properties>
|
||||
<camelcxf:inInterceptors>
|
||||
<ref component-id="authInterceptor"/>
|
||||
<ref component-id="systemInterceptor"/>
|
||||
<ref component-id="validator"/>
|
||||
</camelcxf:inInterceptors>
|
||||
<camelcxf:outFaultInterceptors>
|
||||
<ref component-id="handleOutFaultInterceptor"/>
|
||||
</camelcxf:outFaultInterceptors>
|
||||
</camelcxf:cxfEndpoint>
|
||||
|
||||
<bean id="handleOutFaultInterceptor"
|
||||
class="ru.entaxy.esb.system.core.common.error.handler.interceptor.HandleOutFaultInterceptor">
|
||||
<argument ref="uniform-service-passive-connector-context"/>
|
||||
<argument value="direct:error_from_cxf"/>
|
||||
</bean>
|
||||
|
||||
<bean id="validator" class="ru.entaxy.esb.system.common.validator.ValidateInterceptor">
|
||||
<property name="schemaValidationEnabled" value="${passive.endpoint.validation}"/>
|
||||
</bean>
|
||||
<reference id="systemInterceptor" interface="org.apache.cxf.phase.PhaseInterceptor"
|
||||
filter="(type=system)"/>
|
||||
<reference id="authInterceptor" interface="org.apache.cxf.phase.PhaseInterceptor"
|
||||
filter="(type=authentication)"/>
|
||||
|
||||
<!-- OUT-->
|
||||
<bean id="soapOutConnectorRegistry" class="ru.entaxy.esb.system.profile.commons.ConnectorRegistry"
|
||||
activation="eager"/>
|
||||
<reference-list id="outConnector"
|
||||
interface="ru.entaxy.esb.system.profile.commons.connectors.out.OutConnector"
|
||||
filter="(endpointName=uniform-passive-service)" availability="optional">
|
||||
<reference-listener ref="soapOutConnectorRegistry"
|
||||
bind-method="register" unbind-method="unregister"/>
|
||||
</reference-list>
|
||||
|
||||
<!-- IN-->
|
||||
<bean id="soapInConnectorRegistry" class="ru.entaxy.esb.system.profile.commons.ConnectorRegistry"
|
||||
activation="eager"/>
|
||||
<reference-list id="inConnector"
|
||||
interface="ru.entaxy.esb.system.profile.commons.connectors.in.InConnector"
|
||||
filter="(endpointName=uniform-passive-service)" availability="optional">
|
||||
<reference-listener ref="soapInConnectorRegistry"
|
||||
bind-method="register" unbind-method="unregister"/>
|
||||
</reference-list>
|
||||
|
||||
<camelContext id="uniform-service-passive-connector-context" xmlns="http://camel.apache.org/schema/blueprint"
|
||||
errorHandlerRef="commonErrorHandler">
|
||||
|
||||
<errorHandler id="commonErrorHandler" redeliveryPolicyRef="noRedelivery"
|
||||
type="DeadLetterChannel" deadLetterUri="direct-vm:commonErrorEndpoint"/>
|
||||
<redeliveryPolicyProfile id="noRedelivery" disableRedelivery="true"/>
|
||||
|
||||
<route id="error_from_cxf">
|
||||
<from uri="direct:error_from_cxf"/>
|
||||
<log message="cxf message: ${body}" loggingLevel="DEBUG"/>
|
||||
<log message="headers: ${headers}\n" loggingLevel="DEBUG"/>
|
||||
<to uri="direct-vm:cxfErrorEndpoint"/>
|
||||
</route>
|
||||
|
||||
<route id="cxf-endpoint" streamCache="true">
|
||||
<from uri="cxf:bean:uniform-service-endpoint-passive"/>
|
||||
<setHeader name="ENTAXY_EndpointName">
|
||||
<simple>uniform-service</simple>
|
||||
</setHeader>
|
||||
<choice>
|
||||
<when>
|
||||
<simple>${headers.operationName} == 'PutPackets'</simple>
|
||||
<bean ref="soapInConnectorRegistry" method="send"/>
|
||||
</when>
|
||||
<when>
|
||||
<simple>${headers.operationName} == 'ConfirmGettingPackets'</simple>
|
||||
<bean ref="soapOutConnectorRegistry" method="send"/>
|
||||
</when>
|
||||
<when>
|
||||
<simple>${headers.operationName} == 'GetPackets'</simple>
|
||||
<bean ref="soapOutConnectorRegistry" method="send"/>
|
||||
</when>
|
||||
<otherwise>
|
||||
<log message="uniform-service unknown operation: ${headers.operationName}" loggingLevel="WARN"/>
|
||||
</otherwise>
|
||||
</choice>
|
||||
</route>
|
||||
</camelContext>
|
||||
</blueprint>
|
Reference in New Issue
Block a user