- change version on 1.8
- add docker-compose - update entaxy
This commit is contained in:
@ -18,6 +18,7 @@
|
||||
# ~~~~~~/licensing~~~~~~
|
||||
###
|
||||
welcome = \
|
||||
\r\n\
|
||||
\u001B[36m :::::::::: :::: ::: ::::::::::: ::: ::: ::: ::: ::: \u001B[0m\r\n\
|
||||
\u001B[36m :+: :+:+: :+: :+: :+: :+: :+: :+: :+: :+: \u001B[0m\r\n\
|
||||
\u001B[36m +:+ :+:+:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ \u001B[0m\r\n\
|
||||
|
@ -26,52 +26,62 @@
|
||||
xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.3.0 http://karaf.apache.org/xmlns/features/v1.3.0">
|
||||
|
||||
<repository>mvn:org.apache.camel.karaf/apache-camel/${camel.version}/xml/features</repository>
|
||||
<repository>mvn:ru.entaxy.esb.distribution/entaxy-karaf-features/${project.version}/xml/features</repository>
|
||||
|
||||
<feature name="base" version="${project.version}">
|
||||
<feature version="${project.version}">connecting</feature>
|
||||
<feature name="entaxy-platform-base" version="${project.version}" start-level="70">
|
||||
<feature version="${project.version}">entaxy-branding</feature>
|
||||
<feature version="${project.version}">connecting</feature>
|
||||
</feature>
|
||||
|
||||
<feature name="entaxy-branding" version="${project.version}" start-level="70">
|
||||
<configfile finalname="${karaf.etc}/branding.properties" override="true">
|
||||
mvn:ru.entaxy.esb.platform.runtime.base/branding/${project.version}/properties/branding
|
||||
</configfile>
|
||||
</feature>
|
||||
|
||||
<feature name="connecting" version="${project.version}">
|
||||
<feature name="connecting" version="${project.version}" start-level="70">
|
||||
<feature version="${project.version}">generator</feature>
|
||||
<bundle>mvn:ru.entaxy.esb.platform.runtime.base.connecting/connection/${project.version}</bundle>
|
||||
<feature version="${project.version}">producer</feature>
|
||||
<feature version="${project.version}">adapter</feature>
|
||||
</feature>
|
||||
|
||||
<feature name="generator" version="${project.version}">
|
||||
<feature name="generator" version="${project.version}" start-level="70">
|
||||
<bundle>mvn:ru.entaxy.esb.platform.runtime.base.connecting.generator/generator-api/${project.version}</bundle>
|
||||
<bundle>mvn:ru.entaxy.esb.platform.runtime.base.connecting.generator/ftl-generator/${project.version}</bundle>
|
||||
<bundle>mvn:ru.entaxy.esb.platform.runtime.base.connecting.generator/generator-factory/${project.version}</bundle>
|
||||
</feature>
|
||||
|
||||
<feature name="producer" version="${project.version}">
|
||||
<feature name="producer" version="${project.version}" start-level="70">
|
||||
<feature>camel-gson</feature>
|
||||
<bundle>mvn:ru.entaxy.esb.platform.runtime.base.connecting.producer/producer-api/${project.version}</bundle>
|
||||
<bundle>mvn:ru.entaxy.esb.platform.runtime.base.connecting.producer/connection-producer/${project.version}</bundle>
|
||||
</feature>
|
||||
|
||||
<feature name="adapter" version="${project.version}">
|
||||
<feature name="adapter" version="${project.version}" start-level="70">
|
||||
<feature version="${project.version}">adapters-core</feature>
|
||||
<feature version="${project.version}">file-adapter</feature>
|
||||
<feature version="${project.version}">artemis-adapter</feature>
|
||||
<feature version="${project.version}">postgresql-adapter</feature>
|
||||
</feature>
|
||||
|
||||
<feature name="adapters-core" version="${project.version}">
|
||||
<feature name="adapters-core" version="${project.version}" start-level="70">
|
||||
<bundle>mvn:ru.entaxy.esb.platform.runtime.base.connecting.adapter/adapters-core/${project.version}</bundle>
|
||||
</feature>
|
||||
|
||||
<feature name="file-adapter" version="${project.version}">
|
||||
<bundle>mvn:org.apache.camel/camel-file/${camel.version}</bundle>
|
||||
<feature name="file-adapter" version="${project.version}" start-level="70">
|
||||
<!-- bundle>mvn:org.apache.camel/camel-file/${camel.version}</bundle -->
|
||||
<feature prerequisite="true" version="${camel.version}">camel-core</feature>
|
||||
<bundle>mvn:ru.entaxy.esb.platform.runtime.base.connecting.adapter/file-adapter/${project.version}</bundle>
|
||||
</feature>
|
||||
|
||||
<feature name="artemis-adapter" version="${project.version}">
|
||||
<bundle>mvn:org.apache.camel/camel-jms/${camel.version}</bundle>
|
||||
<feature name="artemis-adapter" version="${project.version}" start-level="70">
|
||||
<!-- bundle>mvn:org.apache.camel/camel-jms/${camel.version}</bundle -->
|
||||
<feature prerequisite="true" version="${camel.version}">camel-jms</feature>
|
||||
<bundle>mvn:ru.entaxy.esb.platform.runtime.base.connecting.adapter/artemis-adapter/${project.version}</bundle>
|
||||
</feature>
|
||||
|
||||
<feature name="postgresql-adapter" version="${project.version}">
|
||||
<feature name="postgresql-adapter" version="${project.version}" start-level="70">
|
||||
<bundle>wrap:mvn:org.postgresql/postgresql/${postgresql.version}</bundle>
|
||||
<bundle>mvn:org.apache.camel/camel-jdbc/${camel.version}</bundle>
|
||||
<bundle>mvn:ru.entaxy.esb.platform.runtime.base.connecting.adapter/postgresql-adapter/${project.version}</bundle>
|
||||
|
@ -24,10 +24,32 @@
|
||||
<extensions>true</extensions>
|
||||
<configuration>
|
||||
<instructions>
|
||||
<Entaxy-Initializer-Class>ru.entaxy.esb.platform.runtime.core.initializer.connection.ConnectionInitializer?id=connections&repeat=false&depends-on=core,datasources</Entaxy-Initializer-Class>
|
||||
<Entaxy-Initializer-Class>ru.entaxy.esb.platform.runtime.core.initializer.connection.ConnectionInitializer?id=connections&repeat=true&depends-on=core,datasources</Entaxy-Initializer-Class>
|
||||
</instructions>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>build-helper-maven-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>attach-artifacts</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>attach-artifact</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<artifacts>
|
||||
<artifact>
|
||||
<file>src/main/non-packaged-resources/etc/init/entaxy-platform-connections.json</file>
|
||||
<type>json</type>
|
||||
<classifier>init-config</classifier>
|
||||
</artifact>
|
||||
</artifacts>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
|
@ -0,0 +1,54 @@
|
||||
{
|
||||
"connections": [
|
||||
{
|
||||
"nodeType": "connection",
|
||||
"uuid": "connection-uuid-1",
|
||||
"name": "entaxy-file",
|
||||
"adapterName": "fileAdapter",
|
||||
"platform": true,
|
||||
"pathParameter": "data/shared",
|
||||
"properties": {},
|
||||
"options": {
|
||||
"noop": true,
|
||||
"fileName": "default.txt",
|
||||
"allowNullBody": "true"
|
||||
}
|
||||
},
|
||||
{
|
||||
"nodeType": "connection",
|
||||
"uuid": "connection-uuid-2",
|
||||
"name": "entaxy-broker",
|
||||
"adapterName": "artemisAdapter",
|
||||
"platform": true,
|
||||
"pathParameter": "queue:entaxy.default",
|
||||
"properties": {
|
||||
"url": "(tcp://localhost:61616)",
|
||||
"username": "entaxy",
|
||||
"password": "entaxy",
|
||||
"maxConnections": "20",
|
||||
"maxSessionsPerConnection": "100"
|
||||
},
|
||||
"options": {}
|
||||
},
|
||||
{
|
||||
"nodeType": "connection",
|
||||
"uuid": "connection-uuid-3",
|
||||
"name": "entaxy-db-storage",
|
||||
"adapterName": "postgresqlAdapter",
|
||||
"platform": true,
|
||||
"pathParameter": "entaxy.esb.storage",
|
||||
"properties": {},
|
||||
"options": {}
|
||||
},
|
||||
{
|
||||
"nodeType": "connection",
|
||||
"uuid": "connection-uuid-4",
|
||||
"name": "entaxy-db-cache",
|
||||
"adapterName": "postgresqlAdapter",
|
||||
"platform": true,
|
||||
"pathParameter": "entaxy.esb.cache",
|
||||
"properties": {},
|
||||
"options": {}
|
||||
}
|
||||
]
|
||||
}
|
@ -26,10 +26,38 @@
|
||||
<extensions>true</extensions>
|
||||
<configuration>
|
||||
<instructions>
|
||||
<Entaxy-Initializer-Class>ru.entaxy.esb.platform.runtime.core.initializer.datasources.DataSourcesInitializer?id=datasources&repeat=false</Entaxy-Initializer-Class>
|
||||
<Entaxy-Initializer-Class>ru.entaxy.esb.platform.runtime.core.initializer.datasources.DataSourcesInitializer?id=datasources&repeat=false&retries=10&interval=2000</Entaxy-Initializer-Class>
|
||||
</instructions>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>build-helper-maven-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>attach-artifacts</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>attach-artifact</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<artifacts>
|
||||
<artifact>
|
||||
<file>src/main/non-packaged-resources/etc/org.ops4j.datasource-entaxy.esb.cache.cfg</file>
|
||||
<type>cfg</type>
|
||||
<classifier>datasource-cache</classifier>
|
||||
</artifact>
|
||||
<artifact>
|
||||
<file>src/main/non-packaged-resources/etc/org.ops4j.datasource-entaxy.esb.storage.cfg</file>
|
||||
<type>cfg</type>
|
||||
<classifier>datasource-storage</classifier>
|
||||
</artifact>
|
||||
</artifacts>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
|
@ -0,0 +1,43 @@
|
||||
/*-
|
||||
* ~~~~~~licensing~~~~~~
|
||||
* datasources-initializer
|
||||
* ==========
|
||||
* Copyright (C) 2020 - 2021 EmDev LLC
|
||||
* ==========
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
* ~~~~~~/licensing~~~~~~
|
||||
*/
|
||||
package ru.entaxy.esb.platform.runtime.core.initializer.datasources;
|
||||
|
||||
import javax.sql.DataSource;
|
||||
|
||||
public class DataSourcesCollector {
|
||||
|
||||
protected DataSource dsCache;
|
||||
protected DataSource dsStorage;
|
||||
|
||||
protected void notifyOnComplete() {
|
||||
if ((this.dsCache != null) && (this.dsStorage != null))
|
||||
DataSourcesInitializer.collectorCompleted();
|
||||
}
|
||||
|
||||
public void setDsCache(DataSource dsCache) {
|
||||
this.dsCache = dsCache;
|
||||
notifyOnComplete();
|
||||
}
|
||||
public void setDsStorage(DataSource dsStorage) {
|
||||
this.dsStorage = dsStorage;
|
||||
notifyOnComplete();
|
||||
}
|
||||
|
||||
}
|
@ -24,6 +24,7 @@ import org.osgi.framework.ServiceReference;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import ru.entaxy.esb.platform.runtime.core.initializer.api.AbstractInitializer;
|
||||
import ru.entaxy.esb.platform.runtime.core.initializer.api.Initializer;
|
||||
import ru.entaxy.esb.platform.runtime.core.initializer.api.InitializerException;
|
||||
|
||||
import javax.sql.DataSource;
|
||||
@ -33,6 +34,13 @@ public class DataSourcesInitializer extends AbstractInitializer {
|
||||
|
||||
protected static final Logger log = LoggerFactory.getLogger(DataSourcesInitializer.class);
|
||||
|
||||
protected static Initializer.Callback callback = null;
|
||||
|
||||
public static void collectorCompleted() {
|
||||
if (DataSourcesInitializer.callback != null)
|
||||
DataSourcesInitializer.callback.inited(new DataSourcesInitializer());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init() throws InitializerException {
|
||||
log.info("Init in DataSourcesInitializer is called");
|
||||
@ -55,5 +63,8 @@ public class DataSourcesInitializer extends AbstractInitializer {
|
||||
log.info("ReInit in CoreInitializer is called");
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void setCalllback(Callback callback) {
|
||||
DataSourcesInitializer.callback = callback;
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,29 @@
|
||||
###
|
||||
# ~~~~~~licensing~~~~~~
|
||||
# datasources-initializer
|
||||
# ==========
|
||||
# Copyright (C) 2020 - 2021 EmDev LLC
|
||||
# ==========
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
# ~~~~~~/licensing~~~~~~
|
||||
###
|
||||
dataSourceName=entaxy.esb.cache
|
||||
osgi.jdbc.driver.name=PostgreSQL JDBC Driver
|
||||
serverName=localhost
|
||||
portNumber=5432
|
||||
databaseName=cache
|
||||
user=entaxy
|
||||
password=entaxy
|
||||
pool=dbcp2
|
||||
xa=true
|
||||
jdbc.pool.maxTotal=100
|
@ -0,0 +1,29 @@
|
||||
###
|
||||
# ~~~~~~licensing~~~~~~
|
||||
# datasources-initializer
|
||||
# ==========
|
||||
# Copyright (C) 2020 - 2021 EmDev LLC
|
||||
# ==========
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
# ~~~~~~/licensing~~~~~~
|
||||
###
|
||||
dataSourceName=entaxy.esb.storage
|
||||
osgi.jdbc.driver.name=PostgreSQL JDBC Driver
|
||||
serverName=localhost
|
||||
portNumber=5432
|
||||
databaseName=esb_entaxy
|
||||
user=entaxy
|
||||
password=entaxy
|
||||
pool=dbcp2
|
||||
xa=true
|
||||
jdbc.pool.maxTotal=100
|
@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
~~~~~~licensing~~~~~~
|
||||
datasources-initializer
|
||||
==========
|
||||
Copyright (C) 2020 - 2021 EmDev LLC
|
||||
==========
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
~~~~~~/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">
|
||||
|
||||
<reference id="dsCache" interface="javax.sql.DataSource" filter="(osgi.jndi.service.name=entaxy.esb.cache)"
|
||||
availability="mandatory"/>
|
||||
|
||||
<reference id="dsStorage" interface="javax.sql.DataSource" filter="(osgi.jndi.service.name=entaxy.esb.storage)"
|
||||
availability="mandatory"/>
|
||||
|
||||
<bean id="collector" class="ru.entaxy.esb.platform.runtime.core.initializer.datasources.DataSourcesCollector"
|
||||
activation="eager">
|
||||
<property name="dsCache" ref="dsCache" />
|
||||
<property name="dsStorage" ref="dsStorage" />
|
||||
</bean>
|
||||
|
||||
|
||||
|
||||
</blueprint>
|
@ -76,7 +76,7 @@ public class InitManager {
|
||||
|
||||
protected List<String> waiting = new ArrayList<>();
|
||||
|
||||
protected class InitializerMeta {
|
||||
protected class InitializerMeta implements Initializer.Callback {
|
||||
|
||||
String id;
|
||||
String className;
|
||||
@ -84,12 +84,16 @@ public class InitManager {
|
||||
|
||||
Bundle bundle;
|
||||
|
||||
List<InitializerMeta> dependsOn = new ArrayList<>();
|
||||
List<InitializerMeta> dependedBy = new ArrayList<>();
|
||||
Map<String, InitializerMeta> dependsOn = new HashMap<>();
|
||||
Map<String, InitializerMeta> dependedBy = new HashMap<>();
|
||||
|
||||
boolean executed = false;
|
||||
boolean toBeExecuted = true;
|
||||
|
||||
int retries = 1;
|
||||
|
||||
int interval = 1000;
|
||||
|
||||
public void load(String initializerData) {
|
||||
String[] data = initializerData.split("\\?");
|
||||
|
||||
@ -120,6 +124,21 @@ public class InitManager {
|
||||
String repeat = params.get(Initializer.INITIALIZER_QUERY_STRING_PARAM_REPEAT);
|
||||
this.repeat = "true".equals(repeat);
|
||||
|
||||
String retriesValue = params.get(Initializer.INITIALIZER_QUERY_STRING_PARAM_RETRIES);
|
||||
if (!Strings.isNullOrEmpty(retriesValue))
|
||||
try {
|
||||
this.retries = Integer.parseInt(retriesValue);
|
||||
} catch (NumberFormatException e) {
|
||||
log.error("Retries paramater [{}] is not an integer", retriesValue);
|
||||
}
|
||||
|
||||
String intervalValue = params.get(Initializer.INITIALIZER_QUERY_STRING_PARAM_INTERVAL);
|
||||
if (!Strings.isNullOrEmpty(intervalValue))
|
||||
try {
|
||||
this.interval = Integer.parseInt(intervalValue);
|
||||
} catch (NumberFormatException e) {
|
||||
log.error("Interval paramater [{}] is not an integer", intervalValue);
|
||||
}
|
||||
}
|
||||
|
||||
protected void addDependency(InitializerMeta meta) {
|
||||
@ -127,7 +146,7 @@ public class InitManager {
|
||||
if (meta.toBeExecuted && !meta.executed)
|
||||
synchronized (this.dependsOn) {
|
||||
meta.addDependent(this);
|
||||
this.dependsOn.add(meta);
|
||||
this.dependsOn.put(meta.id, meta);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -136,13 +155,15 @@ public class InitManager {
|
||||
this.className = other.className;
|
||||
this.bundle = other.bundle;
|
||||
this.repeat = other.repeat;
|
||||
for (InitializerMeta meta: other.dependsOn)
|
||||
this.retries = other.retries;
|
||||
this.interval = other.interval;
|
||||
for (InitializerMeta meta: other.dependsOn.values())
|
||||
this.addDependency(meta);
|
||||
}
|
||||
|
||||
public void addDependent(InitializerMeta meta) {
|
||||
synchronized (this.dependedBy) {
|
||||
this.dependedBy.add(meta);
|
||||
this.dependedBy.put(meta.id, meta);
|
||||
}
|
||||
}
|
||||
|
||||
@ -155,7 +176,7 @@ public class InitManager {
|
||||
}
|
||||
|
||||
public void notifyDependent() {
|
||||
for (InitializerMeta meta: this.dependedBy)
|
||||
for (InitializerMeta meta: this.dependedBy.values())
|
||||
meta.dependencyReady(this);
|
||||
}
|
||||
|
||||
@ -190,14 +211,39 @@ public class InitManager {
|
||||
|
||||
}
|
||||
|
||||
public void setCallback() {
|
||||
BundleWiring wiring = bundle.adapt(BundleWiring.class);
|
||||
ClassLoader cl = wiring.getClassLoader();
|
||||
Class<?> clazz;
|
||||
try {
|
||||
clazz = cl.loadClass(className);
|
||||
log.info("Loaded class {}", clazz.getName());
|
||||
Constructor<?> constructor = clazz.getConstructor();
|
||||
Initializer initializer = (Initializer) constructor.newInstance();
|
||||
initializer.setCalllback(this);
|
||||
} catch (ClassNotFoundException | NoSuchMethodException | SecurityException | InstantiationException | IllegalAccessException | IllegalArgumentException | InvocationTargetException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
public void dependencyReady(InitializerMeta meta) {
|
||||
synchronized (this.dependsOn) {
|
||||
this.dependsOn.remove(meta);
|
||||
this.dependsOn.remove(meta.id);
|
||||
if (!this.executed && this.canExecute())
|
||||
this.execute();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void inited(Initializer owner) {
|
||||
log.info("Initializer with id {} notified of successful init via callback");
|
||||
InitManager.this.updateById(id, true);
|
||||
this.executed = true;
|
||||
this.notifyDependent();
|
||||
owner.setCalllback(null);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
@ -268,7 +314,7 @@ public class InitManager {
|
||||
}
|
||||
|
||||
if (!meta.canExecute()) {
|
||||
String dependsOn = meta.dependsOn.stream().map((m)->m.id).collect(Collectors.joining(","));
|
||||
String dependsOn = meta.dependsOn.values().stream().map((m)->m.id).collect(Collectors.joining(","));
|
||||
log.info("Initializer with id {} is waiting for dependencies: {}", meta.id, dependsOn);
|
||||
|
||||
/*
|
||||
@ -276,8 +322,25 @@ public class InitManager {
|
||||
*/
|
||||
return;
|
||||
}
|
||||
int retriesCount = meta.retries;
|
||||
boolean result = false;
|
||||
while (!result && (retriesCount > 0)) {
|
||||
log.info("Executing initializer with id {}: try {} of {}", meta.id, meta.retries-retriesCount+1, meta.retries);
|
||||
retriesCount--;
|
||||
result = meta.execute();
|
||||
if ((retriesCount > 0) && !result)
|
||||
try {
|
||||
log.info("Executing initializer with id {}: sleeping for {}", meta.id, meta.interval);
|
||||
Thread.sleep(meta.interval);
|
||||
} catch (InterruptedException e) {
|
||||
log.error("Failed sleep for thread {} on initializer {}", Thread.currentThread().getId(), meta.id);
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
meta.execute();
|
||||
// last try
|
||||
if (!result)
|
||||
meta.setCallback();
|
||||
}
|
||||
|
||||
/* protected void execute(InitializerMeta meta) {
|
||||
|
@ -52,4 +52,8 @@ public abstract class AbstractInitializer implements Initializer {
|
||||
return this.initializerId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setCalllback(Callback callback) {
|
||||
// Ignore it by default
|
||||
}
|
||||
}
|
||||
|
@ -23,6 +23,10 @@ import org.osgi.framework.BundleContext;
|
||||
|
||||
public interface Initializer {
|
||||
|
||||
public static interface Callback {
|
||||
public void inited(Initializer owner);
|
||||
}
|
||||
|
||||
public static final String INITIALIZER_CLASS_HEADER = "Entaxy-Initializer-Class";
|
||||
|
||||
|
||||
@ -38,6 +42,8 @@ public interface Initializer {
|
||||
public static final String INITIALIZER_QUERY_STRING_PARAM_ID = "id";
|
||||
public static final String INITIALIZER_QUERY_STRING_PARAM_DEPENDS_ON = "depends-on";
|
||||
public static final String INITIALIZER_QUERY_STRING_PARAM_REPEAT = "repeat";
|
||||
public static final String INITIALIZER_QUERY_STRING_PARAM_RETRIES = "retries";
|
||||
public static final String INITIALIZER_QUERY_STRING_PARAM_INTERVAL = "interval";
|
||||
|
||||
public void init() throws InitializerException;
|
||||
|
||||
@ -54,4 +60,6 @@ public interface Initializer {
|
||||
|
||||
public void setInitializerId(String id);
|
||||
public String getInitializerId();
|
||||
|
||||
public void setCalllback(Initializer.Callback callback);
|
||||
}
|
||||
|
@ -26,14 +26,14 @@
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<!-- dependency>
|
||||
<groupId>com.microsoft.sqlserver</groupId>
|
||||
<artifactId>mssql-jdbc</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.postgresql</groupId>
|
||||
<artifactId>postgresql</artifactId>
|
||||
</dependency>
|
||||
</dependency -->
|
||||
<dependency>
|
||||
<groupId>org.liquibase</groupId>
|
||||
<artifactId>liquibase-core</artifactId>
|
||||
|
@ -20,30 +20,74 @@
|
||||
-->
|
||||
|
||||
|
||||
<features name="ru.entaxy.esb.platform.runtime.core-${project.version}"
|
||||
xmlns="http://karaf.apache.org/xmlns/features/v1.6.0">
|
||||
<features name="entaxy-platform-core-${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">
|
||||
|
||||
<feature name="core" version="${project.version}">
|
||||
<feature version="${project.version}">management</feature>
|
||||
<feature version="${project.version}">initializer</feature>
|
||||
<repository>mvn:ru.entaxy.esb.platform.runtime/base/${project.version}/xml/features</repository>
|
||||
<repository>mvn:ru.entaxy.esb.distribution/entaxy-karaf-features/${project.version}/xml/features</repository>
|
||||
|
||||
<feature name="entaxy-platform-core" version="${project.version}">
|
||||
<feature version="${project.version}" prerequisite="true">entaxy-platform-base</feature>
|
||||
<feature version="${project.version}">entaxy-initializer</feature>
|
||||
<feature version="${project.version}">entaxy-management</feature>
|
||||
</feature>
|
||||
|
||||
<feature name="entaxy-initializer" version="${project.version}">
|
||||
<bundle>mvn:ru.entaxy.esb.platform.runtime.core.initializer/init-manager/${project.version}</bundle>
|
||||
<feature version="${project.version}">entaxy-datasources-initializer</feature>
|
||||
<feature version="${project.version}">entaxy-core-initializer</feature>
|
||||
<feature version="${project.version}">entaxy-connection-initializer</feature>
|
||||
<feature version="${project.version}">entaxy-storage-initializer</feature>
|
||||
</feature>
|
||||
|
||||
<feature name="management" version="${project.version}">
|
||||
<feature name="entaxy-datasources-initializer" version="${project.version}" >
|
||||
<configfile finalname="${karaf.etc}/org.ops4j.datasource-entaxy.esb.cache.cfg" override="false">
|
||||
mvn:ru.entaxy.esb.platform.runtime.core.initializer/datasources-initializer/${project.version}/cfg/datasource-cache
|
||||
</configfile>
|
||||
<configfile finalname="${karaf.etc}/org.ops4j.datasource-entaxy.esb.storage.cfg" override="false">
|
||||
mvn:ru.entaxy.esb.platform.runtime.core.initializer/datasources-initializer/${project.version}/cfg/datasource-storage
|
||||
</configfile>
|
||||
<capability>
|
||||
osgi.service;effective:=active;objectClass=javax.sql.DataSource;osgi.jndi.service.name=entaxy.esb.cache;
|
||||
</capability>
|
||||
<capability>
|
||||
osgi.service;effective:=active;objectClass=javax.sql.DataSource;osgi.jndi.service.name=entaxy.esb.storage;
|
||||
</capability>
|
||||
|
||||
<!-- why do we need the following? -->
|
||||
<!--
|
||||
|
||||
<capability>
|
||||
osgi.service;objectClass=javax.sql.DataSource;osgi.jndi.service.name=entaxy.esb.cache-connector;
|
||||
</capability>
|
||||
|
||||
|
||||
-->
|
||||
<bundle>mvn:ru.entaxy.esb.platform.runtime.core.initializer/datasources-initializer/${project.version}</bundle>
|
||||
</feature>
|
||||
|
||||
<feature name="entaxy-core-initializer" version="${project.version}" >
|
||||
<bundle>mvn:ru.entaxy.esb.platform.runtime.core.initializer/core-initializer/${project.version}</bundle>
|
||||
</feature>
|
||||
|
||||
<feature name="entaxy-connection-initializer" version="${project.version}">
|
||||
<configfile finalname="${karaf.etc}/init/entaxy-platform-connections.json" override="false">
|
||||
mvn:ru.entaxy.esb.platform.runtime.core.initializer/connection-initializer/${project.version}/json/init-config
|
||||
</configfile>
|
||||
<bundle>mvn:ru.entaxy.esb.platform.runtime.core.initializer/connection-initializer/${project.version}</bundle>
|
||||
</feature>
|
||||
|
||||
<feature name="entaxy-storage-initializer" version="${project.version}">
|
||||
<feature version="${project.version}" prerequisite="true">entaxy-karaf-liquibase-support</feature>
|
||||
<bundle>mvn:ru.entaxy.esb.platform.runtime.core.initializer.storage.initializer/liquibase-updater/${project.version}</bundle>
|
||||
<bundle>mvn:ru.entaxy.esb.platform.runtime.core.initializer.storage.initializer/storage-esb_entaxy/${project.version}</bundle>
|
||||
<bundle>mvn:ru.entaxy.esb.platform.runtime.core.initializer.storage.initializer/storage-cache/${project.version}</bundle>
|
||||
</feature>
|
||||
|
||||
<feature name="entaxy-management" version="${project.version}">
|
||||
<bundle>mvn:ru.entaxy.esb.platform.runtime.core.management/connection-manager/${project.version}</bundle>
|
||||
</feature>
|
||||
|
||||
<feature name="initializer" version="${project.version}">
|
||||
<feature version="${project.version}">storage-initializer</feature>
|
||||
<bundle>mvn:ru.entaxy.esb.platform.runtime.core.initializer/init-manager/${project.version}</bundle>
|
||||
<bundle>mvn:ru.entaxy.esb.platform.runtime.core.initializer/core-initializer/${project.version}</bundle>
|
||||
<bundle>mvn:ru.entaxy.esb.platform.runtime.core.initializer/datasources-initializer/${project.version}</bundle>
|
||||
<bundle>mvn:ru.entaxy.esb.platform.runtime.core.initializer/connection-initializer/${project.version}</bundle>
|
||||
</feature>
|
||||
|
||||
<feature name="storage-initializer" version="${project.version}">
|
||||
<bundle>mvn:ru.entaxy.esb.platform.runtime.core.initializer.storage.initializer/liquibase-updater/${project.version}</bundle>
|
||||
<bundle>mvn:ru.entaxy.esb.platform.runtime.core.initializer.storage.initializer/storage-esb_entaxy/${project.version}</bundle>
|
||||
<bundle>mvn:ru.entaxy.esb.platform.runtime.core.initializer.storage.initializer/storage-cache/${project.version}</bundle>
|
||||
</feature>
|
||||
|
||||
</features>
|
||||
</features>
|
39
platform/runtime/modules/src/main/features/features.xml
Normal file
39
platform/runtime/modules/src/main/features/features.xml
Normal file
@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
~~~~~~licensing~~~~~~
|
||||
modules
|
||||
==========
|
||||
Copyright (C) 2020 - 2021 EmDev LLC
|
||||
==========
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
~~~~~~/licensing~~~~~~
|
||||
-->
|
||||
|
||||
|
||||
<features name="entaxy-platform-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.platform.runtime/base/${project.version}/xml/features</repository>
|
||||
<repository>mvn:ru.entaxy.esb.platform.runtime/core/${project.version}/xml/features</repository>
|
||||
<repository>mvn:ru.entaxy.esb.platform.runtime.modules/uniform-service/${project.version}/xml/features</repository>
|
||||
|
||||
<feature name="entaxy-platform-modules" version="${project.version}">
|
||||
<feature version="${project.version}" prerequisite="true">entaxy-platform-base</feature>
|
||||
<feature version="${project.version}" prerequisite="true">entaxy-platform-core</feature>
|
||||
|
||||
<feature version="${project.version}">entaxy-uniform-service</feature>
|
||||
</feature>
|
||||
|
||||
</features>
|
@ -73,7 +73,7 @@
|
||||
<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_1C_EXCHANGE_CustomHeader"/>
|
||||
<property name="customHeaderPrefix" value="NTX_UNIFORM_EXCHANGE_CustomHeader"/>
|
||||
</bean>
|
||||
|
||||
<bean id="headerMergeAggregator" class="ru.entaxy.esb.system.common.aggregation.HeaderMergeAggregatorImpl"/>
|
||||
@ -250,7 +250,7 @@
|
||||
<#else>
|
||||
<route id="uniform-service-in-connector">
|
||||
<from uri="direct-vm:uniform-service-in-connector-[=systemName]"/>
|
||||
<log message="Start 1c exchange connector ${headers.operationName}" loggingLevel="DEBUG"/>
|
||||
<log message="Start uniform exchange connector ${headers.operationName}" loggingLevel="DEBUG"/>
|
||||
<setHeader name="ENTAXY_ConnectorType">
|
||||
<simple>uniform-service</simple>
|
||||
</setHeader>
|
||||
@ -280,11 +280,11 @@
|
||||
<route id="send-packets">
|
||||
<from uri="direct:send-packets"/>
|
||||
|
||||
<setHeader name="NTX_1C_EXCHANGE_PacketCount">
|
||||
<setHeader name="NTX_UNIFORM_EXCHANGE_PacketCount">
|
||||
<xpath resultType="Integer">count(/soap-type:packets/soap-type:packet)</xpath>
|
||||
</setHeader>
|
||||
<when>
|
||||
<simple>${headers.NTX_1C_EXCHANGE_PacketCount} > 1</simple>
|
||||
<simple>${headers.NTX_UNIFORM_EXCHANGE_PacketCount} > 1</simple>
|
||||
<throwException exceptionType="java.lang.UnsupportedOperationException"
|
||||
message="Not supported more then 1 packet"/>
|
||||
</when>
|
||||
|
@ -69,7 +69,7 @@
|
||||
<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_1C_EXCHANGE_CustomHeader"/>
|
||||
<property name="customHeaderPrefix" value="NTX_UNIFORM_EXCHANGE_CustomHeader"/>
|
||||
</bean>
|
||||
|
||||
<camelContext id="uniform-service-out-connector-[=systemName]-context"
|
||||
|
@ -6,7 +6,7 @@
|
||||
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>
|
||||
<!-- 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">
|
||||
@ -16,8 +16,6 @@
|
||||
mvn:ru.entaxy.esb.platform.runtime.modules/uniform-service/${project.version}/cfg/uniform.service.ignite
|
||||
</configfile>
|
||||
|
||||
<feature version="${project.version}">entaxy-common</feature>
|
||||
|
||||
<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>
|
||||
|
@ -1,201 +0,0 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
@ -5,7 +5,7 @@
|
||||
<parent>
|
||||
<groupId>ru.entaxy.esb.platform.runtime.modules</groupId>
|
||||
<artifactId>uniform-service</artifactId>
|
||||
<version>1.8.0</version>
|
||||
<version>1.8</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
|
Reference in New Issue
Block a user