Note that there are some explanatory texts on larger screens.

plurals
  1. POTransaction mediator in wso2esb 4.8.0
    primarykey
    data
    text
    <p>I'm working with wso2esb 4.8.0 and i go through this scenario which is given in wso2esb documentation.I want to copy the records from first database to second database as soon as i delete them from first database.but when i put the duplicate record it should neither delete from first nor insert into second.</p> <p>my proxy service :</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;proxy xmlns="http://ws.apache.org/ns/synapse" name="Transaction_mediator" transports="https,http" statistics="disable" trace="disable" startOnLoad="true"&gt; &lt;target&gt; &lt;inSequence&gt; &lt;property name="name" expression="//name/text()" scope="default" type="STRING"/&gt; &lt;property name="id" expression="//id/text()" scope="default" type="STRING"/&gt; &lt;property name="price" expression="//price/text()" scope="default" type="STRING"/&gt; &lt;transaction action="new"/&gt; &lt;log level="full"&gt; &lt;property name="text" value="Reporting to the DB1"/&gt; &lt;/log&gt; &lt;dbreport useTransaction="true"&gt; &lt;connection&gt; &lt;pool&gt; &lt;dsName&gt;DS1&lt;/dsName&gt; &lt;/pool&gt; &lt;/connection&gt; &lt;statement&gt; &lt;sql&gt; delete from c1 where name=?&lt;/sql&gt; &lt;parameter expression="get-property('name')" type="VARCHAR"/&gt; &lt;/statement&gt; &lt;/dbreport&gt; &lt;log level="full"&gt; &lt;property name="text" value="Reporting to the DB2"/&gt; &lt;/log&gt; &lt;dbreport useTransaction="true"&gt; &lt;connection&gt; &lt;pool&gt; &lt;dsName&gt;DS2&lt;/dsName&gt; &lt;/pool&gt; &lt;/connection&gt; &lt;statement&gt; &lt;sql&gt; INSERT into c1 values (?,?,?)&lt;/sql&gt; &lt;parameter expression="get-property('name')" type="VARCHAR"/&gt; &lt;parameter expression="get-property('id')" type="INTEGER"/&gt; &lt;parameter expression="get-property('price')" type="INTEGER"/&gt; &lt;/statement&gt; &lt;/dbreport&gt; &lt;transaction action="commit"/&gt; &lt;send/&gt; &lt;/inSequence&gt; &lt;outSequence&gt; &lt;log level="full"/&gt; &lt;send/&gt; &lt;/outSequence&gt; &lt;/target&gt; &lt;description/&gt; &lt;/proxy&gt; </code></pre> <p>It's working but error occurred when i put <strong>duplicate records</strong>.At that time It <strong>deleting</strong> records from first but not inserting into second database.What should i do?is their any solution?let me know.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload