Externalize broker and DB configuration (#89)

diff --git a/spring-boot-jta-jpa/src/main/resources/application.properties b/spring-boot-jta-jpa/src/main/resources/application.properties
index 6ade52a..2fc72f4 100644
--- a/spring-boot-jta-jpa/src/main/resources/application.properties
+++ b/spring-boot-jta-jpa/src/main/resources/application.properties
@@ -25,3 +25,11 @@
 spring.main.allow-bean-definition-overriding = true
 camel.springboot.jmxEnabled = false
 camel.servlet.mapping.context-path = /api/*
+
+broker.url=tcp://localhost:61616
+broker.user=admin
+broker.password=admin
+
+mysql.url=jdbc:mysql://localhost:3306/testdb
+mysql.user=admin
+mysql.password=admin
diff --git a/spring-boot-jta-jpa/src/main/resources/spring-camel.xml b/spring-boot-jta-jpa/src/main/resources/spring-camel.xml
index 8424b3a..f69e602 100644
--- a/spring-boot-jta-jpa/src/main/resources/spring-camel.xml
+++ b/spring-boot-jta-jpa/src/main/resources/spring-camel.xml
@@ -35,9 +35,9 @@
     </bean>
 
     <bean id="jtaDataSource" class="com.mysql.cj.jdbc.MysqlXADataSource">
-        <property name="url" value="jdbc:mysql://localhost:3306/testdb"/>
-        <property name="user" value="admin"/>
-        <property name="password" value="admin"/>
+        <property name="url" value="${mysql.url}"/>
+        <property name="user" value="${mysql.user}"/>
+        <property name="password" value="${mysql.password}"/>
     </bean>
 
     <!-- Pooled JTA aware data source -->
@@ -82,9 +82,9 @@
     </bean>
 
     <bean id="jtaConnectionFactory" class="org.apache.activemq.artemis.jms.client.ActiveMQXAConnectionFactory">
-        <constructor-arg value="tcp://localhost:61616"/>
-        <constructor-arg value="admin"/>
-        <constructor-arg value="admin"/>
+        <constructor-arg value="${broker.url}"/>
+        <constructor-arg value="${broker.user}"/>
+        <constructor-arg value="${broker.password}"/>
     </bean>
 
     <!-- Pooled JTA aware connection factory -->