-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdblookup_mediator_proxy.xml
32 lines (32 loc) · 1.11 KB
/
dblookup_mediator_proxy.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
name="dblookup_proxy"
startOnLoad="true"
statistics="disable"
trace="disable"
transports="http,https">
<target>
<inSequence>
<dblookup>
<connection>
<pool>
<driver>com.mysql.jdbc.Driver</driver>
<url>jdbc:mysql://localhost:3306/tutorials</url>
<user>root</user>
<password>root</password>
</pool>
</connection>
<statement>
<sql>select * from EMPLOYEES where EmployeeNumber =?</sql>
<parameter type="INTEGER" value="1"/>
<result column="FirstName" name="Name"/>
</statement>
</dblookup>
<log level="custom">
<property expression="fn:concat('FirstName: ',get-property('Name'))" name="Name"/>
</log>
<respond/>
</inSequence>
</target>
<description/>
</proxy>