This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<spring:bean id="jdbcDataSource" class="org.enhydra.jdbc.standard.StandardDataSource" destroy-method="shutdown"> | |
<spring:property name="driverName" value="com.mysql.jdbc.Driver"/> | |
<spring:property name="url" value="jdbc:mysql://localhost/salesforce?user=root"/> | |
</spring:bean> | |
<jdbc:connector name="jdbcConnector" dataSource-ref="jdbcDataSource"> | |
<jdbc:query key="insertAccount" | |
value="INSERT INTO accounts (id, name, phone) | |
VALUES(#[map-payload:Id], #[map-payload:Name], #[map-payload:Phone]) | |
ON DUPLICATE KEY UPDATE name = VALUES(name), phone = VALUES(phone)"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<flow name="main"> | |
<poll frequency="300000"> | |
<salesforce:get-updated type="Account" duration="10"/> | |
</poll> | |
<splitter evaluator="ognl" expression="ids"/> | |
... | |
</flow> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<flow name="main"> | |
<poll frequency="300000"> | |
<salesforce:get-updated type="Account" duration="10"/> | |
</poll> | |
... | |
</flow> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<spring:bean id="jdbcDataSource" class="org.enhydra.jdbc.standard.StandardDataSource" destroy-method="shutdown"> | |
<spring:property name="driverName" value="com.mysql.jdbc.Driver"/> | |
<spring:property name="url" value="jdbc:mysql://localhost/salesforce?user=root"/> | |
</spring:bean> | |
<jdbc:connector name="jdbcConnector" dataSource-ref="jdbcDataSource"> | |
<jdbc:query key="insertAccount" | |
value="INSERT INTO accounts (id, name, phone) | |
VALUES(#[map-payload:Id], #[map-payload:Name], #[map-payload:Phone]) | |
ON DUPLICATE KEY UPDATE name = VALUES(name), phone = VALUES(phone)"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<flow name="paymentFlow"> | |
<ajax:inbound-endpoint channel="/payment"/> | |
<!-- The rest of the flow --> | |
</flow> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ajax:connector name="paymentServer" serverUrl="https://0.0.0.0:8082/services/checkout" | |
resourceBase="${app.home}/docroot"> | |
<!-- You can create this keystore using the keytool that comes with Java using a command like: | |
keytool -genkey -alias mule -keyalg RSA -keystore <path to keystore> --> | |
<ajax:key-store path="<key store location>" | |
storePassword="${ssl.password}" keyPassword="${ssl.password}"/> | |
</ajax:connector> | |
<authorize:config name="auth" merchantLogin="${auth.merchantLogin}" | |
merchantTransactionKey="${auth.merchantTransactionkey}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<flow name="paymentFlow"> | |
<ajax:inbound-endpoint channel="/payment"/> | |
<enricher> | |
<authorize:authorization-and-capture amount="#[map-payload:amount]" cardNumber="#[map-payload:cardnumber]" | |
expDate="#[map-payload:cardexpire]"/> | |
<enrich target="#[variable:PaymentSuccess]" source="#[bean:responseCode]"/> | |
<enrich target="#[variable:ErrorCode]" source="#[bean:responseReasonText]"/> | |
</enricher> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<enricher> | |
<authorize:authorization-and-capture amount="#[map-payload:amount]" cardNumber="#[map-payload:cardnumber]" | |
expDate="#[map-payload:cardexpire]"/> | |
<enrich target="#[variable:PaymentSuccess]" source="#[bean:responseCode]"/> | |
<enrich target="#[variable:ErrorCode]" source="#[bean:responseReasonText]"/> | |
</enricher> | |
<async> | |
<choice> |