tag:blogger.com,1999:blog-57023090790394582972024-03-17T20:02:29.705-07:00Nandika's blogWeb Services, WSF/PHP, C++ , BPS, BPEL, and My random Sutffnandikajayawardanahttp://www.blogger.com/profile/11920576746810295004noreply@blogger.comBlogger143125tag:blogger.com,1999:blog-5702309079039458297.post-14360003912612074342019-06-11T03:37:00.002-07:002019-06-12T07:15:32.021-07:00WSO2 Enterprise Integrator 6.5.0 Released<div dir="ltr" style="text-align: left;" trbidi="on">
We are pleased to announce the availability of the 6.5.0 release of WSO2 Enterprise Integrator. This release includes some long-awaited feature improvements and major enhancements to the tooling distribution. Let's see some of the highlights of this release.<br />
<h3 style="text-align: left;">
<br />WSO2 Integration Studio</h3>
<div>
WSO2 Integration studio is the redesigned and revamped tooling distribution. With this release, we are introducing significant improvements to our developer experience. </div>
<div>
<br /></div>
<div>
<ul style="text-align: left;">
<li>WSO2 Integration Studio includes built-in JDK distribution so that you will not need to install or configure a java distribution anymore.</li>
<li>New theme, icons, tool palette improvements such that screen space is utilized to the maximum.</li>
<li>New property windows with build in selection options so that most of the settings can be selected, instead of configuring.</li>
<li>Ability to export the artifacts as docker images and one-click deployment option to wso2 integration cloud</li>
<li>Built-in micro integration runtime to quickly test your integration artifacts from the IDE itself.</li>
<li>Simulation capability to test the data mapping and transformation functionality at the time of artifact development</li>
</ul>
<div>
Go <a href="https://wso2.com/integration/integration-studio/">download the Integration Studio</a> and experience the improvements yourself.<br />
<br /></div>
<h3 style="text-align: left;">
WSO2 Micro Integrator</h3>
</div>
<div>
We are releasing Micro Integrator profile as a separate downloadable distribution from this release onwards.</div>
<div>
Micro Integrator is a smaller runtime of the larger Integrator runtime and includes only the essential features to support integration capabilities.<br />
<br />
<br />
<ul style="text-align: left;">
<li>Hence micro integrator has <5s startup time and ideal for docker/kubernetes based deployments.</li>
<li>the key advantage of the micro integrator is that you can deploy the artifacts developed for Integrator with minimum changes on the micro integrator and get your integrations running. </li>
<li>If you are already a user of WSO2 Enterprise Integrator, its time to check out the micro integrator since this thin runtime will provide you with the additional deployment flexibility you need.</li>
</ul>
<div>
For other runtimes, we have introduced bug fixes and security fixes and contains some of the feature additions such as property group mediator, improved REST support for data services and so on.</div>
<div>
<br /></div>
<div>
So if you have not checked out the<a href="https://wso2.com/integration/"> Enterprise Integrator 6.5.0 release</a>, its time to give it a try.</div>
<div>
<br /></div>
<div>
<br /></div>
<br />
Also, we are hosting an <a href="https://wso2.com/library/webinars/2019/06/next-generation-tooling-with-wso2-enterprise-integrator/">Integration tooling focused webinar series</a> from this week onwards and do check it out. </div>
<div>
<br /></div>
<div>
<br /></div>
</div>
nandikajayawardanahttp://www.blogger.com/profile/11920576746810295004noreply@blogger.com0tag:blogger.com,1999:blog-5702309079039458297.post-32605872562438835942017-08-17T06:59:00.001-07:002017-08-17T07:00:37.068-07:00The open source ESB<div dir="ltr" style="text-align: left;" trbidi="on">
<br />Open Source is associated with most software products nowaday and middleware are no exceptions.<br />
<br />
As a middleware user, how does open source benefit you? .<br />
<br />
1. Being open source means, you do not have to buy a commercial license to use the software.<br />
<br />
2. There will be regular updates, which means, you can keep your deployment up to date with respect to security flows etc.<br />
<br />
3. Open source means, there is a definite cost advantage, when it comes to total cost of ownership of a software product.<br />
<br />
<br />
However, most open source middleware products do not come as a fully open source. Sometimes, there is an open source community edition and an enterprise edition and so forth. Hence, WSO2 ESB is one of the truly open source Enterprise Service Bus product.<br />
<br />
Learn more about the open source nature of <a href="http://wso2.com/products/enterprise-service-bus/">WSO2 ESB</a> from "<a href="http://wso2.com/library/articles/2017/08/wso2-esb-the-open-source-esb/">THE OPEN SOURCE ESB</a>" article.<br />
<br /></div>
nandikajayawardanahttp://www.blogger.com/profile/11920576746810295004noreply@blogger.com0tag:blogger.com,1999:blog-5702309079039458297.post-16613172831265047282017-08-03T02:28:00.002-07:002017-08-03T02:49:14.426-07:00Benefits of WSO2 ESB<div dir="ltr" style="text-align: left;" trbidi="on">
<a href="http://wso2.com/products/enterprise-service-bus/">WSO2 Enterprise Service Bus</a> is a battle tested enterprise service bus catering for all your enterprise integration needs. With its new release, we have taken the capabilities of WSO2 enterprise service bus ( ESB ) in to a new level.<br />
<br />
<div style="text-align: justify;">
Previously, we were releasing few products to cater for enterprise integration needs such as data services server ( DSS ) to cater for master data management, business process server (BPS) to cater for business processes / workflows and human interactions, message broker (MB) for enterprise messaging and ESB to provide the bus architecture to interconnect everything. However, what we identified is that , more often than not, few of these products will be necessary to cater for a given integration use case and it almost always includes ESB. Hence , now we have packaged all the product capabilities into a single package with profiles with many enhancements to each of the profiles.</div>
<br />
<b>Following are some of the key benefits of WSO2 ESB.</b><br />
<br />
1. One of the best performing open sources ESB's in the market.<br />
<br />
2. A mature product and supports all enterprise integration patterns.<br />
<br />
3.<a href="http://wso2.com/products/enterprise-service-bus/#Features"> Complete feature set </a>to cater for any integration need.<br />
<br />
3. Eclipse based IDE support to quickly develop / debug / package / deploy your integration flows.<br />
<br />
4. Build in message tracing and analytics support with analytics profile.<br />
<br />
5. Data integration capabilities allowing exposing your data stores as Services and APIs.<br />
<br />
6. Message Broker profile provides fully pledged messaging capabilities including JMS 1.1 and JMS 2.0<br />
<br />
7. Business Process Profile allows creating workflows and human integrations with BPMN, BPEL and WS-Human Tasks.<br />
<br />
8. Consultancy / Support and Services are readily available from WSO2 and WSO2 Partners world wide.<br />
<br />
Learn more about <a href="http://wso2.com/library/articles/2017/07/what-is-wso2-esb/">WSO2 ESB</a> from follwoing article.<br />
<br />
<br />
<span style="background-color: white; color: #1155cc; font-family: "arial" , sans-serif; font-size: 12.8px;">http://wso2.com/library/</span><wbr style="background-color: white; color: #1155cc; font-family: arial, sans-serif; font-size: 12.8px;"></wbr><span style="background-color: white; color: #1155cc; font-family: "arial" , sans-serif; font-size: 12.8px;">articles/2017/07/what-is-wso2-</span><wbr style="background-color: white; color: #1155cc; font-family: arial, sans-serif; font-size: 12.8px;"></wbr><span style="background-color: white; color: #1155cc; font-family: "arial" , sans-serif; font-size: 12.8px;">esb/</span><br />
<br />
<br />
<br />
<br />
<br /></div>
nandikajayawardanahttp://www.blogger.com/profile/11920576746810295004noreply@blogger.com1tag:blogger.com,1999:blog-5702309079039458297.post-67491754221376676482016-09-07T23:29:00.000-07:002016-09-08T01:59:25.232-07:00Whats new in Business Process Server 3.6.0<div dir="ltr" style="text-align: left;" trbidi="on">
With a release of BPS 3.6.0, we have a whole set of new features added to the business process server.<br />
<br />
User substitution capability<br />
====================<br />
<br />
One of the main features of this release is the user substitution capability provided by BPS. It allows the users to define a substitution for a period of absence. ( For example , a task owner going on vacation). When the substitution period starts, all the tasks assigned will be transferred to the substituted user. Any new user tasks created against the user will be automatically assigned to the substitute as well.<br />
<br />
See more at <a href="https://docs.wso2.com/display/BPS360/Working+with+BPMN+User+Substitution">https://docs.wso2.com/display/BPS360/Working+with+BPMN+User+Substitution</a><br />
<br />
<br />
JSON and XPath-based data manipulation capability.<br />
===========================<br />
When writing a Business Process, it is necessary to manipulate the data we are dealing with various forms. These data manipulations include, extracting data, concatenating, conversions ect. Often, we would be dealing with eitXML xml or json messages for our workflows. Hence we are introducing the JSON and XML data manipulation capabilities with this release.<br />
<br />
See more at <a href="https://docs.wso2.com/display/BPS360/XML+and+JSON+variable+support">https://docs.wso2.com/display/BPS360/XML+and+JSON+variable+support</a><br />
<br />
Instance data audit logs<br />
==================<br />
With BPS 3.6.0, we are introducing the ability to search, and view BPMN process instances from BPMN explorer UI. In addition to that, it will show a comprehensive audit information with respect to process instances data.<br />
<br />
See more at <a href="https://docs.wso2.com/display/BPS360/Monitoring+a+BPMN+Process">https://docs.wso2.com/display/BPS360/Monitoring+a+BPMN+Process</a><br />
<br />
Enhanced BPEL process visualiser.<br />
=========================<br />
In addition to that, we are introducing enhanced BPEL process visualiser with BPS 3.6.0.<br />
<br />
Human Tasks Editor<br />
===============<br />
We are also introducing WS-Human Tasks editor with developer studio. With this editor, you will be able to implement a human tasks package for business process server with minimum effort and time.<br />
<br />
See more at <a href="https://docs.wso2.com/business-process-server/Working+with+BPS+Artifacts">https://docs.wso2.com/business-process-server/Working+with+BPS+Artifacts</a><br />
<br />
In addition to above main features, there are many bug fixes and security fixes included in BPS 3.6.0 release.<br />
<br /></div>
nandikajayawardanahttp://www.blogger.com/profile/11920576746810295004noreply@blogger.com0tag:blogger.com,1999:blog-5702309079039458297.post-50254332894772537972016-08-17T22:31:00.001-07:002016-08-17T22:33:57.316-07:00How to install oracle XE 11 on Mint<div dir="ltr" style="text-align: left;" trbidi="on">
<h4 style="text-align: left;">
Found this awesome tutorial on installing oracle XE on Linux Mint.</h4>
<a href="https://mikesmithers.wordpress.com/2011/11/26/installing-oracle-11gxe-on-mint-and-ubuntu/">https://mikesmithers.wordpress.com/2011/11/26/installing-oracle-11gxe-on-mint-and-ubuntu/</a><br />
<br />
<br /></div>
nandikajayawardanahttp://www.blogger.com/profile/11920576746810295004noreply@blogger.com0tag:blogger.com,1999:blog-5702309079039458297.post-68171004577982805772016-08-05T09:47:00.002-07:002016-08-05T09:47:58.101-07:00Building Business Process Server from Source<div dir="ltr" style="text-align: left;" trbidi="on">
Building WSO2 Business Process Server (BPS) from source is quite straight forward. Let's look at how you can compile wso2 business process server using the source code.<br />
<h2 style="text-align: left;">
<br />Prerequisite</h2>
<div>
<br /></div>
<div>
1. You need to have Oracle JDK 1.7 or above (preferably 1.8) installed on your machine.</div>
<div>
2. You need to have apache maven ( 3.0.5 ) installed </div>
<div>
<br /></div>
<div>
<b>Understanding and building BPS Dependencies.</b></div>
<div>
<br /></div>
<div>
1. Apache ode wso2 fork</div>
<div>
2. Activiti </div>
<div>
<br /></div>
<div>
First, you need to build the Apache ODE fork. </div>
<div>
<br /></div>
<div>
Clone the github repo https://github.com/wso2/wso2-ode and build it. </div>
<div>
<br /></div>
<div>
<b>~/work/wso2-ode $ mvn clean install</b></div>
<div>
<b><br /></b></div>
<div>
Since Activiti consists of a large number of dependencies, we have converted it into a single OSGI bundle. </div>
<div>
<br /></div>
<div>
Clone the following repo and build activiti-all bundle.</div>
<div>
<br /></div>
<div>
https://github.com/wso2/orbit/tree/master/activiti-all</div>
<div>
<b><br /></b></div>
<div>
<b>~/work/orbit/activiti-all/5.21.0.wso2v1 $ mvn clean install</b></div>
<div>
<b><br /></b></div>
<div>
<b>Building Carbon Business Process Component</b></div>
<div>
<b><br /></b></div>
<div>
Carbon Business Process component contains the source code for the integration layers and the other functionality we have implemented on top of the code of ODE and Activiti implementations. </div>
<div>
<br /></div>
<div>
Clone and build the business process component repository. </div>
<div>
<br /></div>
<div>
https://github.com/wso2/carbon-business-process/</div>
<div>
<b><br /></b></div>
<div>
<b>~/work/carbon-business-process $ mvn clean install </b></div>
<div>
<b><br /></b></div>
<div>
Now you are ready to build the BPS Product. </div>
<div>
<br />Clone https://github.com/wso2/product-bps repository and build the product. </div>
<div>
<br /></div>
<div>
<div>
<b>~/work/product-bps $ mvn clean install </b></div>
</div>
<div>
<br /></div>
<div>
You will find the built product at ~/work/product-bps/modules/distribution/target directory.</div>
<div>
<br /></div>
<div>
Take a look into the root poms of each repositories properties section in order to understand how each repository connects to the other repositories. </div>
<div>
<br /></div>
<div>
<b><br /></b></div>
</div>
nandikajayawardanahttp://www.blogger.com/profile/11920576746810295004noreply@blogger.com0tag:blogger.com,1999:blog-5702309079039458297.post-81361333110085137362015-10-16T05:15:00.000-07:002015-10-16T05:16:16.028-07:00Business Process Server 3.5.0 version released<div dir="ltr" style="text-align: left;" trbidi="on">
We are pleased to announce the release of WSO2 Business Process server 3.5.0 version.<br />
<br />
Following are some of the exciting new features shipped with BPS.<br />
<br />
1. BPMN support.<br />
<br />
<div style="text-align: justify;">
We have incorporated the popular open source BPMN engine ACTIVITI into business process server. We are providing carbon platform compatible package deployment methodology, and authentication mechanism for the REST API exposed by the bpmn engine. In addition to that a comprehensive and customizable ui provide very nice user facing web application. Users can use this web application and integrate into their existing UI's in order to provide users with workflow initiation and execution capability.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
2. Human Tasks Explorer UI</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Human Tasks explorer provides comprehensive UI for managing human tasks. This UI can be deployed in wso2 app server as well. It provides the task list, task forms , attachments, completed task list, assign, claim, complete, save functionality as well as task search capabilities.</div>
<br />
3. WS-Human Tasks form generation support.<br />
<br />
This was a much needed capability from ws-human tasks support point of view. Up-to bps 3.5.0, users had to write their own jsps for input, output and response actions which were packaged with human tasks package and the rendering was done within the management console itself. Instead, now you have the capability to define how the UI should be rendered in WSO2 specific rendering format and Human Task Explorer generate the appropriate form necessary for task completion or save activity.<br />
<br />
4. Process instance retry capability without bpel events. BPEL Instance view now offers instance retry capability without having to enable events. Disabling bpel events provide huge performance gain and also reduce the db growth by a significant amount.<br />
<br />
In addition to these, there are many other bug fixes that have been done with BPS 3.5.0 release. Hence this is a significant improvement from the previous release in-terms of feature addition as well as capability wise.<br />
<br /></div>
nandikajayawardanahttp://www.blogger.com/profile/11920576746810295004noreply@blogger.com1tag:blogger.com,1999:blog-5702309079039458297.post-46459907091784432442015-10-15T23:02:00.000-07:002015-10-19T00:04:04.291-07:00BPS 3.5.0 Clustering Guide<div dir="ltr" style="text-align: left;" trbidi="on">
<h3 dir="ltr" style="line-height: 1.38; margin-bottom: 4pt; margin-top: 14pt; text-align: justify;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 17.333333333333332px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Cluster Architecture</span></h3>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Server clustering is done mainly in order to achieve high availability and scalability.</span></div>
<h3 dir="ltr" style="line-height: 1.38; margin-bottom: 4pt; margin-top: 14pt; text-align: justify;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 17.333333333333332px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">High Availability</span></h3>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">High availability means there is redundancy in the system such that service is available to outside world irrespective of individual component failures. For example, if we have a two node cluster, even if one node fails, the other node would continue to serve requests till the failed node is restored again.</span></div>
<h3 dir="ltr" style="line-height: 1.38; margin-bottom: 4pt; margin-top: 14pt; text-align: justify;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 17.333333333333332px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Scalability</span></h3>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Scalability means increasing the processing capacity by adding more server nodes.</span></div>
<h3 dir="ltr" style="line-height: 1.38; margin-bottom: 4pt; margin-top: 14pt; text-align: justify;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 17.333333333333332px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Load Balancer</span></h3>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Load balancing is the method of distributing workload to multiple server nodes. In order to achieve proper clustering function you would require a Load Balancer. The function of the load balancer is to monitor the availability of the server nodes in the cluster and route requests to all the available nodes in a fair manner. Load balancer would be the external facing interface of the cluster and it would receive all the requests coming to the cluster. Then it would distribute this load to all available nodes. If a node has failed, then the load balancer will not route requests to that node till that node is back online.</span></div>
<h3 dir="ltr" style="line-height: 1.38; margin-bottom: 4pt; margin-top: 14pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 17.333333333333332px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">WSO2 Business Process Server Cluster Architecture</span></h3>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">In order to build a wso2 business process server cluster you would require the following.</span></div>
<b id="docs-internal-guid-81af2d41-6f3b-4493-f752-69d48c2a4998" style="font-weight: normal;"><br /></b>
<br />
<ol style="margin-bottom: 0pt; margin-top: 0pt;">
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 9.333333333333332px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Load balancer</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 9.333333333333332px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Hardware / VM nodes for BPS Nodes</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 9.333333333333332px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Database Server</span></div>
</li>
</ol>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Following diagram depicts the deployment of a two node WSO2 bps cluster.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-left: 11pt; margin-right: 11pt; margin-top: 0pt; text-align: center;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><img height="272px;" src="https://lh6.googleusercontent.com/4aH4yeh6Bbq3d51nEkwIZum027QGAVO0FYDsSvz0-2BhPbkLhJ34OWHM8BujR45fvT0Ol48GJEwpo9iPDqfBjwXCrB7xSD0GBxs1uYoSkQCWgfdB0bwhzwV3JYIIMKnKzeoLmd4" style="-webkit-transform: rotate(0.00rad); border: none; transform: rotate(0.00rad);" width="459px;" /></span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Load Balancer will receive all the requests and distribute the load (Requests) to the two BPS nodes. BPS Nodes can be configured as manager node and worker node. A BPS cluster can have one </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">manager node</span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> and multiple </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">worker node</span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">s. This is with respect to deployment of artifacts. The node that performances the artifact deployment first is considered manager and other nodes are considered workers.</span></div>
<h3 dir="ltr" style="line-height: 1.38; margin-bottom: 4pt; margin-top: 14pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 17.333333333333332px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">BPS Manager Node / Worker Nodes</span></h3>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Manager node is where the workflow artifacts (Business processes / Human Tasks / BPMN artifacts ) are first deployed. The worker nodes will look at the configuration generated by the master node for a given deployment artifact and then deploy those artifacts in its runtime.</span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">WSO2 BPS requires this method of deployment because it does automatic versioning of the deployed bpel /human task artifacts. Hence, in order to have the same version number for a given deployment artifact across all the nodes, we need to do the versioning at one node (Master Node). A BPS server decides whether it is a manager node or a worker node by looking at its configuration registry mounting configuration. We will look at that configuration in detail later.</span></div>
<h3 dir="ltr" style="line-height: 1.38; margin-bottom: 4pt; margin-top: 14pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 17.333333333333332px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">BPS and Registry</span></h3>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">In the simplest terms, registry is an abstraction over a database schema. It provides an API using which you can store data and retrieve data to a database. WSO2 BPS embeds the registry component and hence has a build in registry. Registry is divided into three spaces.</span></div>
<h4 dir="ltr" style="line-height: 1.38; margin-bottom: 2pt; margin-top: 12pt; text-align: justify;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Local Registry</span></h4>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Local registry is used to store information local to a server node.</span></div>
<h4 dir="ltr" style="line-height: 1.38; margin-bottom: 2pt; margin-top: 12pt; text-align: justify;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Configuration Registry</span></h4>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> Configuration Registry is used to store information that needs to be shared across same type of server nodes. For example, configuration registry is shared across BPS server nodes. However, this same configuration registry would not be shared across another type of server nodes.</span></div>
<h4 dir="ltr" style="line-height: 1.38; margin-bottom: 2pt; margin-top: 12pt; text-align: justify;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Governance Registry </span></h4>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Governance Registry is used to store information that can be shared across clusters of different type of servers. For example governance registry can be shared across BPS and ESB cluster. In the above diagram, these different registry configurations are depicted as individual databases.</span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Note:</span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">BPS Manager Node refers to the configuration registry using a </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Read/Write</span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> link while the BPS Worker nodes refer to the configuration registry using a </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Read/Only</span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> link.</span></div>
<h4 dir="ltr" style="line-height: 1.38; margin-bottom: 2pt; margin-top: 12pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">BPS and User Store and Authorization</span></h4>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">BPS management console requires a user to login to the system in order to do management activities. Additionally various permissions levels can be configured for access management. In human tasks, depending on the logged in user, what he can do with tasks will change.</span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">All this access control/authentication/authorization functions are inherited to the BPS server from carbon kernel. You can also configure an external LDAP/Active directory to grant users access to the server. All this user information / permission information is kept in the user store database. In the above diagram, UM DB refers to this database. This database is also shared across all the cluster nodes.</span></div>
<h4 dir="ltr" style="line-height: 1.38; margin-bottom: 2pt; margin-top: 12pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Activiti DB</span></h4>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">BPS 3.5.0 introduces BPMN support by embedding popular Activiti BPMN engine. In order to to persist the bpmn packages, process instance information, BPS uses this db. Since we are embedding two process engines, Apache ode for BPEL and Activiti for BPMN, we have kept the activiti db separate. </span></div>
<h4 dir="ltr" style="line-height: 1.38; margin-bottom: 2pt; margin-top: 12pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">BPS Persistence DB</span></h4>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">BPS handles long running processes and human tasks. This means, the runtime state of the process instances/ human task instances have to be persisted to a database. BPS persistence database is the databases where we store these process / t ask configuration data and process / task instance state.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<h3 dir="ltr" style="line-height: 1.38; margin-bottom: 4pt; margin-top: 14pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 17.333333333333332px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Configuring the BPS Cluster</span></h3>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-indent: 18pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Now that we have understood the individual components depicted in the above diagram, we can proceed to implement our BPS cluster. I will break down the steps in configuring the cluster into following steps. Note that the </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">only major difference</span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> between the manager node and worker node is in registry.xml configuration.</span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-indent: 18pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">If you are using two machines (hardware or VM) all other configurations are identical for master node and slave node except IP addresses, ports and deployment synchronizer entry. However, if you are configuring the cluster on the same machine for testing purpose , you will need to configure port offset in carbon.xml file as port conflicts can occur.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<ol style="margin-bottom: 0pt; margin-top: 0pt;">
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; margin-left: 24px; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Create database schemas.</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; margin-left: 24px; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Configure the master-datasource.xml ( Registry and User Manager databases )</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; margin-left: 24px; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Configure bps-datasources.xml ( BPS Persistence database )</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; margin-left: 24px; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Configure activiti-datasources.xml</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; margin-left: 24px; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Configure registry.xml ( Different for master node and slave node)</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; margin-left: 24px; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Configure user-mgt.xml</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; margin-left: 24px; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Configure axis2.xml</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; margin-left: 24px; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Configure bps.xml</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; margin-left: 24px; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Configure carbon.xml</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; margin-left: 24px; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Configure the server startup script</span></div>
</li>
</ol>
<h3 dir="ltr" style="line-height: 1.38; margin-bottom: 4pt; margin-top: 14pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 17.333333333333332px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Creating database Schema's</span></h3>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">WSO2 BPS supports the following major databases.</span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">1.</span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 9.333333333333332px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Oracle</span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">2.</span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 9.333333333333332px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">MySQL</span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">3.</span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 9.333333333333332px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">MSSQL</span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">4.</span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 9.333333333333332px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">PostgreSQL</span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">In the above diagram, we have depicted 6 databases. We can use H2 as the local registry for each BPS Node. We can create one schema for registry and configure registry mounting configuration for configuration registry and governance registry. Also in most scenarios, we can use that same db schema for user store as well. Hence we will need to create additional db schemas for bps db ( bpel and human tasks persistence data ) and activiti_db ( bpmn instances and tasks persistence data ). </span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="margin-left: 0pt;">
<table style="border-collapse: collapse; border: none;"><colgroup><col width="305"></col><col width="172"></col></colgroup><tbody>
<tr style="height: 0px;"><td style="border-bottom: solid #000000 1px; border-left: solid #000000 1px; border-right: solid #000000 1px; border-top: solid #000000 1px; padding: 7px 7px 7px 7px; vertical-align: top;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Database Schema Requirement</span></div>
</td><td style="border-bottom: solid #000000 1px; border-left: solid #000000 1px; border-right: solid #000000 1px; border-top: solid #000000 1px; padding: 7px 7px 7px 7px; vertical-align: top;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">DB Name</span></div>
</td></tr>
<tr style="height: 0px;"><td style="border-bottom: solid #000000 1px; border-left: solid #000000 1px; border-right: solid #000000 1px; border-top: solid #000000 1px; padding: 7px 7px 7px 7px; vertical-align: top;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Configuration/Governance Registry</span></div>
</td><td style="border-bottom: solid #000000 1px; border-left: solid #000000 1px; border-right: solid #000000 1px; border-top: solid #000000 1px; padding: 7px 7px 7px 7px; vertical-align: top;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">REGISTRY_DB</span></div>
</td></tr>
<tr style="height: 0px;"><td style="border-bottom: solid #000000 1px; border-left: solid #000000 1px; border-right: solid #000000 1px; border-top: solid #000000 1px; padding: 7px 7px 7px 7px; vertical-align: top;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">User Store database</span></div>
</td><td style="border-bottom: solid #000000 1px; border-left: solid #000000 1px; border-right: solid #000000 1px; border-top: solid #000000 1px; padding: 7px 7px 7px 7px; vertical-align: top;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">UM_DB</span></div>
</td></tr>
<tr style="height: 0px;"><td style="border-bottom: solid #000000 1px; border-left: solid #000000 1px; border-right: solid #000000 1px; border-top: solid #000000 1px; padding: 7px 7px 7px 7px; vertical-align: top;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Activiti DB ( BPMN DB )</span></div>
</td><td style="border-bottom: solid #000000 1px; border-left: solid #000000 1px; border-right: solid #000000 1px; border-top: solid #000000 1px; padding: 7px 7px 7px 7px; vertical-align: top;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">BPMN_DB</span></div>
</td></tr>
<tr style="height: 0px;"><td style="border-bottom: solid #000000 1px; border-left: solid #000000 1px; border-right: solid #000000 1px; border-top: solid #000000 1px; padding: 7px 7px 7px 7px; vertical-align: top;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">BPS Persistence database</span></div>
</td><td style="border-bottom: solid #000000 1px; border-left: solid #000000 1px; border-right: solid #000000 1px; border-top: solid #000000 1px; padding: 7px 7px 7px 7px; vertical-align: top;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">BPS_DB</span></div>
</td></tr>
</tbody></table>
</div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">You can find the sql script for creating registry databases from </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">wso2bps-3.5.0/dbscripts </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">directory</span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">. </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Sql script for bps persistence database can be found at </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">wso2bps-3.5.0/dbscripts/bps/create </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">directory.The db script for creating activiti db can be found at </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">wso2bps-3.5.0/dbscripts/bps/bpmn/create </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">directory. </span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Following is an example of creating the db schema for mysql. </span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">mysql> create database REGISTRY_DB;</span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">mysql> use REGISTRY_DB;</span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">mysql> source /dbscripts/mysql.sql;</span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">mysql> grant all on REGISTRY_DB.* TO username@localhost identified by "password";</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Download and copy the MySql connector to /repository/components/lib directory. </span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 17.333333333333332px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Configuring master-datasources.xml</span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">You can configure data sources for registry and user store in master-datasources.xml file found in </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">/ repository/conf/datasources</span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> directory.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><datasources-configuration</span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #660066; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">xmlns:svns</span><span style="background-color: transparent; color: #666600; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=</span><span style="background-color: transparent; color: #008800; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">"http://org.wso2.securevault/configuration"></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><providers></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><provider></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">org.wso2.carbon.ndatasource.rdbms.RDBMSDataSourceReader</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></provider></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></providers></span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><datasources></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><datasource></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><name></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">WSO2_CARBON_DB</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></name></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><description></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">The datasource used for registry and user manager</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></description></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><jndiConfig></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><name></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">jdbc/WSO2CarbonDB</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></name></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></jndiConfig></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><definition</span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #660066; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">type</span><span style="background-color: transparent; color: #666600; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=</span><span style="background-color: transparent; color: #008800; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">"RDBMS"></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><configuration></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><url></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">jdbc:h2:repository/database/WSO2CARBON_DB;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=60000</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></url></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><username></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">wso2carbon</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></username></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><password></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">wso2carbon</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></password></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><driverClassName></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">org.h2.Driver</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></driverClassName></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><maxActive></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">50</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></maxActive></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><maxWait></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">60000</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></maxWait></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><testOnBorrow></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">true</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></testOnBorrow></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><validationQuery></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">SELECT 1</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></validationQuery></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><validationInterval></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">30000</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></validationInterval></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></configuration></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></definition></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></datasource></span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><datasource></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><name></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">WSO2_REGISTRY_DB</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></name></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><description></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">The datasource used for registry- config/governance</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></description></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><jndiConfig></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><name></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">jdbc/WSO2RegistryDB</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></name></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></jndiConfig></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><definition</span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #660066; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">type</span><span style="background-color: transparent; color: #666600; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=</span><span style="background-color: transparent; color: #008800; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">"RDBMS"></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><configuration></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><url></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">jdbc:mysql://localhost:3306/REGISTRY_DB?autoReconnect=true</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></url></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><username></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">root</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></username></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><password></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">root</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></password></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><driverClassName></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">com.mysql.jdbc.Driver</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></driverClassName></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><maxActive></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">50</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></maxActive></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><maxWait></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">60000</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></maxWait></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><testOnBorrow></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">true</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></testOnBorrow></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><validationQuery></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">SELECT 1</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></validationQuery></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><validationInterval></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">30000</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></validationInterval></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></configuration></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></definition></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></datasource></span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><datasource></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><name></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">WSO2_UM_DB</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></name></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><description></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">The datasource used for registry- local</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></description></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><jndiConfig></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><name></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">jdbc/WSO2UMDB</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></name></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></jndiConfig></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><definition</span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #660066; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">type</span><span style="background-color: transparent; color: #666600; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=</span><span style="background-color: transparent; color: #008800; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">"RDBMS"></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><configuration></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><url></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">jdbc:mysql://localhost:3306/UM_DB?autoReconnect=true</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></url></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><username></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">root</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></username></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><password></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">root</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></password></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><driverClassName></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">com.mysql.jdbc.Driver</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></driverClassName></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><maxActive></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">50</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></maxActive></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><maxWait></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">60000</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></maxWait></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><testOnBorrow></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">true</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></testOnBorrow></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><validationQuery></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">SELECT 1</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></validationQuery></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><validationInterval></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">30000</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></validationInterval></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></configuration></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></definition></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></datasource></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></datasources></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></datasources-configuration></span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Most of the entries are self-explanatory.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<h3 dir="ltr" style="line-height: 1.38; margin-bottom: 4pt; margin-top: 14pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 17.333333333333332px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Configure bps-datasources.xml ( BPS Persistence database )</span></h3>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Open /repository/conf/datasources/bps-datasources.xml and add the relevant entries such as database name, driver class and database connection url. Following is the matching configuration for mysql.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><datasource></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><name></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">BPS_DS</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></name></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><description></description></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><jndiConfig></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><name></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">bpsds</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></name></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></jndiConfig></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><definition</span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #660066; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">type</span><span style="background-color: transparent; color: #666600; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=</span><span style="background-color: transparent; color: #008800; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">"RDBMS"></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><configuration></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><url></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">jdbc:mysql://localhost:3306/bps350</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></url></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><username></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">root</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></username></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><password></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">root</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></password></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><driverClassName></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">com.mysql.jdbc.Driver</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></driverClassName></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><testOnBorrow></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">true</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></testOnBorrow></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><validationQuery></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">SELECT 1</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></validationQuery></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><validationInterval></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">30000</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></validationInterval></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><useDataSourceFactory></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">false</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></useDataSourceFactory></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><defaultAutoCommit></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">true</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></defaultAutoCommit></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><maxActive></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">100</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></maxActive></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><maxIdle></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">20</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></maxIdle></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><maxWait></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">10000</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></maxWait></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></configuration></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></definition></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></datasource></span><br />
<span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span>
<span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Note the following entry.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: left; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><defaultAutoCommit></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">true</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></defaultAutoCommit> </span><span style="background-color: transparent; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">is set to true. This is an important setting for bpel engine.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">You need to do this for each node in the cluster.</span><br />
<span style="color: #434343; font-family: Arial; font-size: 18.6666666666667px; font-weight: 700; line-height: 1.38; text-indent: 36pt; white-space: pre-wrap;"><br /></span>
<span style="color: #434343; font-family: Arial; font-size: 18.6666666666667px; font-weight: 700; line-height: 1.38; text-indent: 36pt; white-space: pre-wrap;">Configure Activiti-datasources.xml</span><br />
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><b id="docs-internal-guid-b1b78cb3-7ee8-dd2f-a9fd-c9b3a54138ac" style="font-weight: normal;"><br /></b></span>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Open wso2bps-3.5.0/repository/conf/datasources/activiti-datasources.xml and add the relevant entries.</span></div>
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><b style="font-weight: normal;"><br /></b></span>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><datasource></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><name></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">ACTIVITI_DB</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></name></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><description></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">The datasource used for activiti engine</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></description></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><jndiConfig></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><name></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">jdbc/ActivitiDB</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></name></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></jndiConfig></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><definition</span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #660066; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">type</span><span style="background-color: transparent; color: #666600; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=</span><span style="background-color: transparent; color: #008800; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">"RDBMS"></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><configuration></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><url></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">jdbc:mysql://localhost:3306/BPMN_DB</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></url></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><username></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">root</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></username></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><password></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">root</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></password></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><driverClassName></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">com.mysql.jdbc.Driver</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></driverClassName></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><maxActive></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">50</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></maxActive></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><maxWait></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">60000</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></maxWait></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><testOnBorrow></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">true</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></testOnBorrow></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><validationQuery></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">SELECT 1</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></validationQuery></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><validationInterval></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">30000</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></validationInterval></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></configuration></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></definition></span></div>
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span style="font-family: Consolas; font-size: 12px; vertical-align: baseline;"> </span><span style="color: #000088; font-family: Consolas; font-size: 12px; vertical-align: baseline;"></datasource></span></span></div>
<h3 dir="ltr" style="line-height: 1.38; margin-bottom: 4pt; margin-top: 14pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 17.333333333333332px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Configure registry.xml</span></h3>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Registry mount path is used to identify the type of registry. For example” </span><span style="background-color: white; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">/_system/config</span><span style="background-color: white; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">” refers to configuration registry and "</span><span style="background-color: white; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">/_system/governance</span><span style="background-color: white; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">" refers to governance registry. Following is an example configuration for bps mount. I will highlight each section and describe them below. I will only describe the additions to the registry.xml file below. Leave the configuration for local registry as it is and add following new entries.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<h3 dir="ltr" style="line-height: 1.38; margin-bottom: 4pt; margin-top: 14pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 17.333333333333332px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Registry configuration for BPS manager node</span></h3>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><dbConfig</span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #660066; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">name</span><span style="background-color: transparent; color: #666600; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=</span><span style="background-color: transparent; color: #008800; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">"wso2bpsregistry"></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><dataSource></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">jdbc/WSO2RegistryDB</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></dataSource></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></dbConfig></span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><remoteInstance</span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #660066; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">url</span><span style="background-color: transparent; color: #666600; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=</span><span style="background-color: transparent; color: #008800; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">"https://localhost:9443/registry"></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><id></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">instanceid</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></id></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><dbConfig></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">wso2bpsregistry</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></dbConfig></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><readOnly></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">false</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></readOnly></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><enableCache></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">true</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></enableCache></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><registryRoot></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">/</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></registryRoot></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><cacheId></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">root@jdbc:mysql://localhost:3306/ REGISTRY_DB</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></cacheId></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></remoteInstance></span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><mount</span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #660066; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">path</span><span style="background-color: transparent; color: #666600; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=</span><span style="background-color: transparent; color: #008800; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">"/_system/config"</span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #660066; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">overwrite</span><span style="background-color: transparent; color: #666600; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=</span><span style="background-color: transparent; color: #008800; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">"true"></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><instanceId></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">instanceid</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></instanceId></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><targetPath></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">/_system/bpsConfig</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></targetPath></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></mount></span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><mount</span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #660066; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">path</span><span style="background-color: transparent; color: #666600; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=</span><span style="background-color: transparent; color: #008800; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">"/_system/governance"</span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #660066; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">overwrite</span><span style="background-color: transparent; color: #666600; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=</span><span style="background-color: transparent; color: #008800; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">"true"></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><instanceId></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">instanceid</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></instanceId></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><targetPath></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">/_system/governance</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></targetPath></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></mount></span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">We are identifying the data source we configured in the master datasources xml using the dbConfig entry and we give a unique name to refer to that datasource entry which is “</span><span style="background-color: transparent; color: #7030a0; font-family: Arial; font-size: 12.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">wso2bpsregistry”;</span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> Remote instance section refers to an external registry mount. We can specify the read only/read write nature of this instance as well as caching configurations and registry root location. Additionally we need to specify </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">cacheID</span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> for caching to function properly in the clustered environment. Note that </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">cacheId</span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> is same as the jdbc connection URL to our registry database.</span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">We define a unique name “id” for each remote instance which is then referred from mount configurations. In the above example, our unique id for remote instance is </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">instanceId. </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">In each of the mounting configurations, we specify the actual mount patch and target mount path.</span></div>
<h3 dir="ltr" style="line-height: 1.38; margin-bottom: 4pt; margin-top: 14pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 17.333333333333332px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Registry configuration for BPS worker node</span></h3>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><dbConfig</span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #660066; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">name</span><span style="background-color: transparent; color: #666600; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=</span><span style="background-color: transparent; color: #008800; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">"wso2bpsregistry"></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><dataSource></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">jdbc/WSO2RegistryDB</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></dataSource></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></dbConfig></span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><remoteInstance</span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #660066; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">url</span><span style="background-color: transparent; color: #666600; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=</span><span style="background-color: transparent; color: #008800; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">"https://localhost:9443/registry"></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><id></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">instanceid</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></id></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><dbConfig></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">wso2bpsregistry</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></dbConfig></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><readOnly></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">true</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></readOnly></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><enableCache></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">true</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></enableCache></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><registryRoot></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">/</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></registryRoot></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><cacheId></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">root@jdbc:mysql://localhost:3306/ REGISTRY_DB</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></cacheId></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></remoteInstance></span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><mount</span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #660066; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">path</span><span style="background-color: transparent; color: #666600; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=</span><span style="background-color: transparent; color: #008800; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">"/_system/config"</span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #660066; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">overwrite</span><span style="background-color: transparent; color: #666600; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=</span><span style="background-color: transparent; color: #008800; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">"true"></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><instanceId></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">instanceid</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></instanceId></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><targetPath></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">/_system/bpsConfig</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></targetPath></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></mount></span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><mount</span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #660066; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">path</span><span style="background-color: transparent; color: #666600; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=</span><span style="background-color: transparent; color: #008800; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">"/_system/governance"</span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #660066; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">overwrite</span><span style="background-color: transparent; color: #666600; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=</span><span style="background-color: transparent; color: #008800; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">"true"></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><instanceId></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">instanceid</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></instanceId></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><targetPath></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">/_system/governance</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></targetPath></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></mount></span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">This configuration is same as above with </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">readOnly</span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> property set to </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">true for remote instance configuration.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<h3 dir="ltr" style="line-height: 1.38; margin-bottom: 4pt; margin-top: 14pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 17.333333333333332px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Configure user-mgt.xml</span></h3>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">In the user-mgt.xml enter the datasource information for user store which we configured previously in master-datasoures.xml file. You can change the admin username and password as well. However, you should do this before starting the server.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><Configuration></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><AddAdmin></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">true</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></AddAdmin></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><AdminRole></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">admin</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></AdminRole></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><AdminUser></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><UserName></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">admin</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></UserName></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><Password></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">admin</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></Password></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></AdminUser></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><EveryOneRoleName></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">everyone</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></EveryOneRoleName></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><Property</span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #660066; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">name</span><span style="background-color: transparent; color: #666600; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=</span><span style="background-color: transparent; color: #008800; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">"dataSource"</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">jdbc/WSO2UMDB</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></Property></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></Configuration></span></div>
<h3 dir="ltr" style="line-height: 1.38; margin-bottom: 4pt; margin-top: 14pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 17.333333333333332px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Configure axis2.xml</span></h3>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">We use axis2.xml to enable clustering. We will use well known address (WKA) based clustering method. In WKA based clustering, we need to have a subset of cluster members configured in all the members of the cluster. Usually, we configure all members of the cluster in the members section of axis2.xml. At least one well known member has to be operational at all times.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><clustering</span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #660066; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">class</span><span style="background-color: transparent; color: #666600; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=</span><span style="background-color: transparent; color: #008800; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">"org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent"</span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #660066; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">enable</span><span style="background-color: transparent; color: #666600; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=</span><span style="background-color: transparent; color: #008800; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">"true"></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><parameter</span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #660066; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">name</span><span style="background-color: transparent; color: #666600; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=</span><span style="background-color: transparent; color: #008800; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">"membershipScheme"</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">wka</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></parameter></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><parameter</span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #660066; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">name</span><span style="background-color: transparent; color: #666600; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=</span><span style="background-color: transparent; color: #008800; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">"localMemberHost"</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">127.0.0.1</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></parameter></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><parameter</span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #660066; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">name</span><span style="background-color: transparent; color: #666600; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=</span><span style="background-color: transparent; color: #008800; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">"localMemberPort"</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">4000</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></parameter></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><members></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><member></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><hostName></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">10.100.1.1</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></hostName></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><port></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">4000</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></port></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></member></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><member></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><hostName></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">10.100.1.2</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></hostName></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><port></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">4010</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></port></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></member></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></members></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></clustering></span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">In Axis2.xml change </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">enabled</span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> parameter to </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">true. </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Find the parameter </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">membershipSchema</span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> and set </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">wka</span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> option. Then configure the </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">localMemberHost</span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> and </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">LocalMemberport</span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> Entries. Under the </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">members</span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> section, add the </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">host</span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> name and </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">port</span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> for each </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">wka</span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> member. As we have only two nodes in our sample cluster configuration, we will configure both nodes as WKA nodes.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<h3 dir="ltr" style="line-height: 1.38; margin-bottom: 4pt; margin-top: 14pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 17.333333333333332px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Configure bps.xml</span></h3>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">In bps.xml, you need to configure the following entries.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Enable distributed lock</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><tns:UseDistributedLock></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">true</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></tns:UseDistributedLock></span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">This entry enables hazelcast based synchronizations mechanism in order to prevent concurrent modification of instance state by cluster members.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 9.333333333333332px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Configure scheduler threadpool size</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><tns:ODESchedulerThreadPoolSize></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">0</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></tns:ODESchedulerThreadPoolSize></span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Thread pool size should always be smaller than </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">maxActive</span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> database connections configured in bps-datasources.xml file.When configuring the thread pool size allocate 10-15 threads per core depending on your setup. Then leave some additional number of database connections since bps uses database connections for management API as well.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Example settings for a two node cluster.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Consider that MySQL Server configured database connection size 250 and the maxActive entry in bps-datasources file for each node is set to 70. Then we can configure the scheduler thread pool size as </span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Thread Pool Size = { (Max Active connections) /2 } - 10</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">SchedulerTreadPool size for each node 25</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Note that we divided the max active number of connections by two in order to allow similar number of db connections for bpel engine and human task engine. If you are not using human tasks, you do not need to divide the max active connections by 2. </span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Define a unique node id for each node in the cluster</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><tns:NodeId>node1</tns:NodeId></span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">This value has to be a unique string for each node in the cluster.</span></div>
<h3 dir="ltr" style="line-height: 1.38; margin-bottom: 4pt; margin-top: 14pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 17.333333333333332px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Configure carbon.xml</span></h3>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">If you want automatic deployment of artifacts across the cluster nodes, you can enable deployment synchronizer feature from carbon.xml.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><DeploymentSynchronizer></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><Enabled></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">true</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></Enabled></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><AutoCommit></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">true</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></AutoCommit></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><AutoCheckout></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">true</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></AutoCheckout></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><RepositoryType></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">svn</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></RepositoryType></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><SvnUrl></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">http://10.100.3.115/svn/repos/as</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></SvnUrl></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><SvnUser></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">wso2</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></SvnUser></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><SvnPassword></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">wso2123</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></SvnPassword></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><SvnUrlAppendTenantId></span><span style="background-color: transparent; color: black; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">true</span><span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></SvnUrlAppendTenantId></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: #000088; font-family: Consolas; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></DeploymentSynchronizer></span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Deployment synchronizer functions by committing the artifacts to the configured svn location from one node (Node with </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">AutoCommit</span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> option set to </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">true</span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">) and sending cluster messages to all other nodes about the addition / change of the artifact. When the cluster message is received, all other nodes will do an svn update resulting in obtaining the changes to relevant deployment directories. Now the server will automatically deploy these artifacts.</span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">For the master node, keep AutoCommit and AutoCheckout entries as true. For all other nodes, change </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">autoCommit</span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> entry to </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">false</span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<h3 dir="ltr" style="line-height: 1.38; margin-bottom: 4pt; margin-top: 14pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 17.333333333333332px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Configure the server startup script</span></h3>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">In the server startup script, you can configure the memory allocation for the server node as well as jvm tuning parameters. If you open the wso2server.sh or wso2server.bat file located at the /bin directory and go to the bottom of the file , you will find those parameters. Change them according to the expected server load.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Following is the default memory allocation for a wso2 server.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">-Xms256m -Xmx1024m -XX:MaxPermSize=256m</span></div>
<h3 dir="ltr" style="line-height: 1.38; margin-bottom: 4pt; margin-top: 14pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 17.333333333333332px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Cluster artifact deployment best practices</span></h3>
<ol style="margin-bottom: 0pt; margin-top: 0pt;">
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; margin-left: 48px; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Always deploy the artifact on the manager node first and on worker nodes after some delay.</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; margin-left: 48px; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 9.333333333333332px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Use deployment synchronizer if a protected svn repository is available in the network and your cluster has many nodes ( no of nodes > 4 )</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: decimal; margin-left: 48px; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Otherwise you can use simple file copying to deploy artifacts </span></div>
</li>
</ol>
<br /></div>
nandikajayawardanahttp://www.blogger.com/profile/11920576746810295004noreply@blogger.com1tag:blogger.com,1999:blog-5702309079039458297.post-19860130814885879592015-04-25T12:05:00.000-07:002015-04-25T12:06:08.002-07:00Email testing with Greenmail<div dir="ltr" style="text-align: left;" trbidi="on">
When an application provides support for sending and receiving emails we need to be able to write test cases to automate the verification of this functionality. <a href="http://www.icegreen.com/greenmail/">Green mail</a> is a great library for Implementing this functionality. Greenmail provide support for various mail protocols such as smtp, smtps, pop3 , pop3s , imap and imaps.<br />
<br />
You can start a Greenmail server to listen with all these protocols enabled and listening on localhost with two lines of code.<br />
<br />
<b> GreenMail greenMail = new GreenMail();</b><br />
<b> greenMail.start();</b><br />
<b><br /></b>
<br />
When the server is started as above, the default ports of the above supported protocols are offset by 3000.<br />
<br />
SMTP : 3025 SMTPS : 3465 POP3 : 3110 POP3S : 3995 IMAP : 3143 IMAPS : 3993<br />
<br />
However, if you start the server as above, more often than not, there will be a port conflict with some other program resulting in exceptions. Therefore you can configure the GreenMail server with the ServerSetup object with the protocol , binding address and port.<br />
<br />
<b> ServerSetup setup = new ServerSetup(3025, "localhost", "smtp");</b><br />
<b> GreenMail greenMail = new GreenMail(setup);</b><br />
<br />
You can register a user to the server by using setUser method.<br />
<br />
<b>greenMail.setUser("user1@mail.com", "user1", "user1");</b><br />
<b><br /></b>
In order to receive mails from greenmail server object, waitForIncomingEmail method is available.<br />
<br />
<b>greenMail.waitForIncomingEmail(5000, 1);</b><br />
<b>Message[] messages = greenMail.getReceivedMessages();</b><br />
<b><br /></b>
In order to find more details, take a look at the source code at <b>https://github.com/greenmail-mail-test/greenmail</b><br />
<b><br /></b>
Following is a sample on how to send a mail using java mail and receive it using greenmail with user authentication enabled.<br />
<br />
<i>import com.icegreen.greenmail.util.GreenMail;</i><br />
<i>import com.icegreen.greenmail.util.ServerSetup;</i><br />
<i><br /></i>
<i>import javax.mail.Message;</i><br />
<i>import javax.mail.MessagingException;</i><br />
<i>import javax.mail.PasswordAuthentication;</i><br />
<i>import javax.mail.Session;</i><br />
<i>import javax.mail.Transport;</i><br />
<i>import javax.mail.internet.InternetAddress;</i><br />
<i>import javax.mail.internet.MimeMessage;</i><br />
<i>import java.io.IOException;</i><br />
<i>import java.util.Properties;</i><br />
<i><br /></i>
<i>public class GreenMailTest {</i><br />
<i><br /></i>
<i> public static void main(String[] args) throws InterruptedException, IOException, MessagingException {</i><br />
<i> ServerSetup setup = new ServerSetup(3025, "localhost", "smtp");</i><br />
<i> GreenMail greenMail = new GreenMail(setup);</i><br />
<i> greenMail.setUser("user1@mail.com", "user1", "user1");</i><br />
<i> greenMail.start();</i><br />
<i><br /></i>
<i> final String username = "user1";</i><br />
<i> final String password = "user1";</i><br />
<i><br /></i>
<i> Properties props = new Properties();</i><br />
<i> props.put("mail.smtp.auth", "true");</i><br />
<i> props.put("mail.transport.protocol", "smtp");</i><br />
<i> props.put("mail.smtp.host", "localhost");</i><br />
<i> props.put("mail.smtp.port", "3025");</i><br />
<i><br /></i>
<i> Session session = Session.getInstance(props,</i><br />
<i> new javax.mail.Authenticator() {</i><br />
<i> protected PasswordAuthentication getPasswordAuthentication() {</i><br />
<i> return new PasswordAuthentication(username, password);</i><br />
<i> }</i><br />
<i> });</i><br />
<i><br /></i>
<i> Message message = new MimeMessage(session);</i><br />
<i> message.setSubject("Mail Subject");</i><br />
<i> message.setText("Mail content");</i><br />
<i> message.setFrom(new InternetAddress("user1@mail.com"));</i><br />
<i> message.setRecipients(Message.RecipientType.TO, InternetAddress.parse("user1@mail.com"));</i><br />
<i> Transport.send(message);</i><br />
<i><br /></i>
<i> greenMail.waitForIncomingEmail(5000, 1);</i><br />
<i> Message[] messages = greenMail.getReceivedMessages();</i><br />
<i> System.out.println("Message length =>" + messages.length);</i><br />
<i> System.out.println("Subject => " + messages[0].getSubject());</i><br />
<i> System.out.println("Content => " + messages[0].getContent().toString());</i><br />
<i> System.out.println("Done");</i><br />
<i> greenMail.stop();</i><br />
<i> }</i><br />
<i>}</i></div>
nandikajayawardanahttp://www.blogger.com/profile/11920576746810295004noreply@blogger.com3tag:blogger.com,1999:blog-5702309079039458297.post-4029637504560156522015-03-29T03:20:00.001-07:002015-03-29T03:46:08.939-07:00How to configure a ESB proxy service as a consumer to listen to two message broker queues<div dir="ltr" style="text-align: left;" trbidi="on">
In this blog post, we will look at how we can configure multiple transport receivers and senders with WSO2 ESB and configure a proxy service to have multiple transport receivers.<br />
<br />
In order to test our scenario, we need to start two message broker instances.<br />
<br />
Lets configure active MQ to run as two instances.<br />
<br />
1. Download activemq and extract it.<br />
2. Run the following command to create an instance of it.<br />
<br />
<b>$ ./activemq create instanceA</b><br />
<b>$ ./activemq create instanceB</b><br />
<b><br /></b>
<br />
<div style="text-align: justify;">
Running these two commands will create two directories inside activemq bin directory with configuration files and start-up scripts duplicated within them. Now we can modify the configuration files to use different ports so that when we start the two mq instances, there wont be port conflicts.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Open InstanceB/conf/activemq.xml file and modify the ports under transportConnectors.<br />
<br />
<div style="text-align: left;">
<transportConnectors></div>
<div style="text-align: left;">
<transportConnector name="openwire" uri="tcp://0.0.0.0:61616?maximumConnections=1000&amp;wireformat.maxFrameSize=104857600"/></div>
<div style="text-align: left;">
<transportConnector name="amqp" uri="amqp://0.0.0.0:5682?maximumConnections=1000&amp;wireformat.maxFrameSize=104857600"/></div>
<div style="text-align: left;">
</transportConnectors></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
Now open jetty.xml in the same directory and modify the ui port from <b>8161</b> to different port.</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
Now we are ready to start the two activemq instances. </div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<b>cd instanceA/bin</b></div>
<div style="text-align: left;">
<b>./instanceA console</b></div>
<div style="text-align: left;">
<b><br /></b></div>
<div style="text-align: left;">
<b>cd instanceB/bin</b></div>
<div style="text-align: left;">
<b>./instanceB console</b></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
Now we have two activemq instance running in console mode.<br />
<br />
Log into activemq instanceA ui and create a queue named <b>MyJMSQueue</b>.<br />
Similiary, log into activemq instanceB and create a queue with the same name.<br />
<br />
Use http://localhost:8161/admin and username and password admin for defaults.<br />
<br />
Now, we have done our configurations for activemq broker.<br />
<br />
Now copy the following jar files to repository/components/lib directory of ESB.<br />
<br />
<b>activemq-broker-5.8.0.jar</b><br />
<b>activemq-client-5.8.0.jar</b><br />
<b>geronimo-j2ee-management_1.1_spec-1.0.1.jar</b><br />
<b>geronimo-jms_1.1_spec-1.1.1.jar</b><br />
<b>hawtbuf-1.9.jar</b><br />
<b><br /></b>
<b><br /></b>
<b>Configuring axis2.xml</b><br />
<b><br /></b>
Now go to repository/conf/axis2/axis2.xml and uncomment jms transport section for activemq and duplicate it with a transport named jms1. Make sure to update the provider url port with the value you specified in activemq.xml. My configuration looks like the following.<br />
<br />
<div style="text-align: left;">
<i><transportReceiver name="jms" class="org.apache.axis2.transport.jms.JMSListener"></i></div>
<div style="text-align: left;">
<i> <parameter name="myTopicConnectionFactory" locked="false"></i></div>
<div style="text-align: left;">
<i> <parameter name="java.naming.factory.initial" locked="false">org.apache.activemq.jndi.ActiveMQInitialContextFactory</parameter></i></div>
<div style="text-align: left;">
<i> <parameter name="java.naming.provider.url" locked="false">tcp://localhost:61616</parameter></i></div>
<div style="text-align: left;">
<i> <parameter name="transport.jms.ConnectionFactoryJNDIName" locked="false">TopicConnectionFactory</parameter></i></div>
<div style="text-align: left;">
<i> <parameter name="transport.jms.ConnectionFactoryType" locked="false">topic</parameter></i></div>
<div style="text-align: left;">
<i> </parameter></i></div>
<div style="text-align: left;">
<i><br /></i></div>
<div style="text-align: left;">
<i> <parameter name="myQueueConnectionFactory" locked="false"></i></div>
<div style="text-align: left;">
<i> <parameter name="java.naming.factory.initial" locked="false">org.apache.activemq.jndi.ActiveMQInitialContextFactory</parameter></i></div>
<div style="text-align: left;">
<i> <parameter name="java.naming.provider.url" locked="false">tcp://localhost:61616</parameter></i></div>
<div style="text-align: left;">
<i> <parameter name="transport.jms.ConnectionFactoryJNDIName" locked="false">QueueConnectionFactory</parameter></i></div>
<div style="text-align: left;">
<i> <parameter name="transport.jms.ConnectionFactoryType" locked="false">queue</parameter></i></div>
<div style="text-align: left;">
<i> </parameter></i></div>
<div style="text-align: left;">
<i><br /></i></div>
<div style="text-align: left;">
<i> <parameter name="default" locked="false"></i></div>
<div style="text-align: left;">
<i> <parameter name="java.naming.factory.initial" locked="false">org.apache.activemq.jndi.ActiveMQInitialContextFactory</parameter></i></div>
<div style="text-align: left;">
<i> <parameter name="java.naming.provider.url" locked="false">tcp://localhost:61616</parameter></i></div>
<div style="text-align: left;">
<i> <parameter name="transport.jms.ConnectionFactoryJNDIName" locked="false">QueueConnectionFactory</parameter></i></div>
<div style="text-align: left;">
<i> <parameter name="transport.jms.ConnectionFactoryType" locked="false">queue</parameter></i></div>
<div style="text-align: left;">
<i> </parameter></i></div>
<div style="text-align: left;">
<i> </transportReceiver></i></div>
<div style="text-align: left;">
<i><br /></i></div>
<div style="text-align: left;">
<i> <transportReceiver name="jms1" class="org.apache.axis2.transport.jms.JMSListener"></i></div>
<div style="text-align: left;">
<i> <parameter name="myTopicConnectionFactory1" locked="false"></i></div>
<div style="text-align: left;">
<i> <parameter name="java.naming.factory.initial" locked="false">org.apache.activemq.jndi.ActiveMQInitialContextFactory</parameter></i></div>
<div style="text-align: left;">
<i> <parameter name="java.naming.provider.url" locked="false">tcp://localhost:61636</parameter></i></div>
<div style="text-align: left;">
<i> <parameter name="transport.jms.ConnectionFactoryJNDIName" locked="false">TopicConnectionFactory</parameter></i></div>
<div style="text-align: left;">
<i> <parameter name="transport.jms.ConnectionFactoryType" locked="false">topic</parameter></i></div>
<div style="text-align: left;">
<i> </parameter></i></div>
<div style="text-align: left;">
<i><br /></i></div>
<div style="text-align: left;">
<i> <parameter name="myQueueConnectionFactory1" locked="false"></i></div>
<div style="text-align: left;">
<i> <parameter name="java.naming.factory.initial" locked="false">org.apache.activemq.jndi.ActiveMQInitialContextFactory</parameter></i></div>
<div style="text-align: left;">
<i> <parameter name="java.naming.provider.url" locked="false">tcp://localhost:61636</parameter></i></div>
<div style="text-align: left;">
<i> <parameter name="transport.jms.ConnectionFactoryJNDIName" locked="false">QueueConnectionFactory</parameter></i></div>
<div style="text-align: left;">
<i> <parameter name="transport.jms.ConnectionFactoryType" locked="false">queue</parameter></i></div>
<div style="text-align: left;">
<i> </parameter></i></div>
<div style="text-align: left;">
<i><br /></i></div>
<div style="text-align: left;">
<i> <parameter name="default" locked="false"></i></div>
<div style="text-align: left;">
<i> <parameter name="java.naming.factory.initial" locked="false">org.apache.activemq.jndi.ActiveMQInitialContextFactory</parameter></i></div>
<div style="text-align: left;">
<i> <parameter name="java.naming.provider.url" locked="false">tcp://localhost:61636</parameter></i></div>
<div style="text-align: left;">
<i> <parameter name="transport.jms.ConnectionFactoryJNDIName" locked="false">QueueConnectionFactory</parameter></i></div>
<div style="text-align: left;">
<i> <parameter name="transport.jms.ConnectionFactoryType" locked="false">queue</parameter></i></div>
<div style="text-align: left;">
<i> </parameter></i></div>
<div>
<br /></div>
<br />
Now start ESB and deploy the following proxy service.<br />
<br />
<proxy xmlns="http://ws.apache.org/ns/synapse"<br />
name="JMSListenerProxy"<br />
transports="jms jms1"<br />
startOnLoad="true"<br />
trace="disable"><br />
<description/><br />
<target><br />
<inSequence><br />
<log level="full"/><br />
<drop/><br />
</inSequence><br />
</target><br />
<parameter name="transport.jms.Destination"><b>MyJMSQueue</b></parameter><br />
</proxy><br />
<div>
<br /></div>
<div>
Now if you publish message to queue MyJMSQueue of either activemq instance, you will notice that the message is consumed by our proxy service and logged.</div>
<div>
<br /></div>
<div>
<b>How does it work ?</b></div>
<div>
<br /></div>
<div style="text-align: justify;">
In our scenario, since we are going to have to have different configurations for transports jms and jms1, we cannot specify the connection factory details in the proxy service itself. Hence we have resorted to use the default configurations specified in the axis2.xml.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
However, we can specify the jms destination name in our proxy service. This make sense as this kind of approach would only be required for mq high availability scenario and hence we can afford to have the same queue name for both message broker instances. </div>
</div>
</div>
</div>
nandikajayawardanahttp://www.blogger.com/profile/11920576746810295004noreply@blogger.com2tag:blogger.com,1999:blog-5702309079039458297.post-46024116410178111692015-03-28T03:51:00.002-07:002015-03-28T12:29:21.652-07:00How to configure IBM MQ 8 With WSO2 ESB<div dir="ltr" style="text-align: left;" trbidi="on">
In this blog post, we will look at how to configure IBM MQ version 8 with WSO2 ESB and implement a proxy service to consume messages from a queue in IBM MQ.<br />
<br />
<h4 style="text-align: left;">
Following are the steps we need to follow in order to configure ESB and implement our proxy service. </h4>
<br />
1. Create the relevant JMS Administrative objects in IBM MQ.<br />
2. Generate the JNDI binding file from IBM MQ<br />
3. Configure WSO2 ESB JMS transport with the generated binding file and connection factory information.<br />
4. Implement the proxy service and deploy it.<br />
5. Publish a message to MQ and observe how it is consumed by ESB.<br />
<br />
<h4 style="text-align: left;">
Create Queue Manager and Queue and Server Connection Channel in MQ</h4>
Step1.<br />
<br />
Start the Web Sphere MQ Explorer. If you are not running on an administrator account, right click on the icon and select Run as Administrator option.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_17J1KoyeizSRXRA_UAXPRWc0Ef5tPfSqMirLc3WFBm-M40sevVy5oO6quFhn4krZ58QAmlBGue8GdPoPR402vJS3w2Bo_Isnpz-jhJuUviJESLRpOd_hwInOW9Lhm0QjIFBp4iiB42s/s1600/1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_17J1KoyeizSRXRA_UAXPRWc0Ef5tPfSqMirLc3WFBm-M40sevVy5oO6quFhn4krZ58QAmlBGue8GdPoPR402vJS3w2Bo_Isnpz-jhJuUviJESLRpOd_hwInOW9Lhm0QjIFBp4iiB42s/s1600/1.png" height="483" width="640" /></a></div>
<br />
Step 2.<br />
<br />
Click on the<b> Queue Managers</b> and Select <b>New</b> => <b>Queue Manager</b> to create a new queue manager.<br />
<br />
We will name the queue manager as ESBQManager. Select create server connection channel option as you pass through the wizard with next button. You will get the option to specify the port this queue manager will use. Since we do not have any queue managers at the moment, we can use the default 1414 port.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOMvuJVarrmerZfdwru6IaQN7VrLpUu8q7O6HQ42TZ3FQhgYeLHl_OnRRj-G_afN1bz_ecCkFAtd3diUAwCoxyRr3auf0zet7SGLPBw8K9xWzb9Jiv0VRDg17HXDBRW5YsXyoLiZ9fMCU/s1600/2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOMvuJVarrmerZfdwru6IaQN7VrLpUu8q7O6HQ42TZ3FQhgYeLHl_OnRRj-G_afN1bz_ecCkFAtd3diUAwCoxyRr3auf0zet7SGLPBw8K9xWzb9Jiv0VRDg17HXDBRW5YsXyoLiZ9fMCU/s1600/2.png" height="328" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVVlHOofI852-p_clceCXZXIFdAVCky7lwN7nrHKwrIAAtYdPMdyCfrWnNn3thGwlm2Kup93tYlYxbGilYArYyp6a4INxvvplw_fafwr0HJapsjei8AbX9P1sX_0cB4JFTSx_K8qXy7NU/s1600/3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVVlHOofI852-p_clceCXZXIFdAVCky7lwN7nrHKwrIAAtYdPMdyCfrWnNn3thGwlm2Kup93tYlYxbGilYArYyp6a4INxvvplw_fafwr0HJapsjei8AbX9P1sX_0cB4JFTSx_K8qXy7NU/s1600/3.png" height="640" width="523" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDU5cO0SIGrdL5yUQckL2hQKvcOhlL72DiRlI2PCHSu6oabO-pZ-hUx9Ah-YGJYIN8QsV77GQtuw-J5QeMTx0zNRsEgCvBOYdWh0PSoqlqszan5Uy_vOpF9-Zf-5TZ_Ve4cM0Y0xTGDbY/s1600/4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDU5cO0SIGrdL5yUQckL2hQKvcOhlL72DiRlI2PCHSu6oabO-pZ-hUx9Ah-YGJYIN8QsV77GQtuw-J5QeMTx0zNRsEgCvBOYdWh0PSoqlqszan5Uy_vOpF9-Zf-5TZ_Ve4cM0Y0xTGDbY/s1600/4.png" height="640" width="523" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjm0phzCdrBfxN9yEMiManvts46mE6J86wcLHp-DltwCIeKx8uk9g-5h3JxtThh2z7krtEec8FIatRJUghxh1VILeN1cS9TZLZ9ypfPVGFtpVLIVBaBZab-FiFaI8qYyTVffc2uz5f8I_w/s1600/5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjm0phzCdrBfxN9yEMiManvts46mE6J86wcLHp-DltwCIeKx8uk9g-5h3JxtThh2z7krtEec8FIatRJUghxh1VILeN1cS9TZLZ9ypfPVGFtpVLIVBaBZab-FiFaI8qYyTVffc2uz5f8I_w/s1600/5.png" height="640" width="523" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJOpQ1eNkhbfiSLD2FYEosqx_wtL6POu1VK11Qrmb6pYIhrmpnzr65vWmS21VyAOb7IKmwH8XqPg1teIGqOq1cPwrTG8RyRAhJNLOBY2MFcmLVIU0PnYot6I53e92EJhnujxlNdCUYTJo/s1600/6.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJOpQ1eNkhbfiSLD2FYEosqx_wtL6POu1VK11Qrmb6pYIhrmpnzr65vWmS21VyAOb7IKmwH8XqPg1teIGqOq1cPwrTG8RyRAhJNLOBY2MFcmLVIU0PnYot6I53e92EJhnujxlNdCUYTJo/s1600/6.png" height="640" width="523" /></a></div>
<br />
<br />
Now we have created a queue manager object. Next we need to create a local queue which we will used to publish massages and consume from ESB. Lets name this queue as <b>LocalQueue1</b>.<br />
<br />
Expand newly created <b>ESBQManager </b>and click on Queues and select <b>New => Local Queue.</b><br />
<b><br /></b>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGvElrDLcVYcNNDeP4M05n-O6Y9AY_zQKeOWN6mB4r4HoQXKts5rE0xZCrQ6F0n_cgmQPlwwWhIGQxKV44dsW5cJPZw4Vod0abXDdYy0sq0SfjINgD5PXhZPcbKkJFacQh5fa4aL-ZL1U/s1600/7.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGvElrDLcVYcNNDeP4M05n-O6Y9AY_zQKeOWN6mB4r4HoQXKts5rE0xZCrQ6F0n_cgmQPlwwWhIGQxKV44dsW5cJPZw4Vod0abXDdYy0sq0SfjINgD5PXhZPcbKkJFacQh5fa4aL-ZL1U/s1600/7.png" height="385" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkQTFGsAtTPOqQAsVYEzbahjvxHHbGCk7wiFwQIEl_DRthcxdeEB2sc2R4j-cIq8rwhwDX5roYGLPRkU9rsvm6MnAi0XeCK2BZUlVJ_FT9zvvNh8r6Rkjts1EjZmPrDLAkCc7s5Xo257Y/s1600/8.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkQTFGsAtTPOqQAsVYEzbahjvxHHbGCk7wiFwQIEl_DRthcxdeEB2sc2R4j-cIq8rwhwDX5roYGLPRkU9rsvm6MnAi0XeCK2BZUlVJ_FT9zvvNh8r6Rkjts1EjZmPrDLAkCc7s5Xo257Y/s1600/8.png" height="540" width="640" /></a></div>
<b><br /></b>
<br />
We will use default options for our local queue.<br />
<br />
Next we need to create a server connection channel which will be used to connect to the queue manager.<br />
<br />
Select <b>Channels => New => Server-connection Channel</b> option and give the channel name <b>mychannel</b>. Select default options for creating the channel.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6w-5tgTAmsg9_UvRZ4o5TdZdYvQFc-cBUHMONVAyjDJDg3lzLhoy1iotJsR4RcX4LFh_ZgluMzCd7Zk4uCy7o3-ZjhvsWCl6bWOqNYFKtHynCdnqgXzD6AO5l0upZ9nJhRAZBvhLcxCw/s1600/9.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6w-5tgTAmsg9_UvRZ4o5TdZdYvQFc-cBUHMONVAyjDJDg3lzLhoy1iotJsR4RcX4LFh_ZgluMzCd7Zk4uCy7o3-ZjhvsWCl6bWOqNYFKtHynCdnqgXzD6AO5l0upZ9nJhRAZBvhLcxCw/s1600/9.png" height="451" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_LUdNcFtQ_45m_9rt8SuodwSI1hoypxXTQK7cnjPoRoYvTU_-0tZzH9hhXgI2Pc1JWsP3k02ga6vqNqy4m3GvygO1RwmBUF2KLohjSwaCBmJu3pKrTK8QKdnYQhdFzKrRNngGTi0bsYQ/s1600/10.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_LUdNcFtQ_45m_9rt8SuodwSI1hoypxXTQK7cnjPoRoYvTU_-0tZzH9hhXgI2Pc1JWsP3k02ga6vqNqy4m3GvygO1RwmBUF2KLohjSwaCBmJu3pKrTK8QKdnYQhdFzKrRNngGTi0bsYQ/s1600/10.png" height="540" width="640" /></a></div>
<br />
<br />
Now we have created our queue manager, queue and server connection channel.<br />
<br />
<h4 style="text-align: left;">
Generating the binding file</h4>
<span style="text-align: justify;"> Next we need to generate the binding file which will be used by IBM MQ client libraries for JNDI Look-up. For that, we need to first create a directory where this binding file will be stored. I have created a directory named </span><b style="text-align: justify;">G:\jndidirectory </b><span style="text-align: justify;">for this purpose. </span><br />
<br />
Now go to MQ Explorer, click on <b>JMS Administered Objects</b> and select <b>Add Initial Context</b>.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhv6MrgvvjD0oNyLEbIBsbzVJotaW7Pgx9ILs7YmtwXk6ogP92XLwWERiic79dgnZ8F79JRYithEDiBr4NprLXM8zjTU9PaM2b-P6KH7PPSHtxAe2q7O1RXi1OjyXb5T4wyUUN_AhX7iMM/s1600/11.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhv6MrgvvjD0oNyLEbIBsbzVJotaW7Pgx9ILs7YmtwXk6ogP92XLwWERiic79dgnZ8F79JRYithEDiBr4NprLXM8zjTU9PaM2b-P6KH7PPSHtxAe2q7O1RXi1OjyXb5T4wyUUN_AhX7iMM/s1600/11.png" height="640" width="622" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDw3xVQ7DBrTqqBrGeaYRvPfXN6WCVH_GZEPL30aOQIARJGOVQq4z6XJw9KVf3Xuyr8clvm0TczIAvpoME9cvycsuDlq4FhWaWntF9QWQ7MCfKJbjAw3-XYCnXn5d8kZxU6Cyn-tY7Cdk/s1600/12.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDw3xVQ7DBrTqqBrGeaYRvPfXN6WCVH_GZEPL30aOQIARJGOVQq4z6XJw9KVf3Xuyr8clvm0TczIAvpoME9cvycsuDlq4FhWaWntF9QWQ7MCfKJbjAw3-XYCnXn5d8kZxU6Cyn-tY7Cdk/s1600/12.png" height="640" width="558" /></a></div>
<br />
In the connection details wizard, select <b>File System</b> option and browse to our newly created directory and click <b>next</b> and click <b>finish</b>.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVqw3kc0Q57slMVQH6uWPoYx56zi3tvjQvb2S1_lnLroFnUYw1vmMVPL1jW0P8AVkL1xWfWxzH4-c1UGg9YuFfx_803p2R79cWNJLQssCALTysAxiAojyscpKkaEVo9wJqhn83ir-hIdI/s1600/13.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVqw3kc0Q57slMVQH6uWPoYx56zi3tvjQvb2S1_lnLroFnUYw1vmMVPL1jW0P8AVkL1xWfWxzH4-c1UGg9YuFfx_803p2R79cWNJLQssCALTysAxiAojyscpKkaEVo9wJqhn83ir-hIdI/s1600/13.png" height="334" width="640" /></a></div>
<br />
Now, under the JMS Administered objects, we should be able to see our file initial context.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjC8FcSvvRm39ByWzZxSbhWfPWtxB70DoIGI_MhUS_pDa1Txl-u5rh3hd1EST28yWSZX42tFGTOJ0yoW-SRzjhO5t_y8sGgzQBRS-AwN3vG005c_AeDhyphenhyphen41ZDhG7zjqXcjMfqZmLiN7jUo/s1600/14.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjC8FcSvvRm39ByWzZxSbhWfPWtxB70DoIGI_MhUS_pDa1Txl-u5rh3hd1EST28yWSZX42tFGTOJ0yoW-SRzjhO5t_y8sGgzQBRS-AwN3vG005c_AeDhyphenhyphen41ZDhG7zjqXcjMfqZmLiN7jUo/s1600/14.png" height="436" width="640" /></a></div>
<br />
<br />
Expand it and click on Connection Factories to create a new connection factory.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjj8Ir4W7UzDDpoSteqTlLbqc1NM24n63W9X-phYRj9b9AgOe0PJEFYQc6TkdtwX_6R0__8VSBKThGP-qjTeGgoULj-WQFtb9DjOkbojonmvQ_Rf779hzZPD2iia-rS2ERh_jxkdiiP5Iw/s1600/15.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjj8Ir4W7UzDDpoSteqTlLbqc1NM24n63W9X-phYRj9b9AgOe0PJEFYQc6TkdtwX_6R0__8VSBKThGP-qjTeGgoULj-WQFtb9DjOkbojonmvQ_Rf779hzZPD2iia-rS2ERh_jxkdiiP5Iw/s1600/15.png" height="570" width="640" /></a></div>
<br />
<br />
We will name our connection factory as <b>MyQueueConnectionFactory. </b>For the connection factory type, select Queue Connection Factory.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEOX6rc7gQUo-6MClODYP3e3Z-L-q-WwSw4TwP97oPb2ctB5blKDFQ-umxkvlycJmIj5Q4nwLS2vA2SbdfWCmoaxB8USF_Ignw6m99sc5HbWkVn5N-svZ_BKOWpP2kV1SG2-fGFS5W_3A/s1600/16.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEOX6rc7gQUo-6MClODYP3e3Z-L-q-WwSw4TwP97oPb2ctB5blKDFQ-umxkvlycJmIj5Q4nwLS2vA2SbdfWCmoaxB8USF_Ignw6m99sc5HbWkVn5N-svZ_BKOWpP2kV1SG2-fGFS5W_3A/s1600/16.png" height="542" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJHiDVlb7yz4SxshWxFy314gnWL5v5aacuClTQe5ps5r3mHVpsMR5_b3bAEOGFM5_A_r7UwhDpIoMU68VbIYtTgFc74B7V0Je-tEvy5q75oaQ8SVrqiU5DKSiJ__CiPNwMyW2NI_8LpNM/s1600/17.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJHiDVlb7yz4SxshWxFy314gnWL5v5aacuClTQe5ps5r3mHVpsMR5_b3bAEOGFM5_A_r7UwhDpIoMU68VbIYtTgFc74B7V0Je-tEvy5q75oaQ8SVrqiU5DKSiJ__CiPNwMyW2NI_8LpNM/s1600/17.png" height="542" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHzjtqZGdvZcnyEAkm6NeEZiJXPr3gKCLH-bv7jfz9jhzjJzzb234NEwC2F3kC0O_VHH5cg4tWFyNzCAy6VUPj2agT0RlPbPX4EDWn2zzoTwFeV3v8zDiQgbR6zUd-xvuJh9D2GGCx67Y/s1600/18.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHzjtqZGdvZcnyEAkm6NeEZiJXPr3gKCLH-bv7jfz9jhzjJzzb234NEwC2F3kC0O_VHH5cg4tWFyNzCAy6VUPj2agT0RlPbPX4EDWn2zzoTwFeV3v8zDiQgbR6zUd-xvuJh9D2GGCx67Y/s1600/18.png" height="542" width="640" /></a></div>
<br />
<div style="text-align: justify;">
Click next and click finish. Now Click on the newly created Connection Factory and select properties. Click on the connections option, browse and select our queue manager. You can also configure the port and the host name for connection factory. Since we used default values, we do not need to do any changes here. </div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIOWAZ484CHnAUSmH3hMcXqdOHAZxmclr5OYyBnw8kDOsECg7MAlkjE6pYKTCn6nD2rlSj5OxPmAXIQcZ6BeZohC-vePECp6JTju9x0dt4dy9IQi4191mS_5G5PHGlkh-72rENraQvhYE/s1600/19.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIOWAZ484CHnAUSmH3hMcXqdOHAZxmclr5OYyBnw8kDOsECg7MAlkjE6pYKTCn6nD2rlSj5OxPmAXIQcZ6BeZohC-vePECp6JTju9x0dt4dy9IQi4191mS_5G5PHGlkh-72rENraQvhYE/s1600/19.png" height="534" width="640" /></a></div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIf5G8g64c2MxqK5snNTNmez59hKiz2nuhxze-nJWHitxDdTzMVNNFHtXxY8v-5L4qrSuMxAekjdxImOyS5Ru7C0phw171u7E8sEWOaWuLnTlIWjDCD4nTYreGuKsJF9bsg1KwtRWfbtQ/s1600/20.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIf5G8g64c2MxqK5snNTNmez59hKiz2nuhxze-nJWHitxDdTzMVNNFHtXxY8v-5L4qrSuMxAekjdxImOyS5Ru7C0phw171u7E8sEWOaWuLnTlIWjDCD4nTYreGuKsJF9bsg1KwtRWfbtQ/s1600/20.png" height="460" width="640" /></a></div>
<br />
<br />
For the other options, go with the defaults. Next , we need to create a JMS Destination. We will use the same queue name <b>LocalQueue1 </b>as our destination and map it to our queue <b>LocalQueue1 . </b>Click on <b>Destinations</b> and select <b>New => Destination</b>. and provide name <b>LocalQueue1. </b>When you get the option to select the queue manager and queue browse and select <b>ESBQManager </b>and <b>LocalQueue1 .</b><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvyx37C27DDnBug4s1CW6n-pIw4YUX-nsFPehv6QJkmdMN5ZR_wK_wcAxxeYzXsSXCXVJhE1IE7QlCi6i5ggz5doS1XVxx_SIiscG6gUiWFhv8V8IVmNOgNe68fy87f4TajSFTtgQ_btw/s1600/21.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvyx37C27DDnBug4s1CW6n-pIw4YUX-nsFPehv6QJkmdMN5ZR_wK_wcAxxeYzXsSXCXVJhE1IE7QlCi6i5ggz5doS1XVxx_SIiscG6gUiWFhv8V8IVmNOgNe68fy87f4TajSFTtgQ_btw/s1600/21.png" height="228" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimDKJ4Ft9cflCAfMVohovQkDcfyGiG9bxjEUnMbtPPniugufGX_kATn31wiOOZG4HPdZm8b_1gAJUwbMenKX2ylJZ7FzbpsrehZBe1zrcsczPYpNtqePyjTFcNU3mVWrh0uUjJmgX4N8I/s1600/22.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimDKJ4Ft9cflCAfMVohovQkDcfyGiG9bxjEUnMbtPPniugufGX_kATn31wiOOZG4HPdZm8b_1gAJUwbMenKX2ylJZ7FzbpsrehZBe1zrcsczPYpNtqePyjTFcNU3mVWrh0uUjJmgX4N8I/s1600/22.png" height="554" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgS2h5FNMSVlXkRZ4tbnst_kIjwQ_G3vnF48I09Co9UEs9M0em9gcsc39PxSq1u-mR4zLTo8Kx-H3ZIYJhAEz_5qRmeRpsJ5__YlEAxtr4rA9nT_RdU6J-7L8s0qZcz6tNV2_-L60O07pU/s1600/23.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgS2h5FNMSVlXkRZ4tbnst_kIjwQ_G3vnF48I09Co9UEs9M0em9gcsc39PxSq1u-mR4zLTo8Kx-H3ZIYJhAEz_5qRmeRpsJ5__YlEAxtr4rA9nT_RdU6J-7L8s0qZcz6tNV2_-L60O07pU/s1600/23.png" height="332" width="640" /></a></div>
<br />
<br />
Now we are done with creating the Initial Context. If you now browse to the directory we specified, you should be able to see the newly generated binding file.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqGgZFdPgBSNsTj4zAPYyJYoHEPHUTUFjiyRN3aLYItNUYOC7jYyyxCuay5k4-2-N3CEcjr_uXMkb6gQK6Dli-ao6bG9hXXlTWiQxR83zwGngzKvKurP17bCbQp5TWvMZ6XryUIwmViyA/s1600/24.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqGgZFdPgBSNsTj4zAPYyJYoHEPHUTUFjiyRN3aLYItNUYOC7jYyyxCuay5k4-2-N3CEcjr_uXMkb6gQK6Dli-ao6bG9hXXlTWiQxR83zwGngzKvKurP17bCbQp5TWvMZ6XryUIwmViyA/s1600/24.png" height="184" width="320" /></a></div>
<br />
<br />
In order to connect to the Queue, we need to configure channel authentication. For the ease of use, lets disable channel authentication for our scenario. For that run the command <b>runmqsc </b>from the command line and execute the following two commands. Note that you have to start command prompt as admin user.<br />
<br />
<b>runmqsc ESBQManager</b><br />
<br />
<div class="MsoNormal">
<span style="background: white; color: #333333; font-family: "Arial","sans-serif"; font-size: 9.5pt; line-height: 115%;"><b>ALTER QMGR
CHLAUTH(DISABLED)</b><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: white; color: #333333; font-family: "Arial","sans-serif"; font-size: 9.5pt; line-height: 115%;"><b><br /></b></span></div>
<div class="MsoNormal">
<span style="font-family: Consolas;"><span style="background-color: white; font-size: 14.6666669845581px; line-height: 16.8666667938232px;">REFRESH SECURITY TYPE(CONNAUTH)</span></span></div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDtVwJb89dYPaSrpDFdYQHj1gM-T7kZBKuZFEN8xaRBjIHzRygt9sgGbAUfvrHPBVKFtIfXLKHoJd2iBE0IOX-v5lbpRKF5dCcxP_b2y_gwNbU4vjJSSiamfkRvXUASkRO_03TpRaBa_w/s1600/25.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDtVwJb89dYPaSrpDFdYQHj1gM-T7kZBKuZFEN8xaRBjIHzRygt9sgGbAUfvrHPBVKFtIfXLKHoJd2iBE0IOX-v5lbpRKF5dCcxP_b2y_gwNbU4vjJSSiamfkRvXUASkRO_03TpRaBa_w/s1600/25.png" height="187" width="400" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="background-color: white;">Now we are done with configuring the IBM MQ. </span></div>
<div class="MsoNormal">
<span style="background-color: white;"><br /></span></div>
<h4 style="text-align: left;">
<span style="background-color: white;">Configuring WSO2 ESB JMS Transport. </span></h4>
<div>
<br />
open axis2.xml found in wso2esb-4.8.1\repository\conf\axis2 directory and add the following entries to it near the commented out jms transport receiver section.</div>
<div>
<br /></div>
<div>
<div>
<transportReceiver name="jms" class="org.apache.axis2.transport.jms.JMSListener"></div>
<div>
<parameter name="default" locked="false"></div>
<div>
<parameter name="java.naming.factory.initial" locked="false">com.sun.jndi.fscontext.RefFSContextFactory</parameter></div>
<div>
<parameter name="java.naming.provider.url" locked="false">file:/G:/jndidirectory</parameter></div>
<div>
<parameter name="transport.jms.ConnectionFactoryJNDIName" locked="false">MyQueueConnectionFactory</parameter></div>
<div>
<parameter name="transport.jms.ConnectionFactoryType" locked="false">queue</parameter></div>
<div>
<parameter name="transport.jms.UserName" locked="false">nandika</parameter></div>
<div>
<parameter name="transport.jms.Password" locked="false">password</parameter></div>
<div>
</parameter></div>
<div>
<br /></div>
<div>
<parameter name="myQueueConnectionFactory1" locked="false"></div>
<div>
<parameter name="java.naming.factory.initial" locked="false">com.sun.jndi.fscontext.RefFSContextFactory</parameter></div>
<div>
<parameter name="java.naming.provider.url" locked="false">file:/G:/jndidirectory</parameter></div>
<div>
<parameter name="transport.jms.ConnectionFactoryJNDIName" locked="false">MyQueueConnectionFactory</parameter></div>
<div>
<parameter name="transport.jms.ConnectionFactoryType" locked="false">queue</parameter></div>
<div>
<parameter name="transport.jms.UserName" locked="false">nandika</parameter></div>
<div>
<parameter name="transport.jms.Password" locked="false">password</parameter></div>
<div>
</parameter></div>
<div>
</transportReceiver></div>
</div>
<div class="MsoNormal">
<span style="background-color: white;"><br /></span></div>
Similarly add jms transport sender section as follows.<br />
<br />
<transportSender name="jms" class="org.apache.axis2.transport.jms.JMSSender"><br />
<parameter name="default" locked="false"><br />
<parameter name="java.naming.factory.initial" locked="false">com.sun.jndi.fscontext.RefFSContextFactory</parameter><br />
<parameter name="java.naming.provider.url" locked="false">file:/G:/jndidirectory</parameter><br />
<parameter name="transport.jms.ConnectionFactoryJNDIName" locked="false">MyQueueConnectionFactory</parameter><br />
<parameter name="transport.jms.ConnectionFactoryType" locked="false">queue</parameter><br />
<parameter name="transport.jms.UserName" locked="false">nandika</parameter><br />
<parameter name="transport.jms.Password" locked="false">password</parameter><br />
</parameter><br />
<br />
<parameter name="myQueueConnectionFactory1" locked="false"><br />
<parameter name="java.naming.factory.initial" locked="false">com.sun.jndi.fscontext.RefFSContextFactory</parameter><br />
<parameter name="java.naming.provider.url" locked="false">file:/G:/jndidirectory</parameter><br />
<parameter name="transport.jms.ConnectionFactoryJNDIName" locked="false">MyQueueConnectionFactory</parameter><br />
<parameter name="transport.jms.ConnectionFactoryType" locked="false">queue</parameter><br />
<parameter name="transport.jms.UserName" locked="false">nandika</parameter><br />
<parameter name="transport.jms.Password" locked="false">password</parameter><br />
</parameter><br />
</transportSender><br />
<br />
Since we are using IBM MQ queue manager default configuration, it is expecting username password client authentication. Here, the username and password is the login information of your logged in operating system account.<br />
<br />
<br />
<h4 style="text-align: left;">
Copy MQ client libraries to respective directories.</h4>
<div>
<br /></div>
<div>
Copy jta.jar and jms.jar to repository/components/lib directory.</div>
<div>
Copy com.ibm.mq_2.0.0.jar and fscontext_1.0.0.jar to repository/components/dropins directory. Download the jar files from <a href="https://github.com/nandika/MQLibs">here</a>.</div>
<br />
<h4 style="text-align: left;">
Deploy JMSListener Proxy Service.</h4>
<div>
Now start esb and deploy the following simple proxy service. This proxy service act as a listener to our queue LocalQueue1 and when ever we put a message to this queue, the proxy service will pull that message out of the queue and log it.</div>
<div>
<br /></div>
<proxy xmlns="http://ws.apache.org/ns/synapse"<br />
name="MyJMSProxy"<br />
transports="jms"<br />
startOnLoad="true"<br />
trace="disable"><br />
<description/><br />
<target><br />
<inSequence><br />
<log level="full"/><br />
<drop/><br />
</inSequence><br />
</target><br />
<parameter name="transport.jms.Destination">LocalQueue1</parameter><br />
</proxy><br />
<br />
<h4 style="text-align: left;">
Testing our proxy service</h4>
<div>
Go to MQ Explorer and add a message to local queue. </div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRpq7nMWbIFvQ39hPOTbZmr4wS_d6yt-K7qPfvuotD6VokOSn2N_y6WPdO9WacDV50OAZ52DLt66B2WehcsEdN0AHZDUgLsOm4snP4S_FqbHBDAyQhRUteQmdg-PalsWItjzYV2FyUgrc/s1600/26.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRpq7nMWbIFvQ39hPOTbZmr4wS_d6yt-K7qPfvuotD6VokOSn2N_y6WPdO9WacDV50OAZ52DLt66B2WehcsEdN0AHZDUgLsOm4snP4S_FqbHBDAyQhRUteQmdg-PalsWItjzYV2FyUgrc/s1600/26.png" height="267" width="640" /></a></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
Now you will be able to see the message logged in ESB console as well as in the log file.</div>
<div>
<br /></div>
<div>
<b><i>Enjoy JMS with IBM MQ</i></b></div>
</div>
nandikajayawardanahttp://www.blogger.com/profile/11920576746810295004noreply@blogger.com22tag:blogger.com,1999:blog-5702309079039458297.post-69258675932801459832014-12-21T03:33:00.002-08:002014-12-21T03:33:24.576-08:00Packt's $5 ebook Bonanza<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13.3333339691162px;">Following the success of last year’s offer, Packt Publishing will be celebrating the holiday season with a bigger $5 offer. Check it out here <a href="http://bit.ly/1DQhFk6"> http://bit.ly/1DQhFk6</a></span><span style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13.3333339691162px;"> From Thursday 18th December, every eBook and video will be available on the publisher’s website for just $5. Customers are invited to purchase as many as they like before the offer ends on Tuesday January 6th, making it the perfect opportunity to try something new or to take your skills to the next level as 2015 begins.</span></div>
nandikajayawardanahttp://www.blogger.com/profile/11920576746810295004noreply@blogger.com1tag:blogger.com,1999:blog-5702309079039458297.post-5034829240621115442014-11-16T09:44:00.000-08:002014-11-16T09:44:05.149-08:00WS-BPEL 2.0 Beginner's Guide Book Review<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://www.packtpub.com/sites/default/files/8963EN_WS%20BPEL%202.0%20Beginner%E2%80%99s%20Guide%20_Maxi_Cover_0.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://www.packtpub.com/sites/default/files/8963EN_WS%20BPEL%202.0%20Beginner%E2%80%99s%20Guide%20_Maxi_Cover_0.jpg" width="259" /></a></div>
<br />
<br />
I had the opportunity to read the WS-BPEL 2.0 Beginners Guide Book from PACKT publishing. The authors of this book has done a very good job in explaining the concepts in a simple and concise manner.<br />
<br />
It is a very descriptive and practical guide to a beginners in BPEL. Writing an executable BPEL process is a very different task compared to write code in a general purpose programming language. The reason for that is, you need to have background knowledge on a lot of technologies in order to properly understand and implement a BPEL process. Minimum set of those technologies include SOAP / HTTP web services, WSDL, XML , Xml schema and XPath.<br />
<br />
Hence , WS-BPEL 2.0 beginners guide takes an ideal approach for a beginner. It starts by introducing the basic concepts and straightaway goes into a practical example. It chooses oracle SOA Suite as the target technology stack and JDeveloper as its development environment for BPEL and provides step by step screen shots on how to implement a process. Next it explains each and every step taken in implementing the sample process and how to deploy and test the process. I find this approach very useful, simply because, when learning a complex technology like BPEL, the best approach is to start with simple exercises to get the feel for the technology and then dive into the more complex topics step by step.<br />
<br />
This pattern is followed for all the chapters as well. Each new chapter introduces a concept from BPEL, and goes onto a practical example explaining the details and finally testing the process. Hence, when you finish reading the book, not only you will understand the concepts in BPEL, but also, you would have mastered to BPEL development tool. As BPEL is developed mostly by using graphical tools, mastering the development environment is an essential skill for becoming a skilled BPEL developer.<br />
<br />
The book explains the concepts in words as well as using diagrams. Book covers all the concepts from BPEL specification including topics such as synchronous processes, asynchronous processes, message correlation, fault handing , compensation handling ect.<br />
<br />
In addition to BPEL concepts, book also covers the WS-Human Tasks space as well. The human tasks tooling capabilities of JDeveloper as well as the concepts are explained in a concise manner. In many practical process implementations in the industry there will be BPEL as well as human tasks. Hence for a beginner, this book is an ideal guide to master the BPEL based workflow technologies. Also, This book can be useful for an experienced BPEL developer migrating from another tool to JDeveloper.<br />
<br />
Finally , I would recommend this book to anyone who is new to BPEL and is looking for a practical guide to learning BPEL related workflow technologies. </div>
nandikajayawardanahttp://www.blogger.com/profile/11920576746810295004noreply@blogger.com0tag:blogger.com,1999:blog-5702309079039458297.post-21934926457344925992014-02-24T02:14:00.003-08:002014-02-24T07:55:32.132-08:00Proxy Service Version Management with WSO2 ESB<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: justify;">
Versioning of proxy services in an SOA environment is a common requirement. Versioning is required when you want to add / update or change the functionality of a proxy service without affecting the existing consumers of that proxy service. </div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuCAmJ0udX84x0fgwmV4fO444imbuH4ki8kotYov3r72b95-3hbayjan6VoVLHbP_OO-fyqtB8fQgMu_kUsIZyqf77QYVAJrfQG46uku3c7KHGS6-TWv97LOY-uCT_xSvjG16iKWaqaiw/s1600/Introduction+of+new+service+(2).png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuCAmJ0udX84x0fgwmV4fO444imbuH4ki8kotYov3r72b95-3hbayjan6VoVLHbP_OO-fyqtB8fQgMu_kUsIZyqf77QYVAJrfQG46uku3c7KHGS6-TWv97LOY-uCT_xSvjG16iKWaqaiw/s1600/Introduction+of+new+service+(2).png" height="297" width="320" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Above diagram shows a typical versioning scenario. If the change in Service X 2.0 is compatible with Service X 1.0, then we can simply point to service X version 2.0 and consumers will not be affected by the change. However, if the change is in compatible, then we will have to introduce a new proxy service version.</div>
<br />
<h3 style="text-align: left;">
General Principles of versioning</h3>
<div>
1. Client should not be forced to use the new version immediately</div>
<div>
<ul style="text-align: left;">
<li>Gradual client migration</li>
<li>Retire services gracefully</li>
</ul>
</div>
<div>
2. Support multiple versions concurrently </div>
<div>
<ul style="text-align: left;">
<li>Limit the number of versions though governance</li>
<li>Only the latest version is discover-able</li>
</ul>
<div>
<br /></div>
</div>
<div>
<h4 style="text-align: left;">
<b style="text-align: justify;">Solution 1. </b></h4>
<div style="text-align: justify;">
Create two versions of the proxy service. Consumer A can access the version 1.0 of the service and Consumer B can access version 2.0 of the service. Gradually migrate Consumer A to proxy service version 2.0. This way, consumer A can live with version 1.0 and plan for upgrading to version 2.0. Both versions of the proxy service will exist till version 1.0 is deprecated.</div>
<div style="text-align: justify;">
<br /></div>
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div>
<br /></div>
<div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRHqfX8fAev5agDHwt5OBqOgH8Xnpd-D2n3bZUN30MocTsUMPfsXtDl4jZFFka1MItiv63n4kPQJprRHKWJQJ03oaXv_lxgB8RVUi5M4Gjj63rKKk5hZzgZL8kGfqaA7hy2STyPALuMZI/s1600/Untitled+drawing.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRHqfX8fAev5agDHwt5OBqOgH8Xnpd-D2n3bZUN30MocTsUMPfsXtDl4jZFFka1MItiv63n4kPQJprRHKWJQJ03oaXv_lxgB8RVUi5M4Gjj63rKKk5hZzgZL8kGfqaA7hy2STyPALuMZI/s1600/Untitled+drawing.png" height="400" width="306" /></a></div>
<br /></div>
<br />
<h3 style="text-align: left;">
<span style="text-align: justify;"><br /></span></h3>
<h3 style="text-align: left;">
<span style="text-align: justify;"><br /></span></h3>
<h3 style="text-align: left;">
<span style="text-align: justify;"><br /></span></h3>
<h3 style="text-align: left;">
<span style="text-align: justify;"><br /></span></h3>
<h3 style="text-align: left;">
<span style="text-align: justify;"><br /></span></h3>
<h3 style="text-align: left;">
<span style="text-align: justify;"><br /></span></h3>
<h3 style="text-align: left;">
<span style="text-align: justify;"><br /></span></h3>
<h3 style="text-align: left;">
<span style="text-align: justify;"><br /></span></h3>
<h3 style="text-align: left;">
<span style="text-align: justify;"><br /></span></h3>
<h3 style="text-align: left;">
<span style="text-align: justify;"><br /></span></h3>
<h3 style="text-align: left;">
<span style="text-align: justify;"><br /></span></h3>
<h3 style="text-align: left;">
<span style="text-align: justify;"><br /></span></h3>
<h3 style="text-align: left;">
<span style="text-align: justify;"><br /></span></h3>
<h3 style="text-align: left;">
<span style="text-align: justify;"><br /></span></h3>
<h3 style="text-align: left;">
<span style="text-align: justify;"><br /></span></h3>
<h3 style="text-align: left;">
<span style="text-align: justify;"><br /></span></h3>
<h3 style="text-align: left;">
<span style="text-align: justify;"><br /></span></h3>
<h3 style="text-align: left;">
<span style="text-align: justify;"><br /></span></h3>
<h3 style="text-align: left;">
<span style="text-align: justify;"><br /></span></h3>
<h3 style="text-align: left;">
<span style="text-align: justify;"><br /></span></h3>
<h3 style="text-align: left;">
<span style="text-align: justify;">Versioning with WSO2 ESB</span></h3>
<div style="text-align: justify;">
<br />
Easiest way to version proxy services is to create a new version of the proxy service and related artifacts by appending the version information to the proxy service name. It is best to add version information to artifacts as a best practice. </div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
For example consider we have to proxy a web service named StockQuote. Then we can name the proxy service as StockQuoteProxyV1. All artifacts contained with the proxy service should also be named accordingly. For example out endpoint pointing to the StockQuote service can be named as StockQuoteEndpointV1. </div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Now creating and deploying new version of the proxy service becomes a simple task. We just need to update all the related artifacts with the new version number.</div>
<div style="text-align: justify;">
<br />
<br /></div>
<div style="text-align: justify;">
<h3>
Future Improvements</h3>
<div>
Another approach to implementing proxy service versioning by having version as an attribute has been tried in the parent synapse project and there is a GSOC project on the same topic. These improvements are planed for future releases of WSO2 ESB.</div>
<br /></div>
<div style="text-align: justify;">
References. </div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
1. <a href="https://issues.apache.org/jira/browse/SYNAPSE-928">https://issues.apache.org/jira/browse/SYNAPSE-928</a></div>
</div>
nandikajayawardanahttp://www.blogger.com/profile/11920576746810295004noreply@blogger.com9tag:blogger.com,1999:blog-5702309079039458297.post-32233466993382587222014-02-22T04:00:00.001-08:002014-02-22T04:00:47.284-08:00How to configure a BPEL process to consume JMS Queue<div dir="ltr" style="text-align: left;" trbidi="on">
Since BPS is based on Axis2, All axis2 transports are available for BPEL published services as well. I will describe the steps required to consume a message from a JMS queue to complete a BPEL process.<br />
<br />
We will use ActiveMQ for this sample.<br />
<br />
Following is the step wise guide to do it.<br />
<br />
<b>Step 1. </b><br />
Download and extract Apache ActiveMQ 5.6.<br />
<br />
<b>Step 2.</b><br />
Download Extract WSO2 BPS 3.2.0<br />
<br />
<b>Step 3.</b><br />
<div style="text-align: justify;">
un comment the TransportReceiver and TransportSender sections of axis2.xml corresponding to ActiveMQ. You can find axis2.xml located at <bps_home>/repository/conf/axis2 directory.</bps_home></div>
<b><br /></b>
<br />
<transportReceiver name="jms" class="org.apache.axis2.transport.jms.JMSListener"><br />
<parameter name="myTopicConnectionFactory"><br />
<parameter name="java.naming.factory.initial">org.apache.activemq.jndi.ActiveMQInitialContextFactory</parameter><br />
<parameter name="java.naming.provider.url">tcp://localhost:61616</parameter><br />
<parameter name="transport.jms.ConnectionFactoryJNDIName">TopicConnectionFactory</parameter><br />
</parameter><br />
<br />
<parameter name="myQueueConnectionFactory"><br />
<parameter name="java.naming.factory.initial">org.apache.activemq.jndi.ActiveMQInitialContextFactory</parameter><br />
<parameter name="java.naming.provider.url">tcp://localhost:61616</parameter><br />
<parameter name="transport.jms.ConnectionFactoryJNDIName">QueueConnectionFactory</parameter><br />
</parameter><br />
<br />
<parameter name="default"><br />
<parameter name="java.naming.factory.initial">org.apache.activemq.jndi.ActiveMQInitialContextFactory</parameter><br />
<parameter name="java.naming.provider.url">tcp://localhost:61616</parameter><br />
<parameter name="transport.jms.ConnectionFactoryJNDIName">QueueConnectionFactory</parameter><br />
</parameter><br />
</transportReceiver><br />
<div>
<br /></div>
<div>
<br /></div>
<div>
<transportReceiver name="jms" class="org.apache.axis2.transport.jms.JMSListener"></div>
<div>
<br /></div>
<div>
<b>Step 4.</b></div>
<br />
Copy following jar files from activemq lib directory to <bps_home>/repository/components/lib directory.</bps_home><br />
<br />
activemq-core-5.6.0.jar<br />
geronimo-j2ee-management_1.1_spec-1.0.1.jar<br />
geronimo-jms_1.1_spec-1.1.1.jar<br />
<br />
<br />
<b>Step 5.</b><br />
Start active mq from console<br />
<br />
<div style="text-align: justify;">
<b>apache-activemq-5.6.0/bin $ ./activemq console</b></div>
<div style="text-align: justify;">
Use management console of ActiveMQ to view the queues and topics. ActiveMQ management console is available at<b><i> http://0.0.0.0:8161/admin</i></b></div>
<b><br /></b>
<br />
<br />
<b>Step 6</b>.<br />
Start BPS from console.<br />
<br />
<b>wso2bps-3.2.0/bin $ sh wso2server.sh</b><br />
<br />
<div style="text-align: justify;">
From the management console , deploy the HelloWorld2.zip file that is available in the repository/samples/bpel directory of BPS.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
From the services list view, select the HelloWorld service. </div>
<div style="text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzobAy_am9WsKKGq3FPbvlR6AqTtnWs6cI1cg04UbYAWkEL1itw75pgdMWtmdLWA4DZOqtujh8iJQv7N8P8XugfkP7PDfbPsrr0L5RmbmgHt8p1t19XAoA7AsVnGlLrOPbVOdQoTd6cD0/s1600/imagenew4.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzobAy_am9WsKKGq3FPbvlR6AqTtnWs6cI1cg04UbYAWkEL1itw75pgdMWtmdLWA4DZOqtujh8iJQv7N8P8XugfkP7PDfbPsrr0L5RmbmgHt8p1t19XAoA7AsVnGlLrOPbVOdQoTd6cD0/s1600/imagenew4.png" /></a></div>
<div style="text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div style="text-align: justify;">
As you can see, the jms endpoint is also available for the newly deployed process. </div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<b>Step 7.</b></div>
<div style="text-align: justify;">
<b><br /></b></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div style="text-align: justify;">
Now go to ActiveMQ management console and go to queues section. You will find that there is a queue named HelloService. </div>
<div style="text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUDW0P1sFTF9lKd4ukZ1hhiIaiHTNYn0NyQtwNhfP-bSqTkFmgp-5u2VwsS9txQ8frjvbvjsHy92INcs0eBS0VkqCD1jyFkQdMxYqrW2Dbkq8d55go_DqehlIYh1KiPWcjrWHBE6mB09o/s1600/image5.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUDW0P1sFTF9lKd4ukZ1hhiIaiHTNYn0NyQtwNhfP-bSqTkFmgp-5u2VwsS9txQ8frjvbvjsHy92INcs0eBS0VkqCD1jyFkQdMxYqrW2Dbkq8d55go_DqehlIYh1KiPWcjrWHBE6mB09o/s1600/image5.png" /></a></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Use the send to section to add a message to the HelloService. You can generate the sample message for the HelloService wsdl using soap ui.</div>
<div style="text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNlS9Ukvaoxlw3sBJZt_8NgEMnjEUKr9usDZuFz-EQ0JFx_CuzmPq5MoJO4dch7Wq-eH6M0wnfCGfsXsJhUtaMLHvwI_QK97hRVG3l5rfwX2DeUZ8YonhqF4888_1bIuGaKQEBgijOCg8/s1600/imagenew1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNlS9Ukvaoxlw3sBJZt_8NgEMnjEUKr9usDZuFz-EQ0JFx_CuzmPq5MoJO4dch7Wq-eH6M0wnfCGfsXsJhUtaMLHvwI_QK97hRVG3l5rfwX2DeUZ8YonhqF4888_1bIuGaKQEBgijOCg8/s1600/imagenew1.png" height="390" width="640" /></a></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
</div>
<a name='more'></a><br />
<br />
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Use the send button to send the message.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<b>Step 8.</b></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Go to bps management console instance view and see there is a completed process instance. What happened is that when we started the bpel process, HelloService listens on the jms queue. When a message becomes available , it is consumed by the service which results in bpel processes running to completion. </div>
<div style="text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjk_p8-_2vCELQXoh7sn8hqhjnUYE4jVO675XiOobKW7ThDFa2u4payFw4pAyYVpEofZGjVDAKeNV96yCrtfs_WRwtk6AusK-sCvUJHDTUb8i2P7p-eMksko_fyN6CwJOR69bkYvoEAh3Y/s1600/imagenew2.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjk_p8-_2vCELQXoh7sn8hqhjnUYE4jVO675XiOobKW7ThDFa2u4payFw4pAyYVpEofZGjVDAKeNV96yCrtfs_WRwtk6AusK-sCvUJHDTUb8i2P7p-eMksko_fyN6CwJOR69bkYvoEAh3Y/s1600/imagenew2.png" /></a></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
<br />
<br /></div>
nandikajayawardanahttp://www.blogger.com/profile/11920576746810295004noreply@blogger.com0tag:blogger.com,1999:blog-5702309079039458297.post-40574722472518126702014-02-22T03:04:00.001-08:002015-05-21T02:51:34.365-07:00How to Cluster WSO2 BPS 3.2.0 <div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: justify;">
<h3>
Cluster Architecture</h3>
<div>
<br /></div>
</div>
<div style="text-align: justify;">
<span style="text-indent: 36pt;">Server
clustering is done mainly in order to achieve high availability and
scalability.</span></div>
<div class="MsoNormal" style="text-align: justify; text-indent: 36.0pt;">
<o:p></o:p></div>
<h3 style="text-align: justify;">
</h3>
<h3 style="text-align: justify;">
</h3>
<h3 style="text-align: justify;">
</h3>
<h3 style="text-align: justify;">
High Availability <o:p></o:p></h3>
<div>
<br /></div>
<div class="MsoNormal" style="text-align: justify; text-indent: 36.0pt;">
High availability
means there is redundancy in the system such that service is available to
outside world irrespective of individual component failures. For example, if we
have a two node cluster, even if one node fails, the other node would continue
to serve requests till the failed node is restored again.<o:p></o:p></div>
<h3 style="text-align: justify;">
</h3>
<h3 style="text-align: justify;">
</h3>
<h3 style="text-align: justify;">
</h3>
<h3 style="text-align: justify;">
Scalability<o:p></o:p></h3>
<div>
<br /></div>
<div class="MsoNormal" style="text-align: justify; text-indent: 36.0pt;">
Scalability
means increasing the processing capacity by adding more server nodes.<o:p></o:p></div>
<h3 style="text-align: justify;">
</h3>
<h3 style="text-align: justify;">
</h3>
<h3 style="text-align: justify;">
</h3>
<h3 style="text-align: justify;">
Load Balancer<o:p></o:p></h3>
<div>
<br /></div>
<div class="MsoNormal" style="text-align: justify; text-indent: 36.0pt;">
Load balancing
is the method of distributing workload to multiple server nodes. In order to achieve proper clustering
function you would require a Load Balancer. The function of the load balancer
is to monitor the availability of the server nodes in the cluster and route
requests to all the available nodes in a fair manner. Load balancer would be the external
facing interface of the cluster and it would receive all the requests coming to
the cluster. Then it would distribute this load to all available nodes. If a
node has failed, then the load balancer will not route requests to that node
till that node is back online.</div>
<div class="MsoNormal" style="text-align: justify;">
<o:p></o:p></div>
<h3 style="text-align: left;">
</h3>
<h3 style="text-align: left;">
</h3>
<h3 style="text-align: left;">
</h3>
<h3 style="text-align: left;">
WSO2 Business Process Server Cluster Architecture</h3>
<div>
<br /></div>
<h2 style="text-align: justify;">
<o:p></o:p></h2>
<div class="MsoNormal" style="text-align: justify;">
In order to build a wso2 business process server cluster you
would require the following.<br />
<br />
<ol>
<li><span style="font-size: 7pt; text-indent: -18pt;"> </span><span style="text-indent: -18pt;">Load balancer</span></li>
<li><span style="font-size: 7pt; text-indent: -18pt;"> </span><span style="text-indent: -18pt;">Hardware / VM nodes for BPS Nodes</span></li>
<li><span style="font-size: 7pt; text-indent: -18pt;"> </span><span style="text-indent: -18pt;">Database Server</span></li>
</ol>
</div>
<span style="text-align: justify;">Following diagram depicts the deployment of a two node WSO2 bps cluster.</span><br />
<span style="text-align: justify;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZK7oCk0RMnH1cuu-JWpsTwY9Ul03s-sIj4taICjBQ4FfrC65o7OUomqBfgJBR4FmmOekw_AELB77Koh9sE68JwOnWmXUZXOSPhz2PKk0KvC_pvXPBocnYg9q_CRNEmzOGoOatRU2rP74/s1600/BPS+Cluster+.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZK7oCk0RMnH1cuu-JWpsTwY9Ul03s-sIj4taICjBQ4FfrC65o7OUomqBfgJBR4FmmOekw_AELB77Koh9sE68JwOnWmXUZXOSPhz2PKk0KvC_pvXPBocnYg9q_CRNEmzOGoOatRU2rP74/s1600/BPS+Cluster+.png" /></a></div>
<span style="text-align: justify;"><br /></span>
<br />
<div class="MsoNormal" style="text-align: justify;">
<o:p></o:p></div>
<div class="MsoNormal" style="text-align: justify;">
<br /></div>
<div class="MsoNormal">
<v:shapetype coordsize="21600,21600" filled="f" id="_x0000_t75" o:preferrelative="t" o:spt="75" path="m@4@5l@4@11@9@11@9@5xe" stroked="f">
<v:stroke joinstyle="miter">
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0">
<v:f eqn="sum @0 1 0">
<v:f eqn="sum 0 0 @1">
<v:f eqn="prod @2 1 2">
<v:f eqn="prod @3 21600 pixelWidth">
<v:f eqn="prod @3 21600 pixelHeight">
<v:f eqn="sum @0 0 1">
<v:f eqn="prod @6 1 2">
<v:f eqn="prod @7 21600 pixelWidth">
<v:f eqn="sum @8 21600 0">
<v:f eqn="prod @7 21600 pixelHeight">
<v:f eqn="sum @10 21600 0">
</v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:formulas>
<v:path gradientshapeok="t" o:connecttype="rect" o:extrusionok="f">
<o:lock aspectratio="t" v:ext="edit">
</o:lock></v:path></v:stroke></v:shapetype><v:shape id="Picture_x0020_4" o:spid="_x0000_i1025" style="height: 349.5pt; mso-wrap-style: square; visibility: visible; width: 523.5pt;" type="#_x0000_t75">
<v:imagedata o:title="BPS Cluster " src="file:///C:\Users\NandikaJ\AppData\Local\Temp\msohtmlclip1\01\clip_image001.png">
</v:imagedata></v:shape><o:p></o:p></div>
<div class="MsoNormal" style="text-align: justify;">
Load Balancer will receive all the requests and distribute
the load (Requests) to the two BPS nodes. BPS Nodes can be configured as master node and slave node. A
BPS cluster can have one <b>master node</b>
and multiple <b>slave node</b>s.</div>
<div class="MsoNormal" style="text-align: justify;">
<o:p></o:p></div>
<h3 style="text-align: left;">
</h3>
<h3 style="text-align: left;">
</h3>
<h3 style="text-align: left;">
</h3>
<h3 style="text-align: left;">
BPS Master Nodes / Slave Nodes</h3>
<div>
<br /></div>
<h2>
<o:p></o:p></h2>
<div class="MsoNormal" style="text-align: justify; text-indent: 36pt;">
Master node is where the workflow
artifacts (Business processes / Human Tasks) are first deployed. The slave nodes will look at the
configuration generated by the master node for a given deployment artifact and
then deploy those artifacts in its runtime. <o:p></o:p></div>
<div class="MsoNormal" style="text-align: justify; text-indent: 36pt;">
WSO2 BPS requires this method of
deployment because it does automatic versioning of the deployed bpel /human
task artifacts. Hence, in order to have the same version number for a given
deployment artifact across all the nodes, we need to do the versioning at one node
(Master Node). <o:p></o:p></div>
<div class="MsoNormal" style="text-align: justify; text-indent: 36.0pt;">
A BPS server
decides whether it is a master node or a slave node by looking at its
configuration registry mounting configuration. We will look at that
configuration in detail later. <o:p></o:p></div>
<h3 style="text-align: left;">
</h3>
<h3 style="text-align: left;">
</h3>
<h3 style="text-align: left;">
</h3>
<h3 style="text-align: left;">
BPS and Registry</h3>
<div>
<br /></div>
<h2>
<o:p></o:p></h2>
<div class="MsoNormal" style="text-indent: 36.0pt;">
<div style="text-align: justify;">
In the simplest terms, registry
is an abstraction over a database schema. It provides an API using which you
can store data and retrieve data to a database. WSO2 BPS embeds the registry
component and hence has a build in registry. Registry is divided into three spaces. <o:p></o:p></div>
</div>
<h4 style="text-align: justify;">
</h4>
<h4 style="text-align: justify;">
</h4>
<h4 style="text-align: justify;">
Local Registry</h4>
<div>
<br /></div>
<div style="text-align: left;">
Local
registry is used to store information local to a server node.</div>
<div class="MsoNormal" style="text-align: justify;">
<o:p></o:p></div>
<h4 style="text-align: justify;">
</h4>
<h4 style="text-align: justify;">
</h4>
<h4 style="text-align: justify;">
Configuration Registry<o:p></o:p></h4>
<div>
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
Configuration
Registry is used to store information that needs to be shared across same type
of server nodes. For example, configuration registry is shared across BPS
server nodes. However, this same configuration registry would not be shared
across another type of server nodes.<o:p></o:p></div>
<h4 style="text-align: justify;">
</h4>
<h4 style="text-align: justify;">
</h4>
<h4 style="text-align: justify;">
Governance Registry <o:p></o:p></h4>
<div>
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
Governance
Registry is used to store information that can be shared across multiple
clusters of different type of servers. For example governance registry can be
shared across BPS and ESB cluster. In the above diagram, these different
registry configurations are depicted as individual databases. <o:p></o:p></div>
<div class="MsoNormal" style="text-align: justify;">
Note:<o:p></o:p></div>
<div class="MsoNormal" style="text-align: justify;">
BPS Master Node refers to the
configuration registry using a <b>Read/Write</b>
link while the BPS Slave nodes refer to the configuration registry using a <b>Read/Only</b> link.<o:p></o:p></div>
<h4>
</h4>
<h4 style="text-align: left;">
</h4>
<h4 style="text-align: left;">
</h4>
<h4 style="text-align: left;">
BPS and User Store and Authorization<o:p></o:p></h4>
<div>
<br /></div>
<div class="MsoNormal" style="text-indent: 36.0pt;">
<div style="text-align: justify;">
BPS management console requires a
user to login to the system in order to do management activities. Additionally
various permissions levels can be configured for access management. In human
tasks, depending on the logged in user, what he can do with tasks will change. <o:p></o:p></div>
</div>
<div class="MsoNormal" style="text-indent: 36.0pt;">
<div style="text-align: justify;">
All this access
control/authentication/authorization functions are inherited to the BPS server
from carbon kernel. You can also
configure an external LDAP/Active directory to grant users access to the
server. All this user information / permission information is kept in the user store
database. In the above diagram, UM DB refers to this database. This database is
also shared across all the cluster nodes. <o:p></o:p></div>
</div>
<h4>
</h4>
<h4>
</h4>
<h4>
</h4>
<h4>
BPS Persistence DB<o:p></o:p></h4>
<div>
<br /></div>
<div class="MsoNormal" style="text-indent: 36.0pt;">
<div style="text-align: justify;">
BPS handles long running
processes and human tasks. This means, the runtime state of the process
instances/ human task instances have to be persisted to a database. BPS
persistence database is the databases where we store these process / t ask
configuration data and process / task instance state.<o:p></o:p></div>
<div style="text-align: justify;">
<br /></div>
</div>
<h3 style="text-align: left;">
</h3>
<h3 style="text-align: left;">
Configuring the BPS Cluster</h3>
<div>
<br /></div>
<h2>
<o:p></o:p></h2>
<div class="MsoNormal" style="text-align: justify; text-indent: 18pt;">
Now that we have understood the
individual components depicted in the above diagram, we can proceed to
implement our BPS cluster. I will break
down the steps in configuring the cluster into following steps. The <b>only
major difference</b> between the master node and slave node is in registry.xml
configuration. <o:p></o:p></div>
<div class="MsoNormal" style="text-align: justify; text-indent: 18pt;">
If you are using two machines (hardware
or VM) all other configurations are identical for master node and slave node except
IP addresses, ports and deployment synchronizer entry. However, if you are configuring the cluster
on the same machine for testing purpose , you will need to change multiple
files as port conflicts can occur.<br />
<br />
<ol>
<li><span style="text-align: left; text-indent: -18pt;">Create database schemas.</span></li>
<li><span style="text-align: left; text-indent: -18pt;">Configure the master-datasource.xml ( Registry and User manager databases )</span></li>
<li><span style="text-align: left; text-indent: -18pt;">Configure datasources.properties ( BPS Persistence database )</span></li>
<li><span style="text-align: left; text-indent: -18pt;">Configure registry.xml ( Different for master
node and slave node)</span></li>
<li><span style="text-align: left; text-indent: -18pt;">Configure the user-mgt.xml</span></li>
<li><span style="text-align: left; text-indent: -18pt;">Configure axis2.xml</span></li>
<li><span style="text-align: left; text-indent: -18pt;">Configure tasks-config.xml</span></li>
<li><span style="text-align: left; text-indent: -18pt;">Configure bps.xml</span></li>
<li><span style="text-align: left; text-indent: -18pt;">Configure carbon.xml</span></li>
<li><span style="text-align: left; text-indent: -18pt;">Configure the server start-up script</span></li>
</ol>
</div>
<div class="MsoListParagraphCxSpFirst" style="mso-list: l2 level1 lfo2; text-indent: -18.0pt;">
<!--[if !supportLists]--><o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l2 level1 lfo2; text-indent: -18.0pt;">
<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l2 level1 lfo2; text-indent: -18.0pt;">
<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l2 level1 lfo2; text-indent: -18.0pt;">
<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l2 level1 lfo2; text-indent: -18.0pt;">
<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l2 level1 lfo2; text-indent: -18.0pt;">
<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l2 level1 lfo2; text-indent: -18.0pt;">
<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l2 level1 lfo2; text-indent: -18.0pt;">
<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l2 level1 lfo2; text-indent: -18.0pt;">
<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l2 level1 lfo2; text-indent: -18.0pt;">
<o:p></o:p></div>
<div class="MsoListParagraphCxSpLast">
<h3 style="text-align: left;">
</h3>
<h3 style="text-align: left;">
</h3>
<h3 style="text-align: left;">
</h3>
<h3 style="text-align: left;">
Creating database Schema's</h3>
</div>
<h2>
<o:p></o:p></h2>
<div class="MsoNormal">
<br />
WSO2 BPS supports the following major databases.</div>
<div class="MsoNormal">
<o:p></o:p></div>
<div class="MsoListParagraphCxSpFirst" style="margin-left: 54.0pt; mso-add-space: auto; mso-list: l3 level1 lfo3; text-indent: -18.0pt;">
<!--[if !supportLists]-->1.<span style="font-size: 7pt;">
</span><!--[endif]-->Oracle<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 54.0pt; mso-add-space: auto; mso-list: l3 level1 lfo3; text-indent: -18.0pt;">
<!--[if !supportLists]-->2.<span style="font-size: 7pt;">
</span><!--[endif]-->MySQL<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 54.0pt; mso-add-space: auto; mso-list: l3 level1 lfo3; text-indent: -18.0pt;">
<!--[if !supportLists]-->3.<span style="font-size: 7pt;">
</span><!--[endif]-->MSSQL<o:p></o:p></div>
<div class="MsoListParagraphCxSpLast" style="margin-left: 54.0pt; mso-add-space: auto; mso-list: l3 level1 lfo3; text-indent: -18.0pt;">
<!--[if !supportLists]-->4.<span style="font-size: 7pt;">
</span><!--[endif]-->PostgreSQL<o:p></o:p><br />
<br /></div>
<div class="MsoNormal">
In the
above diagram, we have depicted 5 databases. We can use H2 as the local
registry for each BPS Node. We can create one schema for registry and configure
registry mounting configuration for configuration registry and governance
registry. Hence we will have to create 3 more databases for registry, user store
and BPS persistence db.<o:p></o:p><br />
<br /></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr style="height: 22.75pt; mso-yfti-firstrow: yes; mso-yfti-irow: 0;">
<td style="border: solid windowtext 1.0pt; height: 22.75pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 218.05pt;" valign="top" width="291">Database Schema Requirement<br />
<h2 align="center" style="text-align: center;">
<o:p></o:p></h2>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
</td>
<td style="border-left: none; border: solid windowtext 1.0pt; height: 22.75pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 90.65pt;" valign="top" width="121">DB Name<br />
<h2 align="center" style="text-align: center;">
<o:p></o:p></h2>
</td>
</tr>
<tr style="height: 24.1pt; mso-yfti-irow: 1;">
<td style="border-top: none; border: solid windowtext 1.0pt; height: 24.1pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 218.05pt;" valign="top" width="291"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Configuration/Governance Registry<o:p></o:p></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 24.1pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 90.65pt;" valign="top" width="121"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
REGISTRY_DB<o:p></o:p></div>
</td>
</tr>
<tr style="height: 24.1pt; mso-yfti-irow: 2;">
<td style="border-top: none; border: solid windowtext 1.0pt; height: 24.1pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 218.05pt;" valign="top" width="291"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
User store database<o:p></o:p></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 24.1pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 90.65pt;" valign="top" width="121"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
UM_DB<o:p></o:p></div>
</td>
</tr>
<tr style="height: 24.1pt; mso-yfti-irow: 3; mso-yfti-lastrow: yes;">
<td style="border-top: none; border: solid windowtext 1.0pt; height: 24.1pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 218.05pt;" valign="top" width="291"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
BPS Persistence database<o:p></o:p></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 24.1pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 90.65pt;" valign="top" width="121"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
BPS_DB<o:p></o:p></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
<div class="MsoListParagraphCxSpFirst" style="margin-left: 0cm; mso-add-space: auto; text-align: justify;">
You can find the corresponding SQL scripts for creating
registry databases from <b>wso2bps-3.2.0/dbscripts
</b>directory<b>. </b>SQL script for bps persistence database can be found at <b>wso2bps-3.2.0/dbscripts/bps </b>directory.</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 0cm; mso-add-space: auto; text-align: justify;">
<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 0cm; mso-add-space: auto; text-align: justify;">
<br /></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 0cm; mso-add-space: auto; text-align: justify;">
As an example of creating a database, we will show the
steps for creating a database using MySql. <o:p></o:p></div>
<div class="MsoListParagraphCxSpLast" style="margin-left: 0cm; mso-add-space: auto; text-align: justify;">
<br /></div>
<div class="MsoNoSpacing">
<i><span style="color: red;">mysql> create database REGISTRY_DB;<o:p></o:p></span></i></div>
<div class="MsoNoSpacing">
<i><span style="color: red;">mysql> use REGISTRY_DB;<o:p></o:p></span></i></div>
<div class="MsoNoSpacing">
<i><span style="color: red;">mysql> source
<bps_home>/dbscripts/mysql.sql;<o:p></o:p></bps_home></span></i></div>
<div class="MsoNoSpacing">
<i><span style="color: red;">mysql> grant all on REGISTRY_DB.* TO
username@localhost identified by "password";</span><b><o:p></o:p></b></i></div>
<div class="MsoNoSpacing">
<br /></div>
<div class="MsoNoSpacing">
<i>Download and copy
the MySql connector to <bps_home>/repository/components/lib directory. </bps_home></i><br />
<br />
<h3 style="text-align: left;">
Configuring master-datasources.xml</h3>
</div>
<h2>
<o:p></o:p></h2>
<div class="MsoNormal">
<br />
You can configure data sources for registry and user store
in master-datasources.xml file found in <b><bps_home>/
repository/conf/datasources</bps_home></b> directory.<br />
<br /></div>
<div class="MsoNormal">
<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;"><</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">datasources-configuration</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;"> </span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">xmlns:svns</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"<span style="color: blue;">http://org.wso2.securevault/configuration</span>"<span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">providers</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">provider</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">org.wso2.carbon.ndatasource.rdbms.RDBMSDataSourceReader<span style="color: blue;"></</span><span style="color: #a31515;">provider</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
</</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">providers</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">datasources</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">datasource</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">name</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">WSO2_CARBON_DB<span style="color: blue;"></</span><span style="color: #a31515;">name</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">description</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">The datasource used for registry
and user manager<span style="color: blue;"></</span><span style="color: #a31515;">description</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">jndiConfig</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">name</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">jdbc/WSO2CarbonDB<span style="color: blue;"></</span><span style="color: #a31515;">name</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
</</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">jndiConfig</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">definition</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;"> </span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">type</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"<span style="color: blue;">RDBMS</span>"<span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">configuration</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">> <</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">url</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">jdbc:h2:repository/database/WSO2CARBON_DB;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=60000<span style="color: blue;"></</span><span style="color: #a31515;">url</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">username</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">wso2carbon<span style="color: blue;"></</span><span style="color: #a31515;">username</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">password</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">wso2carbon<span style="color: blue;"></</span><span style="color: #a31515;">password</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">driverClassName</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">org.h2.Driver<span style="color: blue;"></</span><span style="color: #a31515;">driverClassName</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">maxActive</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">50<span style="color: blue;"></</span><span style="color: #a31515;">maxActive</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">maxWait</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">60000<span style="color: blue;"></</span><span style="color: #a31515;">maxWait</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">testOnBorrow</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">true<span style="color: blue;"></</span><span style="color: #a31515;">testOnBorrow</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">validationQuery</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">SELECT 1<span style="color: blue;"></</span><span style="color: #a31515;">validationQuery</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">validationInterval</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">30000<span style="color: blue;"></</span><span style="color: #a31515;">validationInterval</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
</</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">configuration</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
</</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">definition</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
</</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">datasource</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">datasource</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">name</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">WSO2_REGISTRY_DB<span style="color: blue;"></</span><span style="color: #a31515;">name</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">description</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">The datasource used for registry- config/governance<span style="color: blue;"></</span><span style="color: #a31515;">description</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">jndiConfig</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">name</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">jdbc/WSO2RegistryDB<span style="color: blue;"></</span><span style="color: #a31515;">name</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
</</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">jndiConfig</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">definition</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;"> </span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">type</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"<span style="color: blue;">RDBMS</span>"<span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">configuration</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">url</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">jdbc:mysql://localhost:3306/REGISTRY_DB?autoReconnect=true<span style="color: blue;"></</span><span style="color: #a31515;">url</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">username</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">root<span style="color: blue;"></</span><span style="color: #a31515;">username</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">password</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">root<span style="color: blue;"></</span><span style="color: #a31515;">password</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">driverClassName</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">com.mysql.jdbc.Driver<span style="color: blue;"></</span><span style="color: #a31515;">driverClassName</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">maxActive</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">50<span style="color: blue;"></</span><span style="color: #a31515;">maxActive</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">maxWait</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">60000<span style="color: blue;"></</span><span style="color: #a31515;">maxWait</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">testOnBorrow</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">true<span style="color: blue;"></</span><span style="color: #a31515;">testOnBorrow</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;"> <</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">validationQuery</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">SELECT 1<span style="color: blue;"></</span><span style="color: #a31515;">validationQuery</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">validationInterval</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">30000<span style="color: blue;"></</span><span style="color: #a31515;">validationInterval</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
</</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">configuration</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
</</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">definition</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
</</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">datasource</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">datasource</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">name</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">WSO2_UM_DB<span style="color: blue;"></</span><span style="color: #a31515;">name</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">description</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">The datasource used for registry-
local<span style="color: blue;"></</span><span style="color: #a31515;">description</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">jndiConfig</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">name</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">jdbc/WSO2UMDB<span style="color: blue;"></</span><span style="color: #a31515;">name</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
</</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">jndiConfig</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">definition</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;"> </span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">type</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"<span style="color: blue;">RDBMS</span>"<span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">configuration</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">url</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">jdbc:mysql://localhost:3306/UM_DB?autoReconnect=true<span style="color: blue;"></</span><span style="color: #a31515;">url</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">username</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">root<span style="color: blue;"></</span><span style="color: #a31515;">username</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">password</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">root<span style="color: blue;"></</span><span style="color: #a31515;">password</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">driverClassName</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">com.mysql.jdbc.Driver<span style="color: blue;"></</span><span style="color: #a31515;">driverClassName</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">maxActive</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">50<span style="color: blue;"></</span><span style="color: #a31515;">maxActive</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">maxWait</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">60000<span style="color: blue;"></</span><span style="color: #a31515;">maxWait</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">testOnBorrow</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">true<span style="color: blue;"></</span><span style="color: #a31515;">testOnBorrow</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">validationQuery</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">SELECT 1<span style="color: blue;"></</span><span style="color: #a31515;">validationQuery</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">validationInterval</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">30000<span style="color: blue;"></</span><span style="color: #a31515;">validationInterval</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
</</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">configuration</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
</</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">definition</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
</</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">datasource</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
</</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">datasources</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;"></</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">datasources-configuration</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal">
Most of the entries are self-explanatory. <o:p></o:p><br />
<br /></div>
<h3 style="text-align: left;">
Configure datasources.properties (
BPS Persistence database )</h3>
<div>
<br /></div>
<div style="text-align: left;">
Open <bps_home>/repository/conf/datasources.properties</bps_home>
and add the relevant entries such as database name, driver class and database
connection url. Following is the
matching configuration for mysql.</div>
<div style="text-align: left;">
<br /></div>
<div class="MsoNormal">
<b><o:p></o:p></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: #333333; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">synapse.datasources=bpsds</span></b><b><span style="color: #333333; font-family: "Times New Roman","serif"; font-size: 9.5pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: #333333; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">synapse.datasources.icFactory=com.sun.jndi.rmi.registry.RegistryContextFactory</span></b><b><span style="color: #333333; font-family: "Times New Roman","serif"; font-size: 9.5pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: #333333; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">synapse.datasources.providerPort=2199</span></b><b><span style="color: #333333; font-family: "Times New Roman","serif"; font-size: 9.5pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: #333333; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">synapse.datasources.bpsds.registry=JNDI</span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: #333333; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">synapse.datasources.bpsds.type=BasicDataSource</span></b><b><span style="color: #333333; font-family: "Times New Roman","serif"; font-size: 9.5pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: #333333; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">synapse.datasources.bpsds.driverClassName=com.mysql.jdbc.Driver</span></b><b><span style="color: #333333; font-family: "Times New Roman","serif"; font-size: 9.5pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: #333333; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">synapse.datasources.bpsds.url=jdbc:mysql://localhost:3306/BPS_DB?autoReconnect=true</span></b><b><span style="color: #333333; font-family: "Times New Roman","serif"; font-size: 9.5pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: #333333; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">synapse.datasources.bpsds.username=root</span></b><b><span style="color: #333333; font-family: "Times New Roman","serif"; font-size: 9.5pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: #333333; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">synapse.datasources.bpsds.password=root</span></b><b><span style="color: #333333; font-family: "Times New Roman","serif"; font-size: 9.5pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: #333333; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">synapse.datasources.bpsds.validationQuery=SELECT
1</span></b><b><span style="color: #333333; font-family: "Times New Roman","serif"; font-size: 9.5pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: #333333; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">synapse.datasources.bpsds.dsName=bpsds</span></b><b><span style="color: #333333; font-family: "Times New Roman","serif"; font-size: 9.5pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: #333333; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">synapse.datasources.bpsds.maxActive=100</span></b><b><span style="color: #333333; font-family: "Times New Roman","serif"; font-size: 9.5pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: #333333; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">synapse.datasources.bpsds.maxIdle=20</span></b><b><span style="color: #333333; font-family: "Times New Roman","serif"; font-size: 9.5pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></b></div>
<div class="MsoNormal">
<b><span style="color: #333333; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";">synapse.datasources.bpsds.maxWait=10000<o:p></o:p></span></b></div>
<div class="MsoNormal">
<br />
You need to do this for each node in the cluster. <o:p></o:p></div>
<h3 style="text-align: left;">
</h3>
<h3 style="text-align: left;">
</h3>
<h3 style="text-align: left;">
Configure registry.xml</h3>
<div class="MsoNormal">
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Registry mount path is used to identify the type of
registry. For example” <b><span style="background: white;">/_system/config</span></b><span style="background: white;">” refers to configuration registry and "<b>/_system/governance</b>" refers to governance registry. Following
is an example configuration for bps mount. I will highlight each section and
describe them below. <o:p></o:p></span></div>
</div>
<div class="MsoNormal">
<div style="text-align: justify;">
<span style="background: white;">I will only describe the additions
to the registry.xml file below. Leave the configuration for local registry as
it is and add following new entries.<o:p></o:p></span></div>
</div>
<h3 style="text-align: left;">
</h3>
<h3 style="text-align: left;">
</h3>
<h3 style="text-align: left;">
Registry configuration for BPS master node</h3>
<div style="text-align: left;">
</div>
<br />
<dbConfig name="wso2bpsregistry"><br />
<dataSource>jdbc/WSO2RegistryDB</dataSource><br />
</dbConfig><br />
<br />
<remoteInstance url="https://localhost:9443/registry"><br />
<id>instanceid</id><br />
<dbConfig>wso2bpsregistry</dbConfig><br />
<readOnly>false</readOnly><br />
<enableCache>true</enableCache><br />
<registryRoot>/</registryRoot><br />
<cacheId>root@jdbc:mysql://localhost:3306/ REGISTRY_DB</cacheId><br />
</remoteInstance><br />
<br />
<mount path="/_system/config" overwrite="true"><br />
<instanceId>instanceid</instanceId><br />
<targetPath>/_system/bpsConfig</targetPath><br />
</mount><br />
<br />
<mount path="/_system/governance" overwrite="true"><br />
<instanceId>instanceid</instanceId><br />
<targetPath>/_system/governance</targetPath><br />
</mount><br />
<br />
<div class="MsoNormal">
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 9.5pt;"></span></div>
<o:p></o:p><br />
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<div style="text-align: justify;">
Let’s look at above configuration in detail. We are identifying the data source we configured in the
master datasources xml using the dbConfig entry and we give a unique name to
refer to that datasource entry which is “<span style="color: #7030a0; font-family: Consolas; font-size: 9.5pt; line-height: 115%;">wso2bpsregistry”;</span></div>
</div>
<div class="MsoNormal">
<div style="text-align: justify;">
Remote instance section refers to an external registry
mount. We can specify the read only/read write nature of this instance as well
as caching configurations and registry root location. Additionally we need to
specify <b>cacheID</b> for caching to
function properly in the clustered environment. Note that <b>cacheId</b> is same as the jdbc connection URL to our registry
database. <o:p></o:p></div>
</div>
<div class="MsoNormal">
<div style="text-align: justify;">
We define a unique name “id” for each remote instance which
is then referred from mount configurations. In the above example, our unique id
for remote instance is <b>instanceId. </b>In each of the mounting configurations, we specify the
actual mount patch and target mount path.</div>
</div>
<div class="MsoNormal">
<div style="text-align: justify;">
<o:p></o:p></div>
</div>
<h3 style="text-align: left;">
</h3>
<h3 style="text-align: left;">
</h3>
<h3 style="text-align: left;">
</h3>
<h3 style="text-align: left;">
Registry configuration for BPS Salve node<o:p></o:p></h3>
<div class="MsoNormal">
<br />
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<dbConfig name="wso2bpsregistry"></div>
<div style="text-align: left;">
<dataSource>jdbc/WSO2RegistryDB</dataSource></div>
<div style="text-align: left;">
</dbConfig></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<remoteInstance url="https://localhost:9443/registry"></div>
<div style="text-align: left;">
<id>instanceid</id></div>
<div style="text-align: left;">
<dbConfig>wso2bpsregistry</dbConfig></div>
<div style="text-align: left;">
<readOnly>true</readOnly></div>
<div style="text-align: left;">
<enableCache>true</enableCache></div>
<div style="text-align: left;">
<registryRoot>/</registryRoot></div>
<div style="text-align: left;">
<cacheId>root@jdbc:mysql://localhost:3306/ REGISTRY_DB</cacheId></div>
<div style="text-align: left;">
</remoteInstance></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<mount path="/_system/config" overwrite="true"></div>
<div style="text-align: left;">
<instanceId>instanceid</instanceId></div>
<div style="text-align: left;">
<targetPath>/_system/bpsConfig</targetPath></div>
<div style="text-align: left;">
</mount></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<mount path="/_system/governance" overwrite="true"></div>
<div style="text-align: left;">
<instanceId>instanceid</instanceId></div>
<div style="text-align: left;">
<targetPath>/_system/governance</targetPath></div>
<div style="text-align: left;">
</mount></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal">
This configuration is same as above with <b>readOnly</b> property set to <b>true for remote instance configuration.</b><br />
<br />
<h3 style="text-align: left;">
Configure user-mgt.xml</h3>
<div style="text-align: justify;">
</div>
<div style="text-align: justify;">
In the user-mgt.xml enter the datasource information for
user store which we configured previously in master-datasoures.xml file. You
can change the admin username and password as well. However, you should do this
before starting the server.</div>
</div>
<div class="MsoNormal">
<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;"><</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">Configuration</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">AddAdmin</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">true<span style="color: blue;"></</span><span style="color: #a31515;">AddAdmin</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">AdminRole</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">admin<span style="color: blue;"></</span><span style="color: #a31515;">AdminRole</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">AdminUser</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">UserName</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">admin<span style="color: blue;"></</span><span style="color: #a31515;">UserName</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">Password</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">admin<span style="color: blue;"></</span><span style="color: #a31515;">Password</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
</</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">AdminUser</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">EveryOneRoleName</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">everyone<span style="color: blue;"></</span><span style="color: #a31515;">EveryOneRoleName</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">Property</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;"> </span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">name</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"<span style="color: blue;">dataSource</span>"<span style="color: blue;">></span><b>jdbc/WSO2UMDB</b><span style="color: blue;"></</span><span style="color: #a31515;">Property</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;"></</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">Configuration</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span></div>
<h4 style="text-align: left;">
</h4>
<h4 style="text-align: left;">
</h4>
<h3 style="text-align: left;">
</h3>
<h3 style="text-align: left;">
Configure axis2.xml</h3>
<div class="MsoNormal">
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
We use axis2.xml to enable clustering. We will use well
known address (WKA) based clustering method. In WKA based clustering, we need
to have a subset of cluster members configured in all the members of the
cluster. At least one well known member has to be operational at all times. <o:p></o:p></div>
</div>
<div class="MsoNormal">
<div style="text-align: justify;">
In the axis2.xml , find the clustering section.<o:p></o:p></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;"><br /></span>
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;"><</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">clustering</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;"> </span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">class</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"<span style="color: blue;">org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent</span>"<span style="color: blue;"> </span><span style="color: red;">enable</span><span style="color: blue;">=</span>"<span style="color: blue;">true</span>"<span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">parameter</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;"> </span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">name</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"<span style="color: blue;">membershipScheme</span>"<span style="color: blue;">></span>wka<span style="color: blue;"></</span><span style="color: #a31515;">parameter</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">parameter</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;"> </span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">name</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"<span style="color: blue;">localMemberHost</span>"<span style="color: blue;">></span>127.0.0.1<span style="color: blue;"></</span><span style="color: #a31515;">parameter</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">parameter</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;"> </span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">name</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"<span style="color: blue;">localMemberPort</span>"<span style="color: blue;">></span>4000<span style="color: blue;"></</span><span style="color: #a31515;">parameter</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">members</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">member</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">hostName</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">10.100.1.1<span style="color: blue;"></</span><span style="color: #a31515;">hostName</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">port</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">4000<span style="color: blue;"></</span><span style="color: #a31515;">port</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
</</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">member</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">member</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">hostName</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">10.100.1.2<span style="color: blue;"></</span><span style="color: #a31515;">hostName</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">port</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">4010<span style="color: blue;"></</span><span style="color: #a31515;">port</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
</</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">member</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
</</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">members</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;"></</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">clustering</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Change <b>enabled</b>
parameter to <b>true. </b>Find the
parameter <b>membershipSchema</b> and set <b>wka</b> option. Then configure the <b>loadMemberHost</b> and <b>LocalMemberport</b> Entries. Under the <b>members</b>
section, add the <b>host</b> name and <b>port</b> for each <b>wka</b> member. As we have only two nodes in our sample cluster
configuration, we will configure both nodes as WKA nodes.</div>
</div>
<div class="MsoNormal">
<div style="text-align: justify;">
<o:p></o:p></div>
</div>
<h3 style="text-align: left;">
</h3>
<h3 style="text-align: left;">
</h3>
<h3 style="text-align: left;">
</h3>
<h3 style="text-align: left;">
Configure task-config.xml </h3>
<h2>
<o:p></o:p></h2>
<div class="MsoNormal" style="text-indent: 36.0pt;">
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
BPS packages the task server
component as well. By default, when we enable clustering, this component waits
for two task server nodes. Hence we need to change this entry in order to start
the bps server. Open task-config.xml and change task server count to 1.</div>
</div>
<div class="MsoNormal">
<taskServerCount>1</taskServerCount></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<h3 style="text-align: left;">
</h3>
<h3 style="text-align: left;">
Configure bps.xml</h3>
</div>
<div class="MsoNormal">
<br />
In bps.xml, you need to configure the following entries.<br />
<span style="text-indent: -18pt;"><b>Enable distributed lock</b></span></div>
<div class="MsoListParagraphCxSpFirst" style="mso-list: l4 level1 lfo4; text-indent: -18.0pt;">
<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;"><</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">tns:UseDistributedLock</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">true<span style="color: blue;"></</span><span style="color: #a31515;">tns:UseDistributedLock</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal">
<div style="text-align: justify;">
This entry enables hazelcast based synchronizations
mechanism in order to prevent concurrent modification of instance state by
cluster members.</div>
<div style="text-align: justify;">
<span style="font-size: 7pt; text-align: left; text-indent: -18pt;"><br /></span></div>
<div style="text-align: justify;">
<b><span style="font-size: 7pt; text-align: left; text-indent: -18pt;"> </span><span style="text-align: left; text-indent: -18pt;">Configure scheduler thread pool size</span></b></div>
</div>
<div class="MsoListParagraphCxSpFirst" style="mso-list: l4 level1 lfo4; text-indent: -18.0pt;">
<o:p></o:p></div>
<div class="MsoListParagraphCxSpLast" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;"><br /></span>
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;"><</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">tns:ODESchedulerThreadPoolSize</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">0<span style="color: blue;"></</span><span style="color: #a31515;">tns:ODESchedulerThreadPoolSize</span><span style="color: blue;">></span></span><br />
<div style="text-align: justify;">
<span style="text-indent: 36pt;"><br /></span></div>
<div style="text-align: justify;">
<span style="text-indent: 36pt;">Thread pool size should always be
smaller than </span><b style="text-indent: 36pt;"><span style="color: #333333; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";">maxActive</span></b><span style="text-indent: 36pt;"> database connections configured in
datasources.properties file. When
configuring the thread pool size allocate 10-15 threads per core depending on
your setup. Then leave some additional number of database connections since bps
uses database connections for management API as well.</span></div>
<div style="text-align: justify;">
<span style="text-indent: 36pt;"><br /></span></div>
</div>
<div class="MsoNormal" style="text-indent: 36.0pt;">
<o:p></o:p></div>
<div class="MsoNormal">
Example settings for a two node cluster.<o:p></o:p></div>
<div class="MsoNormal">
MySQL
Server configured database connection size
250.<o:p></o:p></div>
<div class="MsoNormal">
maxActive
entry in datasource.properties file for each node 100<o:p></o:p></div>
<div class="MsoNormal">
SchedulerTreadPool
size for each node 50<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<h3 style="text-align: left;">
</h3>
<div style="text-align: left;">
<b>Define a unique node id for each node in the cluster</b></div>
<div>
<tns:NodeId>node1</tns:NodeId></div>
<div>
This value has to be a unique string for each node in the cluster.</div>
<h3 style="text-align: left;">
Configure carbon.xml</h3>
<div class="MsoNormal">
<br />
If you want automatic deployment of artifacts across the
cluster nodes, you can enable deployment synchronizer feature from carbon.xml. <o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;"><br /></span>
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;"><</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">DeploymentSynchronizer</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">Enabled</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">true<span style="color: blue;"></</span><span style="color: #a31515;">Enabled</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">AutoCommit</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">true<span style="color: blue;"></</span><span style="color: #a31515;">AutoCommit</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">AutoCheckout</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">true<span style="color: blue;"></</span><span style="color: #a31515;">AutoCheckout</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">RepositoryType</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">svn<span style="color: blue;"></</span><span style="color: #a31515;">RepositoryType</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">SvnUrl</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">http://10.100.3.115/svn/repos/as<span style="color: blue;"></</span><span style="color: #a31515;">SvnUrl</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">SvnUser</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">wso2<span style="color: blue;"></</span><span style="color: #a31515;">SvnUser</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">SvnPassword</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">wso2123<span style="color: blue;"></</span><span style="color: #a31515;">SvnPassword</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">SvnUrlAppendTenantId</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">></span><span style="font-family: Consolas; font-size: 9.5pt;">true<span style="color: blue;"></</span><span style="color: #a31515;">SvnUrlAppendTenantId</span><span style="color: blue;">></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;"></</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">DeploymentSynchronizer</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal">
<div style="text-align: justify;">
Deployment synchronizer functions by committing the
artifacts to the configured svn location from one node (Node with <b>AutoCommit</b> option set to <b>true</b>) and sending cluster messages to
all other nodes about the addition / change of the artifact. When the cluster
message is received, all other nodes will do an svn update resulting in
obtaining the changes to relevant deployment directories. Now the server will
automatically deploy these artifacts.<o:p></o:p></div>
</div>
<div class="MsoNormal" style="text-indent: 36.0pt;">
<div style="text-align: justify;">
For the master node, keep
AutoCommit and AutoCheckout entries as true. For all other nodes, change <b>autoCommit</b> entry to <b>false</b>.</div>
</div>
<h3 style="text-align: left;">
</h3>
<h3 style="text-align: left;">
</h3>
<h3 style="text-align: left;">
</h3>
<h3 style="text-align: left;">
Configure the server start-up script</h3>
<div class="MsoNormal">
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
In the server startup script, you can configure the memory
allocation for the server node as well as jvm tuning parameters. If you open the wso2server.sh or
wso2server.bat file located at the <bps_home>/bin directory and go to the
bottom of the file , you will find those parameters. Change them according to the expected server
load. <o:p></o:p></bps_home></div>
<div style="text-align: justify;">
<bps_home><br /></bps_home></div>
</div>
<div class="MsoNormal">
Following is the default memory allocation for a wso2
server.<o:p></o:p></div>
<div class="MsoNormal">
<b><br /></b>
<b>-Xms256m -Xmx1024m -XX:MaxPermSize=256m</b><o:p></o:p></div>
<h3 style="text-align: left;">
</h3>
<h3 style="text-align: left;">
</h3>
<h3 style="text-align: left;">
</h3>
<h3 style="text-align: left;">
Cluster artifact deployment best practices </h3>
<h2>
<o:p></o:p></h2>
<div class="MsoNormal">
<div style="text-align: justify;">
</div>
<ol>
<li><span style="text-indent: -18pt;">Always deploy the artifact on the master node
first and on slave nodes after some delay.</span></li>
<li><span style="font-size: 7pt; text-indent: -18pt;"> </span><span style="text-indent: -18pt;">Use deployment synchronizer if a protected svn
repository is available in the network.</span></li>
<li><span style="text-indent: -18pt;">Otherwise you can use simple file coping to
deploy artifacts </span></li>
</ol>
</div>
<div class="MsoListParagraphCxSpLast" style="mso-list: l0 level1 lfo5; text-indent: -18.0pt;">
<o:p></o:p></div>
</div>
nandikajayawardanahttp://www.blogger.com/profile/11920576746810295004noreply@blogger.com0tag:blogger.com,1999:blog-5702309079039458297.post-81603616159964840322013-06-29T10:08:00.001-07:002013-06-30T06:25:45.351-07:00Disruptive technology<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<object class="BLOGGER-youtube-video" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" data-thumbnail-src="http://img.youtube.com/vi/4umP_45hls8/0.jpg" height="266" width="320"><param name="movie" value="http://youtube.googleapis.com/v/4umP_45hls8&source=uds" /><param name="bgcolor" value="#FFFFFF" /><param name="allowFullScreen" value="true" /><embed width="500" height="266" src="http://youtube.googleapis.com/v/4umP_45hls8&source=uds" type="application/x-shockwave-flash" allowfullscreen="true"></embed></object></div>
<br />
Disruptive technology = > Order of magnitude cheaper , order of magnitude lower quality, order of magnitude lower margin captured by the vendor<br />
<div>
<br /></div>
</div>
nandikajayawardanahttp://www.blogger.com/profile/11920576746810295004noreply@blogger.com2tag:blogger.com,1999:blog-5702309079039458297.post-87844600487547686402013-06-16T04:32:00.000-07:002013-06-16T04:32:25.424-07:00How to increase the number of processes allowed in oracle database.<div dir="ltr" style="text-align: left;" trbidi="on">
Log in as sys<br />
<br />
<b>$ sqlplus sys as sysdba;</b><br />
<br />
Enter the passed for sys when prompted.<br />
<br />
If your application makes many connections and the number of processes allowed to be created by the oracle db is smaller than that, you will get the error<br />
<br />
<span style="background-color: white; color: #575757; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 19px;">ORA-12519: TNS:no appropriate service handler found</span><br />
<span style="background-color: white; color: #575757; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 19px;"><br /></span>
To solve this issue, first view the number of processes allowed by oracle.<br />
<br />
<b>SQL> select * from v$resource_limit where resource_name = 'processes';</b><br />
<b><br /></b>
If you are using oracle express edition, this value would be 40.<br />
<br />
Now increase number of allowed the processes<br />
<br />
SQL>alter system set processes=300 scope=spfile;<br />
SQL>shutdown immediate;<br />
SQL>startup<br />
<br /></div>
nandikajayawardanahttp://www.blogger.com/profile/11920576746810295004noreply@blogger.com0tag:blogger.com,1999:blog-5702309079039458297.post-38690398012525259972013-06-02T08:46:00.001-07:002013-06-02T08:46:49.661-07:00How to log from within a BPEL process<p>There are multiple ways to log information from a BPEL process to the server logfile. </p> <p>One options is to write your own extension activity and use it to log information to the log where necessary. However, there is a simple and easy way to write logs without writing your own extension. That is to use the E4X extension activity. </p> <p>In order to use E4X extension within your bpel process, follow the following steps. </p> <p><strong>1. Add xpath 2.0 namespaces to the process definition</strong>. </p> <p><strong>queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"<br>expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"</strong></p> <p><strong>2. Define e4x as an extension. </strong></p> <p><bpel:extensions><br> <bpel:extension namespace="<a href="http://ode.apache.org/extensions/e4x"">http://ode.apache.org/extensions/e4x"</a> mustUnderstand="yes"/><br></bpel:extensions><br></p> <p><strong>3. Include the e4x extension operation where you want to log information. </strong></p> <p align="left"> <bpel:assign validate="no" name="AssignE4X"><br> <bpel:extensionAssignOperation><br> <js:snippet xmlns:js="<a href="http://ode.apache.org/extensions/e4x"">http://ode.apache.org/extensions/e4x"</a>><br> <![CDATA[ print(“<strong>My Log message from bpel process</strong>"); ]]><br> </js:snippet><br> </bpel:extensionAssignOperation><br> </bpel:assign></p> nandikajayawardanahttp://www.blogger.com/profile/11920576746810295004noreply@blogger.com0tag:blogger.com,1999:blog-5702309079039458297.post-8637841649596721372013-05-02T12:25:00.001-07:002014-02-22T04:03:41.770-08:00How to implement your own task UI on top of WSO2 BPS Human Task Engine<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div align="justify">
Human Tasks is a specification which helps us define tasks performed by human beings. From an SOA point of view, we can view a Human Task as a service implemented by a human being. </div>
<div align="justify">
<br /></div>
<div align="justify">
WSO2 Business process server (WSO2 BPS ) 3.0.0 version includes an evolving initial implementation of a Human Task Engine. It provides the basic human tasks functionality such as the ability to define human tasks and notifications, timer events and escalations, and the people assignments. </div>
<div align="justify">
<br /></div>
<div align="justify">
Also within its implementation, WSO2 BPS provides its own task UI. However, as this task UI is included within the Administrative console of the server, we do not encourage one to use it. Instead, what we expect from a serious human tasks user is to build his own task ui using what ever the user interface implementation methodology that is used within the organization. This could be done using technologies such as JSP, PHP ect. As long as you have a way of sending out soap messages, you can build your own task ui. In the following section, I will describe how to build your own task UI. </div>
<div align="justify">
<br /></div>
<div align="justify">
In order to implement your own task UI, you need to understand how the Human task engine works. </div>
<div align="justify">
A human task package will include at least one WSDL file which defines the ‘task service’ which is the service implemented by <strong>human being</strong>. In order to create a task, this task service should be invoked by an external party. This external party can either be an external web service invoker or a bpel process using Bpel4People extension activity. When a task instance is created, it will have its own unique task id which will be returned to the task invoker. Additionally, this task id can be obtained by using the simpleQuery operation which returns a list of tasks. When your perform operations on the task, this unique task id is used to identify the specific task instance among the many task instances residing within the task engine. </div>
<div align="justify">
<br /></div>
<div align="justify">
Human Task specification describes the human tasks client api in detail in Chapter 7 Programming interfaces. [1] <a href="http://docs.oasis-open.org/bpel4people/ws-humantask-1.1-spec-cs-01.html">http://docs.oasis-open.org/bpel4people/ws-humantask-1.1-spec-cs-01.html</a></div>
<div align="justify">
<br /></div>
<div align="justify">
WSO2 BPS human tasks implementation also implements the same API. In order to successfully call this task client api, first we need to find out the admin service interface for it. </div>
<div align="justify">
<strong><br /></strong></div>
<div align="justify">
<strong>Step1.</strong> </div>
<div align="justify">
<br /></div>
<div align="justify">
Go to carbon.xml located in <BPS_HOME>/repository/conf/ directory. </div>
<div align="justify">
<br /></div>
<div align="justify">
Change the setting <HideAdminServiceWSDLs><strong>true</strong></HideAdminServiceWSDLs> to false. </div>
<div align="justify">
<HideAdminServiceWSDLs><strong>false</strong></HideAdminServiceWSDLs></div>
<div align="justify">
<br /></div>
<div align="justify">
Now start the bps server with option –DosgiConsole.</div>
<div align="justify">
<br /></div>
<div align="justify">
Once the server is fully started, enter to go to osgi console. </div>
<div align="justify">
<br /></div>
<div align="justify">
Now type listAdminServices in osgi console. </div>
<div align="justify">
<br /></div>
<div align="justify">
osgi> listAdminServices</div>
<div align="justify">
<br /></div>
<div align="justify">
This will list down all admin services. </div>
<div align="justify">
<br /></div>
<div align="justify">
Our interested endpoint is </div>
<div align="justify">
<br /></div>
<div align="justify">
HumanTaskClientAPIAdmin,<strong>https://<ip>:9443/services/HumanTaskClientAPIAdmin/</strong></div>
<div align="justify">
<br /></div>
<div align="justify">
Usually, when you try ?wsdl on this endpoint, the wsdl will appear. However, there is an issue with the HumanTaskClientApi WSDL. Hence please download the wsdls from following location. <a href="http://people.wso2.com/~nandika/htwsdl/">http://people.wso2.com/~nandika/htwsdl/</a></div>
<div align="justify">
<strong><br /></strong></div>
<div align="justify">
<strong>Step2.</strong> </div>
<div align="justify">
<br /></div>
<div align="justify">
Create a soap ui project from the human_task_api.wsdl. Your soap ui project will show the task operations available as following. </div>
<div align="justify">
<br /></div>
<div align="justify">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimxRMMoYfk4JK2Qe6ILhDpJlFB1uScO0ecsi899CGYc6Nrr5MeJJPN29fDRl4gntDsL_vz56Jk-aq6_aKN8PZr-8sX-SFWb4DHqWvKl_eJzrqJiOfgZ5mv2a0cf5BOmLxbKXaSbWoErsk/?imgmax=800"><img alt="image" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMJm_KcrAiWcWS-t4FEuNiJNGwxmKzKBe_1FONMTgTcBRDmsH9L8BWR0cqdnZFJWRMBdzSkoezcpYmRLYRDA2aAAAT0LOqFyLjolZDJQoXa4VnbFqLDtFioJMxAwncAv5OEY4pvUad4OA/?imgmax=800" height="492" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; display: inline; padding-left: 0px; padding-right: 0px; padding-top: 0px;" title="image" width="325" /></a></div>
<div align="justify">
<br /></div>
<div align="justify">
Now, we can use this soapui client to query the human task client api to obtain the necessary information about tasks. By this method, we can explore the available operations to build our own custom ui.</div>
<div align="justify">
However, this service is an authenticated service. Therefore, first you need to obtain the session cookie returned by the authentication admin login request and set it as an http header in the soap ui. Please refer to my previous blog on how to set the session cookie. </div>
<div align="justify">
<br /></div>
<div align="justify">
<a href="http://nandikajayawardana.blogspot.com/2012/10/how-to-invoke-admin-services-with-soapui.html">http://nandikajayawardana.blogspot.com/2012/10/how-to-invoke-admin-services-with-soapui.html</a></div>
<div align="justify">
<br /></div>
<div align="justify">
<strong>Step 3.</strong></div>
<div align="justify">
<strong><br /></strong></div>
<div align="justify">
Do the authentication admin login request and copy the returned session cookie.</div>
<div align="justify">
<br /></div>
<div align="justify">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQbTzRsd6lgWPDRwO_-q4F0Bsfs7gN8OQjwDHWL8awn_rGNAFd1wupaH_bVTmAsM-8KHiaW6-rIg_HJAKGt-1tnGjEMqvjX7u-eHaiKrJx54td-2-Iu9wanRgvDKmDhzELEAM3TG5VurY/?imgmax=800"><img alt="image" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAUwm6Ub3rNkBZjVJ-TIH_3Pe9-6hm3tPCeyIrbrWvWhxeY_qdIKvn6UGBjPfrdw9jfhE2oaTJfZUXWn0G9nmej_dPIyrNkqMAyRsxbY9Rj327cw6WLkpm_-T1yvgE5NT2WyL4CHxUUd8/?imgmax=800" height="155" style="background-image: none; border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline; padding-left: 0px; padding-right: 0px; padding-top: 0px;" title="image" width="622" /></a></div>
<div align="justify">
<br /></div>
<div align="justify">
Using the session cookie, send the simple query request with Filter ALL_TASKS to obtain a list of all tasks. </div>
<div align="justify">
Use the following soap message for that. </div>
<div align="justify">
<br /></div>
<div>
<soapenv:Envelope xmlns:soapenv="<a href="http://schemas.xmlsoap.org/soap/envelope/%22">http://schemas.xmlsoap.org/soap/envelope/"</a> xmlns:ns="<a href="http://docs.oasis-open.org/ns/bpel4people/ws-humantask/api/200803%22">http://docs.oasis-open.org/ns/bpel4people/ws-humantask/api/200803"</a> xmlns:ns1="<a href="http://docs.oasis-open.org/ns/bpel4people/ws-humantask/types/200803%22">http://docs.oasis-open.org/ns/bpel4people/ws-humantask/types/200803"</a>><br />
<soapenv:Header/><br />
<soapenv:Body><br />
<ns:simpleQuery><br />
<ns:simpleQueryInput><br />
<ns1:simpleQueryCategory>ALL_TASKS</ns1:simpleQueryCategory><br />
</ns:simpleQueryInput><br />
</ns:simpleQuery><br />
</soapenv:Body><br />
</soapenv:Envelope><br />
<br />
This should return a list of currently available tasks. <br />
<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFrrZLu6xX9HkbvZlVcuJceaZNmjz_uauPEiJWsQ5b2lgSGQgxwpY34yx7Y0o8ZZWZ4WkxRepcw570i0VoftyNheN8C7QlGUOfDZtk2L7pW9M4TxwXKURWcOQaTKtcpjTkws-gTQUSJxQ/?imgmax=800"><img alt="image" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjc7Oc2JvlFVea0q_cZa1K-z2Php7XYEzUMPp9wqrfBp0bJGKwbQ-8-xqdxbwTinQXcLuoChdu05oMRsiE3bJTFfXy_YrIhQ37yk3Cp1zr2jvb0CKboR1xfKZdjJaB66oDHHSWGoXjk43s/?imgmax=800" height="412" style="background-image: none; border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline; padding-left: 0px; padding-right: 0px; padding-top: 0px;" title="image" width="702" /></a></div>
<br />
Now iterate though the task list and use load task method with the task id to load individual tasks. <br />
Use following soap message.<br />
<br />
<soapenv:Envelope xmlns:soapenv="<a href="http://schemas.xmlsoap.org/soap/envelope/%22">http://schemas.xmlsoap.org/soap/envelope/"</a> xmlns:ns="<a href="http://docs.oasis-open.org/ns/bpel4people/ws-humantask/api/200803%22">http://docs.oasis-open.org/ns/bpel4people/ws-humantask/api/200803"</a>><br />
<soapenv:Header/><br />
<soapenv:Body><br />
<ns:loadTask xmlns:ns="<a href="http://docs.oasis-open.org/ns/bpel4people/ws-humantask/api/200803%22">http://docs.oasis-open.org/ns/bpel4people/ws-humantask/api/200803"</a>><br />
<ns:identifier>8405</ns:identifier><br />
</ns:loadTask><br />
</soapenv:Body><br />
</soapenv:Envelope><br />
<br />
This would return all information about the given task. <br />
<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhMjcfiHxgZI-0ofuKI-kPPUFttiqSF9MvhEBZe48HZYqaf3n9fMMdC7YnKLTRx6XrgDF6A-a25cUdWKF785xtlWBMQGQ8zSlK4dPD9n8RU-WHG366ZIGFxcVbRVcNhfnpVipWig-OcsM/?imgmax=800"><img alt="image" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJ4S2hl8_Av7eerPGqcTpfVFoj0aDXt9lJ5skeFOyssYzP1LmT7bL_0C4-e4PS5h_PZHb8ANnttDIU85Y1oNGDkiAFzue5E7i9SXIPlzI95Nxs93k8oPp4opFkH_nGIzKDYKgSlza4rKs/?imgmax=800" height="481" style="background-image: none; border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline; padding-left: 0px; padding-right: 0px; padding-top: 0px;" title="image" width="636" /></a><br />
<br />
After you have obtained this data, you can use operations such as start, stop , claim, complete ect with the task id and corresponding xml message. <br />
<br />
For example, start task request would look like the following. <br />
<br />
<soapenv:Envelope xmlns:soapenv="<a href="http://schemas.xmlsoap.org/soap/envelope/%22">http://schemas.xmlsoap.org/soap/envelope/"</a> xmlns:ns="<a href="http://docs.oasis-open.org/ns/bpel4people/ws-humantask/api/200803%22">http://docs.oasis-open.org/ns/bpel4people/ws-humantask/api/200803"</a>><br />
<soapenv:Header/><br />
<soapenv:Body><br />
<ns:start xmlns:ns="<a href="http://docs.oasis-open.org/ns/bpel4people/ws-humantask/api/200803%22">http://docs.oasis-open.org/ns/bpel4people/ws-humantask/api/200803"</a>><br />
<ns:identifier>8405</ns:identifier><br />
</ns:start><br />
</soapenv:Body><br />
</soapenv:Envelope><br />
<br />
Additionally, you can refer to the human task ui jsp pages of BPS to get more details. <br />
<a href="https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.0.0/components/business-processes/humantask/org.wso2.carbon.humantask.ui/4.0.5/src/main/resources/web/humantask" title="https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.0.0/components/business-processes/humantask/org.wso2.carbon.humantask.ui/4.0.5/src/main/resources/web/humantask">https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.0.0/components/business-processes/humantask/org.wso2.carbon.humantask.ui/4.0.5/src/main/resources/web/humantask</a></div>
nandikajayawardanahttp://www.blogger.com/profile/11920576746810295004noreply@blogger.com13tag:blogger.com,1999:blog-5702309079039458297.post-21713580573587879772013-04-30T18:56:00.001-07:002013-04-30T19:55:40.467-07:00Developing a Business Process with a Correlation Set Using WSO2 Developer Studio<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
In the example, we will explore how to use correlation sets to route a message to an existing instance of a business process. We are going to use the simplest possible BPEL process. An Echo Process which will accept the same request message twice. Following is a sequence diagram for the sample use case. <br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiy291tYoMghgTPzAA2adXyvTJdhi-rdUz3MFWgGyXZWtCzfDjMrmHc9Oj5JDtjH9pw8beJ2jW6FQO2svSGmbuAFqaLBZEv-v2TGGtKfjMz4MSoDxvxk0Ie_U2MXoZ8SRPwzlKU92zVGWs/?imgmax=800"><img alt="clip_image001[5]" border="0" height="193" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlpjRVX9ikCnDJTBQI9C5IaZIccoJt3iuGXIy1O6tlMb8qgpaf-sgCZ8UIa26aQupx6JXlLXYI8YM09sRa4AAC0sf9MOgI-2f2IsK71ZCgl6slflHlP4FsmpZg_ABw17sna5EamQBYV4I/?imgmax=800" style="background-image: none; border: 0px currentColor; display: inline; margin: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" title="clip_image001[5]" width="244" /></a> <br />
<br />
Since the second EchoRequest can either create a new instance of the EchoProcess or be routed to a previously created instance of EchoProcess, we require a correlation set. <br />
<br />
<u>CorrelationSet ,Property and property Alias</u>. <br />
<br />
A CorrelationSet is some unique set of values contained in the message that will be used by the process engine to select the correct process instance to send the message to. Correlation is done between two or more messages. A CorrelationSet can contain one or more properties. <br />
Once we define a correlation property, we have to define the corresponding values in each of the messages we expect to correlate. These corresponding values are called Property Aliases. <br />
<br />
Lets create the process using WSO2 Developer studio<br />
<br />
Step1. Create the business process.<br />
<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimw_Y-ERY2855rwNBQShCdOaxqAIcvULQhD1PzbfirCSHqPNy5Z_1oyflOGPd0lCEhVecu4nNoFVDn_DZt4rNhvJU6lFBReVS9MJq6xVGf-Gy8-QpUZHKZXKZ1aU-f8jdCpNIhkHhG6Vk/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="397" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimw_Y-ERY2855rwNBQShCdOaxqAIcvULQhD1PzbfirCSHqPNy5Z_1oyflOGPd0lCEhVecu4nNoFVDn_DZt4rNhvJU6lFBReVS9MJq6xVGf-Gy8-QpUZHKZXKZ1aU-f8jdCpNIhkHhG6Vk/s640/1.png" width="640" /></a><br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlnmqif9fnRucMVOpbOh517C4fHC03hCDFSzuE3h-R20EAeku6Tz3YlD-78j5V9sFS3Ih8QuyBuPWMRP7-T7_HKSo1pQLU1CaQ-lRvMRo7xrFGJFwvAeRBtKUF6UhRdJxuU-j7ZXU56t4/s1600/2.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="608" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlnmqif9fnRucMVOpbOh517C4fHC03hCDFSzuE3h-R20EAeku6Tz3YlD-78j5V9sFS3Ih8QuyBuPWMRP7-T7_HKSo1pQLU1CaQ-lRvMRo7xrFGJFwvAeRBtKUF6UhRdJxuU-j7ZXU56t4/s640/2.png" width="640" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Click next and client finish to create the BPEL project. <br />
2. Generate a business process with the synchronous business process template. <br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-i_BKLmrScIA78P0qmmq0cznCjgwKakk6E-CXLu7u9W2amFBlMNCRBQYqTh1N-35ljVApKGefO2CCpwf7pcVIjorGpZkZz9SAKYfjtCWpY4UmArCkep-UMHWZOyjqW7cTl7rpVMxFw9c/s1600/3.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="608" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-i_BKLmrScIA78P0qmmq0cznCjgwKakk6E-CXLu7u9W2amFBlMNCRBQYqTh1N-35ljVApKGefO2CCpwf7pcVIjorGpZkZz9SAKYfjtCWpY4UmArCkep-UMHWZOyjqW7cTl7rpVMxFw9c/s640/3.png" width="640" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOuPbr7C8HWBD3Mh434QI8xSEA_5u_fBKcBB1OiSzkct7Ig2rbkglftCPtBacC96PY3YTI_3jQaVEReYQkGvRWS-nV5OuuVmAunC3G6gaA5QG096xEU7RzUXRW_Vuuy3utf7Ac1BPJDSU/s1600/4.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="608" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOuPbr7C8HWBD3Mh434QI8xSEA_5u_fBKcBB1OiSzkct7Ig2rbkglftCPtBacC96PY3YTI_3jQaVEReYQkGvRWS-nV5OuuVmAunC3G6gaA5QG096xEU7RzUXRW_Vuuy3utf7Ac1BPJDSU/s640/4.png" width="640" /></a></div>
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqVu8DfcZvhwVvg34cir1U7vxNhoFdNEA0Vk6p0l26T4YLovnHUjT1EYSy5JJgL_lWGD38LpWK8iLwCPxK4f5VhKtrDq2l6ndOxUUtQ3UP44S_hyquEAtcbzdPMzwuBH_TRPadyZ56n54/s1600/5.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="608" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqVu8DfcZvhwVvg34cir1U7vxNhoFdNEA0Vk6p0l26T4YLovnHUjT1EYSy5JJgL_lWGD38LpWK8iLwCPxK4f5VhKtrDq2l6ndOxUUtQ3UP44S_hyquEAtcbzdPMzwuBH_TRPadyZ56n54/s640/5.png" width="640" /></a></div>
3. Drag and drop receive, assign and reply activities such that we will get the following process <br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpL71HJq_0Vh9hwWF3g0zywspQy12rQB8qkyboxYmjzsvPrzpr5piH5g6c1B7uC4GTV35AccbSaxmXTsH5uzi_GG0AhSFYAGjT2VTk5toMW9jqPxOV_2Vdne0H1avWOnHkIBqhjtRcrfc/s1600/6.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="270" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpL71HJq_0Vh9hwWF3g0zywspQy12rQB8qkyboxYmjzsvPrzpr5piH5g6c1B7uC4GTV35AccbSaxmXTsH5uzi_GG0AhSFYAGjT2VTk5toMW9jqPxOV_2Vdne0H1avWOnHkIBqhjtRcrfc/s640/6.png" width="640" /></a></div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1LhmX4iA9mTQWg5W8pRMZmoU1V5fWYlO4VCVf0oRavWd2uhQq2QYN-N6Tu_V0eJvh7KqO3iVsURL2D4BTAIyRSPlpnQYSxkdzxLXHhQwloFa3-Q9nYZVSJ2l2Qvr6CEmo4uLGI0oyMqM/s1600/7.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="552" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1LhmX4iA9mTQWg5W8pRMZmoU1V5fWYlO4VCVf0oRavWd2uhQq2QYN-N6Tu_V0eJvh7KqO3iVsURL2D4BTAIyRSPlpnQYSxkdzxLXHhQwloFa3-Q9nYZVSJ2l2Qvr6CEmo4uLGI0oyMqM/s640/7.png" width="640" /></a></div>
4. Click on the Assign activity and assign ‘input’ from input variable to ‘result’ from output variable. <br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgR3m9EqT5Ydta26tvHP3JbJ_EImtgABxJgOkTa9yz8G2R2zDtFm_Z3dyV4W4q-4seVerVTLiwhTCpGl3tpbfY_H6mZLkKH-RbigpSahc8Q0-7XV1q1_HgNu26tj7gZWfKGKrLcM8Y7WC8/s1600/8.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="344" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgR3m9EqT5Ydta26tvHP3JbJ_EImtgABxJgOkTa9yz8G2R2zDtFm_Z3dyV4W4q-4seVerVTLiwhTCpGl3tpbfY_H6mZLkKH-RbigpSahc8Q0-7XV1q1_HgNu26tj7gZWfKGKrLcM8Y7WC8/s640/8.png" width="640" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
5. Similarly, complete the next receive, assign and reply activity by using the same partner link <br />
‘client’ .Now we have completed the business of the process logic. Now we need to add the correlation set to two receive activities. <br />
<br />
6. Create a correlation set by clicking on the ‘+’ sign next to Correlation Sets <br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSAxYZZ_mguJxnJx2lCQT4iC_cpdvfaZbMSmpWma0vZcFjZJnxQS1PTvGP55Lp1hmjfLAnBw5qWJJigILd6sEs9dHa-8tJHsSZ1qx5wST2bNH90E-_nNIgHrCjelGZWcWR39w4DAAzyeQ/s1600/9.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="496" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSAxYZZ_mguJxnJx2lCQT4iC_cpdvfaZbMSmpWma0vZcFjZJnxQS1PTvGP55Lp1hmjfLAnBw5qWJJigILd6sEs9dHa-8tJHsSZ1qx5wST2bNH90E-_nNIgHrCjelGZWcWR39w4DAAzyeQ/s640/9.png" width="640" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
7. Select the correlation set and select properties and click on Add. <br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdc0O5G-Qj5npHK5G9YtqVvoEY1Ed3DwH0mHmsIfQO_RrOMoq9uFtURejHp0jwpFdKdpF3u5wTyjJdbyIeDiYB__wVDsX-WwSQ-gD1L9beVKmQ3QAqN98xSdBN-6iIbUhbWe2QovG_NGw/s1600/10.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="264" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdc0O5G-Qj5npHK5G9YtqVvoEY1Ed3DwH0mHmsIfQO_RrOMoq9uFtURejHp0jwpFdKdpF3u5wTyjJdbyIeDiYB__wVDsX-WwSQ-gD1L9beVKmQ3QAqN98xSdBN-6iIbUhbWe2QovG_NGw/s640/10.png" width="640" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
8. We will get the Select property wizard. Click on New. <br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjt5UsFZVwmeZmDxDcO0HRGUoJCWBTaARcwXqrqxW-KZp8G7WKQ35VFFdClpLi1soFctuaNJkY0KQGsk_quf1gtyEiEgymueJSDUXU8lD6HfydI6NXi7y8K0Zqjl9Pv0JH-1p2xf1efVzo/s1600/11.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjt5UsFZVwmeZmDxDcO0HRGUoJCWBTaARcwXqrqxW-KZp8G7WKQ35VFFdClpLi1soFctuaNJkY0KQGsk_quf1gtyEiEgymueJSDUXU8lD6HfydI6NXi7y8K0Zqjl9Pv0JH-1p2xf1efVzo/s640/11.png" width="419" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
9. Give a name to our correlation property. <br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihcJ2Hu5h7n9VG1XUmAN0stK2RKD52wPQsaEyg0NrBWcUokckhu_vj0BFSpX7M5N4LXGjBziRz5PNC31lomQe5GMMbBhzUzTiLy7hstDqW1FupBIbOEib2-pIpfOplt-uwz0TjhdeV8no/s1600/12.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="588" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihcJ2Hu5h7n9VG1XUmAN0stK2RKD52wPQsaEyg0NrBWcUokckhu_vj0BFSpX7M5N4LXGjBziRz5PNC31lomQe5GMMbBhzUzTiLy7hstDqW1FupBIbOEib2-pIpfOplt-uwz0TjhdeV8no/s640/12.png" width="640" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
10. Select the data type for our correlation property. We have selected is here as a ‘Simple Type’. Click Browse. Now we have to select the data type from xml schema types. Select string as our type.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJ4PzTw4M25hvRRHYEFrmDBYhPW9cll22JeW8jey4PB-2bF0esokS1rzwDCYtc-4SKsHfzr6yYIGNkCCLxFzn2qY_XvzI7ZkLILC_2mY24QWKCXAMJzMaYnQgFraxZYafV8ZSrQb3-oj0/s1600/13.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJ4PzTw4M25hvRRHYEFrmDBYhPW9cll22JeW8jey4PB-2bF0esokS1rzwDCYtc-4SKsHfzr6yYIGNkCCLxFzn2qY_XvzI7ZkLILC_2mY24QWKCXAMJzMaYnQgFraxZYafV8ZSrQb3-oj0/s640/13.png" width="410" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Now a pop up box will appear and asks for the prefix to be used to the xml schema namespace. Give the prefix as ‘xsd’. <br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8-UIWrExOyRxNfD9Z4ZDyQnSpZbg0cQ2ujXWvnnCCAVGuOj6xk1_znVFB-DYcTFAu2ICQDnQJEo5oO0cWavTpRTNSCJV0_-dKZJbq2DXFzqftK0Z0WQ045y0BIButiFTTj12u_X24G6o/s1600/14.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="250" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8-UIWrExOyRxNfD9Z4ZDyQnSpZbg0cQ2ujXWvnnCCAVGuOj6xk1_znVFB-DYcTFAu2ICQDnQJEo5oO0cWavTpRTNSCJV0_-dKZJbq2DXFzqftK0Z0WQ045y0BIButiFTTj12u_X24G6o/s400/14.png" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
11. Click on the new button next to Alias to define property alias. <br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixSlusQjKVbH7iUG93H-F4jR7pgXrfERokchXrCs3Yua1M7QmQBkC2PHjrEW4ZlGurUMRVwjjC7OqBc1S8bUMeRaQ5FMkm5E6EHKIMUEEyN84LepYu5AbD7zmXBcpmc8YZ6soTUhRTjBs/s1600/22.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="360" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixSlusQjKVbH7iUG93H-F4jR7pgXrfERokchXrCs3Yua1M7QmQBkC2PHjrEW4ZlGurUMRVwjjC7OqBc1S8bUMeRaQ5FMkm5E6EHKIMUEEyN84LepYu5AbD7zmXBcpmc8YZ6soTUhRTjBs/s640/22.png" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
12. Click on browse and select the message type and input string for query. <br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqKGP15OtpT9e_r5O4Xccahe3G7r9hq4XyDjjlzhjXBLArBu8VKW_f1kWxfl9RL7wtcFR5zashz4_6dC8AB3x_rRtlajQ5bmO3oKwhSOgGoEr9jKthl_fUb7coVct-wGWxB-5vv35ROuk/s1600/23.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="360" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqKGP15OtpT9e_r5O4Xccahe3G7r9hq4XyDjjlzhjXBLArBu8VKW_f1kWxfl9RL7wtcFR5zashz4_6dC8AB3x_rRtlajQ5bmO3oKwhSOgGoEr9jKthl_fUb7coVct-wGWxB-5vv35ROuk/s640/23.png" width="640" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBsFYVh_vJOJLLhF46iXpE2PFSAf5ckqH2STRI2IBWn6OPTYo9Kc2d50As_Y6nID9kbDdcqiBb3UdMuUZCnckuFeiHDnJz0fvyZwwE4h9M4tuhSrMErh-0-vOgP1xSKoEFXXUEdIzTbkU/?imgmax=800"><img alt="clip_image035[5]" border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLwyKSz0Y3OQWTMNIxdBDlUAlJL9T9Fz1OawhocWu_p84NxP9z5pcUR2VAEUsL2pqLnwSeS0hHYZVP-wsdjEfpXUOWDFuzGRgZ2tpWW_jsCj5FxrAYmcdUGIjuZ357MxZ8Tk8AA7YifFA/?imgmax=800" style="background-image: none; border: 0px currentColor; display: inline; margin: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" title="clip_image035[5]" width="244" /></a><br />
<br />
13. Now we have finished defining the correlation set, property and alias. Note that we have selected only one alias here because, we are using the same message for both receive activities. Now we have to add the correlation set to the receive activities. On the first receive activity, which creates the process instance, we will initialize the correlation set. On the next, receive activity; we do not need to initialize. Click on the receive activity, and go to properties, click add and select the correlation set. Since we have only one correlation set, it will appear. On the initialize section select yes. <br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgW1zLhc-7vCNnw-fGdBAZGlgRa-V_elvTNxOhCD0ba_HNpggMcMqKw3mlbEOtr9gG61dlvd1rr0lfsVRv6KtJqMipjm1glK8zi3KL_uY4WBH-ymNjHmvsysyhoCtLUDrnU_xzeAqppw8Q/s1600/24.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="360" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgW1zLhc-7vCNnw-fGdBAZGlgRa-V_elvTNxOhCD0ba_HNpggMcMqKw3mlbEOtr9gG61dlvd1rr0lfsVRv6KtJqMipjm1glK8zi3KL_uY4WBH-ymNjHmvsysyhoCtLUDrnU_xzeAqppw8Q/s640/24.png" width="640" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
On the next correlation activity, set initiation to no. <br />
14. Next, generate the deployment descriptor. <br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirHWNTV17koG5H-QlHv60r2aqFkQJ1ZtF-ZWEA36zmTqmY0X9OORCozOSjO1UP7OJO_m_t1VvJNYnel5syIXGic01I9kTD0TvGxd86p3UlQnHKimFApLtZw_IavHgbKm9vqxh4gM5sO4g/s1600/25.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="360" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirHWNTV17koG5H-QlHv60r2aqFkQJ1ZtF-ZWEA36zmTqmY0X9OORCozOSjO1UP7OJO_m_t1VvJNYnel5syIXGic01I9kTD0TvGxd86p3UlQnHKimFApLtZw_IavHgbKm9vqxh4gM5sO4g/s640/25.png" width="640" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Next select all files related to the project and create a zip package. Upload the bpel package. One the process is deployed successfully; we can use tryit to send a request to the process. <br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEge1E4RT_ZQaXNN2-JqJhF8nli5bh-zuDvQvh7RmyPBntfYh1GlRQr6cNqldx6fWkQjguXncIlvzMkWSvIplNm0dJX26X0UzVDMPx3EGzrKsg09onKMDziWvXY9sv3PUnwDSLLumsuwXqs/s1600/tryit.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="306" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEge1E4RT_ZQaXNN2-JqJhF8nli5bh-zuDvQvh7RmyPBntfYh1GlRQr6cNqldx6fWkQjguXncIlvzMkWSvIplNm0dJX26X0UzVDMPx3EGzrKsg09onKMDziWvXY9sv3PUnwDSLLumsuwXqs/s640/tryit.png" width="640" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Now browse to instance view for this process. Now the instance has complete up to reply activity and <br />
is waiting on the next receive activity. Under the correlation properties: you can see the value we sent in the request. <br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxniF3I3h4oY0hiLjW-6hHn2iK5uf04yHLvIW7uZAO0Uqd2jehs_I57CcIZLp2a2g6vjSmCeOiJcYVPvtsEr6_vNeH7i7cRt8vL6Qe5odn9NZ1f56YEqnLjQfiX040kmFj5Z7oLmYWm3w/s1600/instanceview.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="324" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxniF3I3h4oY0hiLjW-6hHn2iK5uf04yHLvIW7uZAO0Uqd2jehs_I57CcIZLp2a2g6vjSmCeOiJcYVPvtsEr6_vNeH7i7cRt8vL6Qe5odn9NZ1f56YEqnLjQfiX040kmFj5Z7oLmYWm3w/s640/instanceview.png" width="640" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
14. Now send the same request from tryit again. Now the process instance has gone to the completed instance. You can follow the same steps we used here to add correlation sets to any asynchronous business process you implement. Correlation sets can be added to ‘receive’, ‘invoke’ and ‘pick’ activities.<br />
<br />
</div>
nandikajayawardanahttp://www.blogger.com/profile/11920576746810295004noreply@blogger.com3tag:blogger.com,1999:blog-5702309079039458297.post-73468782395534349552012-12-13T02:10:00.001-08:002012-12-13T02:11:45.503-08:00How to replace Saxon library home edition in WSO2 BPS 3.0.0 with Saxon professional or enterprise edition to obtain more functionality<p>Due to license restrictions, we ship saxon home edition in wso2 bps. Saxon is used as the xpath runtime for bps. However due to restrictions in saxon home edition, some functionality such as custom xpath extensions would not work out of the box for bps. However, this functionality can be obtained very easily by replacing saxon home edition jar with the saxon professional edition jar.</p> <p>Following are the steps to do it. </p> <p><strong>Step 1.</strong></p> <p>Unzip wso2bps-3.0.0.zip.<br><strong>Step 2.<br></strong>Remove saxon.he_9.4.0.wso2v1.jar from wso2bps-3.0.0/repository/components/plugins directory.<br><strong>Step 3.</strong><br>Download Saxon-EE package.<br><a href="http://www.saxonica.com/download/SaxonEE9-4-0-6J.zip">http://www.saxonica.com/download/SaxonEE9-4-0-6J.zip</a><br>Unzip and copy saxon9ee.jar to wso2bps-3.0.0/repository/components/lib directory.<br><strong>Step 4.</strong><br>Copy saxon-license.lic license to wso2bps-3.0.0 directory. ( Saxon license should be obtained from saxonica.com )<br><strong>Step5.<br></strong>Start the server.</p> nandikajayawardanahttp://www.blogger.com/profile/11920576746810295004noreply@blogger.com0tag:blogger.com,1999:blog-5702309079039458297.post-16794149233640966172012-10-25T01:44:00.001-07:002012-10-25T01:49:03.651-07:00How to increase the external invocation timeout for a BPEL process in BPS<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
There are situations where we need to invoke a service which will take quite sometime to respond within a bpel invoke. In such a scenario, you can use following settings to increase the default timeout values.<br />
<br />
Increase the default values for MessageExchange timeout and External service invocation timeout. Also set the SO_TIMEOUT parameter and CONNECTION_TIMEOUT parameter in HttpSender.<br />
<br />
Here, we are increasing the timeout value from default value to 10 minutes. <br />
<br />
bps.xml<br /><span style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f0f0f0; color: black; display: inline !important; float: none; font-family: arial, FreeSans, Helvetica, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-converted-space"> </span></span><br />
<br style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f0f0f0; color: black; font-family: arial, FreeSans, Helvetica, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" />
<tns:MexTimeOut value="600000"/> <br />
<tns:ExternalServiceTimeOut value="600000"/> <br />
<br />
<br style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f0f0f0; color: black; font-family: arial, FreeSans, Helvetica, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" />
<span style="color: black;"><span style="font-family: arial, FreeSans, Helvetica, sans-serif;">axis2.xml</span></span><br />
<br style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f0f0f0; color: black; font-family: arial, FreeSans, Helvetica, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" />
<transportSender name="http" <br />
class="org.apache.axis2.transport.http.CommonsHTTPTransportSender"> <br />
<parameter name="PROTOCOL">HTTP/1.1</parameter> <br />
<parameter name="Transfer-Encoding">chunked</parameter> <br />
<!-- This parameter has been added to overcome problems encounted in SOAP action parameter --> <br />
<parameter name="OmitSOAP12Action">true</parameter> <br />
<parameter name="SO_TIMEOUT">600000</parameter> <br />
<parameter name="CONNECTION_TIMEOUT">600000</parameter> <br />
</transportSender></div>
<span style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f0f0f0; color: black; display: inline !important; float: none; font-family: arial, FreeSans, Helvetica, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> </span></div>
nandikajayawardanahttp://www.blogger.com/profile/11920576746810295004noreply@blogger.com1tag:blogger.com,1999:blog-5702309079039458297.post-55335872783198261662012-10-16T12:44:00.001-07:002012-10-16T12:44:31.427-07:00How to invoke Admin Services with SoapUI<div dir="ltr" style="text-align: left;" trbidi="on">
It is very very easy to invoke WSO2 Carbon Admin Services with SOAP UI.<br />
<br />
<b>Step 1. </b><br />
Use the AuthenticationAdmin Service to obtain the session cookie.<br />
You can access the AuthenticationAdmin WSDL of a carbon server with the following url assuming that the server is running with default ports.<br />
<br />
<a href="http://localhost:9763/services/AuthenticationAdmin?wsdl">http://localhost:9763/services/AuthenticationAdmin?wsdl</a><br />
<br />
SOAP SoapUI to generate the Client for it.<br />
Now invoke the login method. A sample request would be like<br />
<br />
<br />
<br />
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:aut="http://authentication.services.core.carbon.wso2.org"><br />
<soap:Header/><br />
<soap:Body><br />
<aut:login><br />
<!--Optional:--><br />
<aut:username>admin</aut:username><br />
<!--Optional:--><br />
<aut:password>admin</aut:password><br />
<!--Optional:--><br />
<aut:remoteAddress>127.0.0.1</aut:remoteAddress><br />
</aut:login><br />
</soap:Body><br />
</soap:Envelope><br />
<br />
<br />
In the response message, an HTTP Header will be available with a session cookie.<br />
<br />
HTTP/1.1 200 OK<br />
<br />
Set-Cookie: JSESSIONID=2671C3A974C0FE67BD9D1DDF665E1DC3; Path=/; Secure; HttpOnly<br />
Content-Type: application/soap+xml;charset=UTF-8<br />
Transfer-Encoding: chunked<br />
Date: Tue, 16 Oct 2012 18:48:33 GMT<br />
Server: WSO2 Carbon Server<br />
<br />
<b>Step 2.</b><br />
<br />
Now when invoking any other admin service, add the http header COOKIE from soap UI.<br />
<br />
<i><b>COOKIE: JSESSIONID=2671C3A974C0FE67BD9D1DDF665E1DC3</b></i><br />
<div>
A sample request message would look like </div>
<div>
<br /></div>
<div>
POST http://localhost:9763/services/ProcessManagementService HTTP/1.1</div>
<div>
<div>
Accept-Encoding: gzip,deflate</div>
<div>
Content-Type: text/xml;charset=UTF-8</div>
<div>
SOAPAction: "urn:getProcessInfo"</div>
<div>
COOKIE: JSESSIONID=2671C3A974C0FE67BD9D1DDF665E1DC3</div>
<div>
User-Agent: Jakarta Commons-HttpClient/3.1</div>
<div>
Host: localhost:9763</div>
<div>
Content-Length: 571</div>
<div>
<br /></div>
<div>
<div>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"></div>
<div>
<soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing"></div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span><wsa:To>local://services/ProcessManagementService</wsa:To></div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span><wsa:MessageID>urn:uuid:ac59f8ff-de2e-42d1-88f6-2542d54a869c</wsa:MessageID></div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span><wsa:Action>urn:getProcessInfo</wsa:Action></div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span></soapenv:Header></div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span><soapenv:Body></div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span><ns1:getProcessInfoIn xmlns:ns1="http://wso2.org/bps/management/schema"></div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span><ns1:pid xmlns:s13="http://ode/bpel/unit-test">s13:HelloWorld2-2</ns1:pid></div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span></ns1:getProcessInfoIn></div>
<div>
</soapenv:Body></div>
<div>
</soapenv:Envelope></div>
</div>
</div>
<div>
<br /></div>
<br />
<br />
</div>
nandikajayawardanahttp://www.blogger.com/profile/11920576746810295004noreply@blogger.com4tag:blogger.com,1999:blog-5702309079039458297.post-77409492686697930092012-10-14T11:50:00.002-07:002012-10-14T11:57:33.217-07:00Installing WSO2 BPS on PostgreSQL<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Arial, Helvetica, sans-serif;">BPS requires two database schema's. One is for the registry and one for BPEL, Human Task engine. So we will need to create two database schema's on postgresql and grant permissions. Lets name the registry database as </span><b style="font-family: Arial, Helvetica, sans-serif;">bpsRegistry</b><span style="font-family: Arial, Helvetica, sans-serif;"> and orchestration engine database as </span><b style="font-family: Arial, Helvetica, sans-serif;">bps.</b><br />
<span style="font-family: Arial, Helvetica, sans-serif;">Step 1.</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;">Install postgresql.</span><br />
<strong style="text-align: -webkit-auto;"><i><span style="font-family: Arial, Helvetica, sans-serif;">$ sudo apt-get install postgresql</span></i></strong><br />
<span style="text-align: -webkit-auto;"><span style="font-family: Arial, Helvetica, sans-serif;">Step 2.</span></span><br />
<span style="font-family: Arial, Helvetica, sans-serif; text-align: -webkit-auto;">Configure postgresql </span><br />
<span style="font-family: Arial, Helvetica, sans-serif; text-align: -webkit-auto;">Edit </span><span style="font-family: Arial, Helvetica, sans-serif;">postgresql.conf file located in /etc/postgresql/9.1/main directory and un-comment the following line</span><br />
<strong style="text-align: -webkit-auto;"><span style="font-family: Arial, Helvetica, sans-serif;">listen_addresses = 'localhost'</span></strong><br />
<pre class="screen" style="text-align: -webkit-auto;"><span style="font-family: Arial, Helvetica, sans-serif;">
</span></pre>
<pre class="screen" style="text-align: -webkit-auto;"><span style="font-family: Arial, Helvetica, sans-serif;">Step 3.</span></pre>
<pre class="screen" style="text-align: -webkit-auto;"><span style="font-family: Arial, Helvetica, sans-serif;">When postgres sql is installed, a user named postgres will be created. We need to login as this user in order to create our databases, add our default role to postgres and grant privileges.</span><span style="font-family: Arial, Helvetica, sans-serif;">First login as root and then </span><span style="font-family: Arial, Helvetica, sans-serif;"> change user to postgres user.</span></pre>
<pre class="screen" style="text-align: -webkit-auto;"><span style="font-family: Arial, Helvetica, sans-serif;"><b><i>$ sudo su</i></b></span></pre>
<pre class="screen" style="text-align: -webkit-auto;"><b style="font-family: Arial, Helvetica, sans-serif;"><i>$ su postgres</i></b></pre>
<pre class="screen" style="text-align: -webkit-auto;"><b style="font-family: Arial, Helvetica, sans-serif;"><i>
</i></b></pre>
<pre class="screen" style="text-align: -webkit-auto;"><span style="font-family: Arial, Helvetica, sans-serif;"><i>Step 4</i></span></pre>
<pre class="screen" style="text-align: -webkit-auto;"><span style="font-family: Arial, Helvetica, sans-serif;">Connect to the database and configure roles.</span></pre>
<pre class="screen" style="text-align: -webkit-auto;"><span style="font-family: Arial, Helvetica, sans-serif;"><b>$ psql template1</b></span></pre>
<pre class="screen" style="text-align: -webkit-auto;"><span style="font-family: Arial, Helvetica, sans-serif;">Add default user to postgres.</span></pre>
<pre class="screen" style="text-align: -webkit-auto;"><b><span style="text-align: left;"><span style="font-family: Arial, Helvetica, sans-serif;">template1=# C</span></span><span style="font-family: Arial, Helvetica, sans-serif;">REATE USER nandika WITH PASSWORD 'password';</span></b></pre>
<pre class="screen" style="text-align: -webkit-auto;"><span style="font-family: Arial, Helvetica, sans-serif;"><b>
</b></span></pre>
<pre class="screen" style="text-align: -webkit-auto;"><span style="font-family: Arial, Helvetica, sans-serif;">Step 5</span></pre>
<pre class="screen" style="text-align: -webkit-auto;"><span style="font-family: Arial, Helvetica, sans-serif;">Create the two databases.</span></pre>
<pre class="screen" style="text-align: -webkit-auto;"><span style="font-family: Arial, Helvetica, sans-serif;"><b>template1=# CREATE DATABASE bps;</b></span></pre>
<pre class="screen" style="text-align: -webkit-auto;"><span style="font-family: Arial, Helvetica, sans-serif;"><b>template1=# CREATE DATABASE bpsRegistry;</b></span></pre>
<pre class="screen" style="text-align: -webkit-auto;"><span style="font-family: Arial, Helvetica, sans-serif;">Now grant all privileges to database.</span></pre>
<pre class="screen" style="text-align: -webkit-auto;"><span style="font-family: Arial, Helvetica, sans-serif;"><b>template1=# GRANT ALL PRIVILEGES ON DATABASE bps to nandika;</b></span></pre>
<pre class="screen" style="text-align: -webkit-auto;"><span style="font-family: Arial, Helvetica, sans-serif;"><b>template1=# GRANT ALL PRIVILEGES ON DATABASE bpsRegistry to nandika;</b></span></pre>
<pre class="screen" style="text-align: -webkit-auto;"><span style="font-family: Arial, Helvetica, sans-serif;">you can use \q to quit.</span></pre>
<pre class="screen" style="text-align: -webkit-auto;"><span style="font-family: Arial, Helvetica, sans-serif;">Step 6.</span></pre>
<pre class="screen" style="text-align: -webkit-auto;"><span style="font-family: Arial, Helvetica, sans-serif;">
</span></pre>
<pre class="screen" style="text-align: -webkit-auto;"><span style="font-family: Arial, Helvetica, sans-serif;">Now, test the databases and run the db scripts found in </span><span style="text-align: left;"><span style="font-family: Arial, Helvetica, sans-serif;"><b>wso2bps-3.0.0/dbscripts </b>directory to create the db tables.</span></span></pre>
<pre class="screen"><b><span style="text-align: left;"><span style="font-family: Arial, Helvetica, sans-serif;">$</span></span> <span style="font-family: Arial, Helvetica, sans-serif;">psql -d bpsregistry -U nandika;</span></b></pre>
<pre class="screen" style="text-align: left;"><span style="font-family: Arial, Helvetica, sans-serif;"><b>bpsRegistry=></b></span></pre>
<pre class="screen" style="text-align: left;"><span style="font-family: Arial, Helvetica, sans-serif;"><b>
</b></span></pre>
<pre class="screen" style="text-align: left;"><span style="font-family: Arial, Helvetica, sans-serif;">Now run the postgresql.sql script to create the tables.</span></pre>
<pre class="screen" style="text-align: left;"><span style="font-family: Arial, Helvetica, sans-serif;"><b>bpsRegistry=> \i /home/nandika/wso2bps-3.0.0/dbscripts/postgresql.sql</b></span></pre>
<pre class="screen" style="text-align: left;"><span style="font-family: Arial, Helvetica, sans-serif;">This should execute the sql script and create the database tables. </span></pre>
<pre class="screen" style="text-align: left;"><span style="font-family: Arial, Helvetica, sans-serif;">Similarly, execute the postgres.sql in dbscripts/bps directory to create the <b>bps </b>database tables.</span></pre>
<pre class="screen" style="text-align: left;"><span style="font-family: Arial, Helvetica, sans-serif;">
</span></pre>
<pre class="screen" style="text-align: left;"><span style="font-family: Arial, Helvetica, sans-serif;">Note : you can use \? to view the available postgres sql commands.</span></pre>
<pre class="screen" style="text-align: left;"><span style="font-family: Arial, Helvetica, sans-serif;">Now we are done with configuring postgres sql. Lets configure bps db connection urls.</span></pre>
<pre class="screen" style="text-align: left;"><span style="font-family: Arial, Helvetica, sans-serif;">Step 7.</span></pre>
<pre class="screen" style="text-align: left;"><span style="font-family: Arial, Helvetica, sans-serif;">
</span></pre>
<pre class="screen" style="text-align: left;"><span style="font-family: Arial, Helvetica, sans-serif;">Go to repository/conf/datasources directory and edit master-datasources.xml and replace the existing H2 database configurations with corresponding postgresql configuration.</span></pre>
<pre class="screen" style="text-align: left;"><span style="font-family: Arial, Helvetica, sans-serif;"> <datasource>
<definition type="RDBMS"><datasource>
<name>BPSREG_DB</name>
<description>The datasource used for registry</description>
<jndiConfig>
<name>jdbc/BPSRegDB</name>
</jndiConfig>
<definition type="RDBMS">
<configuration>
<url>jdbc:postgresql://localhost/bpsregistry</url>
<username>nandika</username>
<password>password</password>
<driverClassName>org.postgresql.Driver</driverClassName>
<maxActive>50</maxActive>
<maxWait>60000</maxWait>
<testOnBorrow>true</testOnBorrow>
<validationQuery>SELECT 1</validationQuery>
<validationInterval>30000</validationInterval>
</configuration>
</definition>
</datasource>
</definition></datasource></span></pre>
<pre class="screen" style="text-align: left;"><span style="font-family: Arial, Helvetica, sans-serif;">Next , open the datasources.properties file in repository/conf directory and all following.</span></pre>
<pre class="screen" style="text-align: left;"><span style="font-family: Arial, Helvetica, sans-serif;">synapse.datasources.bpsds.registry=JNDI
synapse.datasources.bpsds.type=BasicDataSource
synapse.datasources.bpsds.driverClassName=org.postgresql.Driver
synapse.datasources.bpsds.url=jdbc:postgresql://127.0.0.1:5432/bps?user=nandika&password=password
synapse.datasources.bpsds.username=nandika
synapse.datasources.bpsds.password=password
synapse.datasources.bpsds.validationQuery=SELECT 1
synapse.datasources.bpsds.dsName=bpsds
synapse.datasources.bpsds.maxActive=100
synapse.datasources.bpsds.maxIdle=20
synapse.datasources.bpsds.maxWait=10000</span></pre>
<pre class="screen" style="text-align: left;"><span style="font-family: Arial, Helvetica, sans-serif;">
</span></pre>
<pre class="screen" style="text-align: left;"><span style="font-family: Arial, Helvetica, sans-serif;">Next, download and copy postgres sql driver to repository/components/lib directory. </span><span style="font-family: Arial, Helvetica, sans-serif;">Now we have finished configurations. Go to bin directory and run wso2server.sh to start BPS.</span></pre>
<div style="text-align: -webkit-auto;">
</div>
</div>
nandikajayawardanahttp://www.blogger.com/profile/11920576746810295004noreply@blogger.com0