diff options
author | 2016-10-11 16:56:18 +0800 | |
---|---|---|
committer | 2016-10-11 16:56:18 +0800 | |
commit | e298272753b493afd2f4210f80a1d4e363727cc0 (patch) | |
tree | b96c2133c8bbdad724868156897a6a0fd4d2bffb /wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository | |
parent | 9c3973e30b12564dead2454950d3827a53ff39ce (diff) |
Integrate wso2bps
Change-Id: I5aca17e5a8723fa151907d52e9279568e7cdf7f1
issue-id: OCS-104
Signed-off-by: huangjian <huang.jian12@zte.com.cn>
Diffstat (limited to 'wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository')
7 files changed, 306 insertions, 0 deletions
diff --git a/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/components/lib/bpel-eventlistener-2.1.2.jar b/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/components/lib/bpel-eventlistener-2.1.2.jar Binary files differnew file mode 100644 index 0000000..4c8837a --- /dev/null +++ b/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/components/lib/bpel-eventlistener-2.1.2.jar diff --git a/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/components/lib/bpel4restlight.jar b/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/components/lib/bpel4restlight.jar Binary files differnew file mode 100644 index 0000000..9d6192f --- /dev/null +++ b/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/components/lib/bpel4restlight.jar diff --git a/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/components/lib/mysql-connector-java-5.1.39-bin.jar b/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/components/lib/mysql-connector-java-5.1.39-bin.jar Binary files differnew file mode 100644 index 0000000..dac6e14 --- /dev/null +++ b/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/components/lib/mysql-connector-java-5.1.39-bin.jar diff --git a/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/bps.xml b/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/bps.xml new file mode 100644 index 0000000..1e09356 --- /dev/null +++ b/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/bps.xml @@ -0,0 +1,174 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + ~ Copyright (c) 2005-2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + ~ + ~ WSO2 Inc. licenses this file to you 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. + --> +<tns:WSO2BPS xmlns:tns="http://wso2.org/bps/config"> + <!-- Database Configuration for WSO2 BPS BPEL Engine's Persistence Storage --> + <tns:DataBaseConfig> + <!-- Data source configuration. Use data sources created in data sources component. --> + <tns:DataSource name="bpsds"> + <!--tns:JNDI contextFactory="com.sun.jndi.rmi.registry.RegistryContextFactory" providerURL="rmi://localhost:2199"/--> + </tns:DataSource> + </tns:DataBaseConfig> + + <tns:ExtensionBundles> + <tns:runtimes> + <tns:runtime class="de.unistuttgart.iaas.bpel.extensions.bpel4restlight.Bpel4RestLightExtensionBundle"/> + </tns:runtimes> + </tns:ExtensionBundles> + + + <!-- Process dehydration configuration --> + <!--<tns:ProcessDehydration maxCount="0" value="true"> + <tns:MaxAge value="0"/> + </tns:ProcessDehydration>--> + + <!--<tns:TransactionFactory class=""/>--> + + <!-- BPEL Event Listeners. They must implement BPELEventListener interface --> + <!--<tns:EventListeners> + <tns:listener class="org.wso2.bps.SampleEventListener"/> + </tns:EventListeners>--> + + <!--tns:EventListeners> + <tns:listener class="org.wso2.carbon.bpel.core.ode.integration.jmx.JmxBpelEventListener"/> + </tns:EventListeners--> + + <!-- BPEL Message Exchange Interceptors. Used to track and handle incoming and out going + Messages from BPEL Processes. + --> + <!--<tns:MexInterceptors> + <tns:interceptor class=""/> + </tns:MexInterceptors>--> + + <!-- BPEL Extensions --> + <!--<tns:ExtensionBundles> + <tns:runtimes> + <tns:runtime class="org.wso2.bps.SampleExtensionRuntime"/> + </tns:runtimes> + <tns:filters> + <tns:filter class="org.wso2.bps.SampleCorrelationFilter"/> + </tns:filters> + </tns:ExtensionBundles>--> + + <!-- OpenJPA specific configuration properties --> + <tns:OpenJPAConfig> + <tns:property name="openjpa.FlushBeforeQueries" value="true"/> + <tns:property name="openjpa.TransactionMode" value="local"/> + </tns:OpenJPAConfig> + + <!-- Message exchange timeout. Default value is 120000ms --> + <!--<tns:MexTimeOut value="120000"/>--> + + <!-- External Service invocation timeout. Default value is 60000ms --> + <!--<tns:ExternalServiceTimeOut value="60000"/>--> + + <!-- MultithreadedHttpConnectionManager tuning parameters --> + <tns:MultithreadedHttpConnectionManagerConfig> + <tns:maxConnectionsPerHost value="20"/> + <tns:maxTotalConnections value="100"/> + <!--<tns:connectionKeepAlive value="false"/> --> + </tns:MultithreadedHttpConnectionManagerConfig> + + <!-- Process instance cleanup feature in WSO2 Business Process Server + allows you to configure periodic process instance cleanup tasks based + on various process instance properties to remove process instance data + from WSO2 BPS persistence storage. + Refer - http://www.quartz-scheduler.org/docs/tutorials/crontrigger.html to + declare cron expressions format + Following sample configuration schedule a cleanup task at 5:11 PM every day + to clean completed process instances. + --> + <!--<tns:Schedules> + <tns:Schedule when="0 11 17 * * ?"> + <tns:cleanup> + <tns:filter><![CDATA[status=completed]]></tns:filter> + </tns:cleanup> + </tns:Schedule> + </tns:Schedules>--> + + <!-- By default all the BPEL packages are read from the file system. If you need to Synchronize + the file system bpel repository with set the following parameter to true. This will check the + timestamp of the BPEL packages in the file system against the BPEL packages in the registry. If + they do not match then the BPEL package in the registry is copied to the file system. --> + <!--<tns:SyncWithRegistry>false</tns:SyncWithRegistry>--> + + <!-- The property InMemoryInstanceTimeToLive may be used to limit the time-to-live of in-memory instances. + This setting can be useful to avoid memory leaks related to in-memory processes that may get + 'stuck' during execution and never terminate (time should be specified in milliseconds) --> + <!--tns:InMemoryInstanceTimeToLive>600000</tns:InMemoryInstanceTimeToLive--> + + <!-- This property can be used to configure ode scheduler thread pool size --> + <tns:ODESchedulerThreadPoolSize>50</tns:ODESchedulerThreadPoolSize> + + <!-- If you are using BPS in a clustered environment, then uncomment blow entry --> + <!-- <tns:UseDistributedLock>true</tns:UseDistributedLock> --> + + <!-- <tns:UseInstanceStateCache>true</tns:UseInstanceStateCache> --> + + <!-- You can assign a unique id for each node in the cluster using NodeId property --> + <!-- <tns:NodeId></tns:NodeId> --> + + <!-- Simple Scheduler related configuration --> + <!--<tns:ODESchedulerConfiguration>--> + <!-- Maximum number of jobs in the "near future" todo queue. --> + <!--<tns:ODESchedulerQueueLength>10000</tns:ODESchedulerQueueLength>--> + + <!--Jobs scheduled with a time that is between [now, now+immediateInterval] will be assigned to the current node, + and placed directly on the todo queue. time in ms--> + <!--<tns:ODESchedulerImmediateInterval>30000</tns:ODESchedulerImmediateInterval>--> + + <!--Jobs scheduled with a time that is between (now+immediateInterval,now+nearFutureInterval) will be assigned to the current + node, but will not be placed on the todo queue (the promoter will pick them up). time in ms --> + <!--<tns:ODESchedulerNearFutureInterval>600000</tns:ODESchedulerNearFutureInterval>--> + + <!-- Stale node check interval in ms--> + <!--<tns:ODESchedulerStaleInterval>10000</tns:ODESchedulerStaleInterval>--> + + <!-- Estimated sustained transaction per second capacity of the system. + e.g. 100 means the system can process 100 jobs per seconds, on average + This number is used to determine how many jobs to load from the database at once.--> + <!--<tns:ODESchedulerTransactionsPerSecond>100</tns:ODESchedulerTransactionsPerSecond>--> + + <!-- Duration used to log a warning if a job scheduled at a date D is queued at D'>D+_warningDelay --> + <!--<tns:ODESchedulerWarningDelay>300000</tns:ODESchedulerWarningDelay>--> + + <!-- Number of immediate retries when the transaction fails --> + <!--<tns:ODESchedulerImmediateTransactionRetryLimit>3</tns:ODESchedulerImmediateTransactionRetryLimit>--> + + <!-- Interval between immediate retries when the transaction fails --> + <!--<tns:ODESchedulerImmediateTransactionRetryInterval>1000</tns:ODESchedulerImmediateTransactionRetryInterval>--> + + <!-- End of Simple Scheduler related configuration --> + <!--</tns:ODESchedulerConfiguration>--> + + <!--Configurations for BPEL UI--> + <tns:BpelUI> + <!--Set the maximum value size for a variable in a instance view in kilobytes,--> + <!--higher sizes may slowdown the instance view rendering. Default size is 1000KB.--> + <!--Please note that this only limits the displayed variable content size.--> + <!--<tns:InstanceViewVariableLength>1000</tns:InstanceViewVariableLength>--> + + <!--This property specify the maximum number of BPEL process instances that can be deleted in a single delete instance--> + <!--request. Default value is 1000. Increase this with caution. It may result in various timeout exceptions.--> + <!--<tns:BpelInstanceDeletionLimit>1000</tns:BpelInstanceDeletionLimit>--> + </tns:BpelUI> + + <!--Timeout for the BPEL Transaction Manager in seconds. Default is 10 minutes--> + <!--<tns:TransactionManagerTimeout></tns:TransactionManagerTimeout>--> + +</tns:WSO2BPS> diff --git a/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/datasources/activiti-datasources.xml b/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/datasources/activiti-datasources.xml new file mode 100644 index 0000000..f95cb87 --- /dev/null +++ b/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/datasources/activiti-datasources.xml @@ -0,0 +1,32 @@ +<datasources-configuration xmlns:svns="http://org.wso2.securevault/configuration"> + + <providers> + <provider>org.wso2.carbon.ndatasource.rdbms.RDBMSDataSourceReader</provider> + </providers> + + <datasources> + + <datasource> + <name>ACTIVITI_DB</name> + <description>The datasource used for activiti engine</description> + <jndiConfig> + <name>jdbc/ActivitiDB</name> + </jndiConfig> + <definition type="RDBMS"> + <configuration> + <url>jdbc:h2:repository/database/activiti;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=60000</url> + <username>wso2carbon</username> + <password>wso2carbon</password> + <driverClassName>org.h2.Driver</driverClassName> + <maxActive>50</maxActive> + <maxWait>60000</maxWait> + <testOnBorrow>true</testOnBorrow> + <validationQuery>SELECT 1</validationQuery> + <validationInterval>30000</validationInterval> + </configuration> + </definition> + </datasource> + + </datasources> + +</datasources-configuration> diff --git a/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/datasources/bps-datasources.xml b/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/datasources/bps-datasources.xml new file mode 100644 index 0000000..22f79f7 --- /dev/null +++ b/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/datasources/bps-datasources.xml @@ -0,0 +1,32 @@ +<datasources-configuration xmlns:svns="http://org.wso2.securevault/configuration"> + + <providers> + <provider>org.wso2.carbon.ndatasource.rdbms.RDBMSDataSourceReader</provider> + </providers> + + <datasources> + <datasource> + <name>BPS_DS</name> + <description/> + <jndiConfig> + <name>bpsds</name> + </jndiConfig> + <definition type="RDBMS"> + <configuration> + <url>jdbc:mysql://localhost:3306/wso_bpel</url> + <username>wso_bpel</username> + <password>wso_bpel</password> + <driverClassName>com.mysql.jdbc.Driver</driverClassName> + <testOnBorrow>true</testOnBorrow> + <validationQuery>SELECT 1</validationQuery> + <validationInterval>30000</validationInterval> + <useDataSourceFactory>false</useDataSourceFactory> + <defaultAutoCommit>true</defaultAutoCommit> + <maxActive>100</maxActive> + <maxIdle>20</maxIdle> + <maxWait>10000</maxWait> + </configuration> + </definition> + </datasource> + </datasources> +</datasources-configuration> diff --git a/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/datasources/master-datasources.xml b/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/datasources/master-datasources.xml new file mode 100644 index 0000000..897e335 --- /dev/null +++ b/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/datasources/master-datasources.xml @@ -0,0 +1,68 @@ +<datasources-configuration xmlns:svns="http://org.wso2.securevault/configuration"> + + <providers> + <provider>org.wso2.carbon.ndatasource.rdbms.RDBMSDataSourceReader</provider> + </providers> + + <datasources> + + <datasource> + <name>WSO2_CARBON_DB</name> + <description>The datasource used for registry and user manager</description> + <jndiConfig> + <name>jdbc/WSO2CarbonDB</name> + </jndiConfig> + <definition type="RDBMS"> + <configuration> + <url>jdbc:h2:repository/database/WSO2CARBON_DB;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=60000</url> + <username>wso2carbon</username> + <password>wso2carbon</password> + <driverClassName>org.h2.Driver</driverClassName> + <maxActive>50</maxActive> + <maxWait>60000</maxWait> + <testOnBorrow>true</testOnBorrow> + <validationQuery>SELECT 1</validationQuery> + <validationInterval>30000</validationInterval> + <defaultAutoCommit>false</defaultAutoCommit> + </configuration> + </definition> + </datasource> + + <!-- For an explanation of the properties, see: http://people.apache.org/~fhanik/jdbc-pool/jdbc-pool.html --> + <!--datasource> + <name>SAMPLE_DATA_SOURCE</name> + <jndiConfig> + <name></name> + <environment> + <property name="java.naming.factory.initial"></property> + <property name="java.naming.provider.url"></property> + </environment> + </jndiConfig> + <definition type="RDBMS"> + <configuration> + + <defaultAutoCommit></defaultAutoCommit> + <defaultReadOnly></defaultReadOnly> + <defaultTransactionIsolation>NONE|READ_COMMITTED|READ_UNCOMMITTED|REPEATABLE_READ|SERIALIZABLE</defaultTransactionIsolation> + <defaultCatalog></defaultCatalog> + <username></username> + <password svns:secretAlias="WSO2.DB.Password"></password> + <maxActive></maxActive> + <maxIdle></maxIdle> + <initialSize></initialSize> + <maxWait></maxWait> + + <dataSourceClassName>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</dataSourceClassName> + <dataSourceProps> + <property name="url">jdbc:mysql://localhost:3306/Test1</property> + <property name="user">root</property> + <property name="password">123</property> + </dataSourceProps> + + </configuration> + </definition> + </datasource--> + + </datasources> + +</datasources-configuration> |