Skip to content

Instantly share code, notes, and snippets.

@mstrejczek
Last active August 29, 2015 14:02

Revisions

  1. mstrejczek revised this gist Jun 10, 2014. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions spring-infrastructure-context.xml
    Original file line number Diff line number Diff line change
    @@ -11,8 +11,6 @@

    <bean id="jtaTransactionManager" class="org.springframework.transaction.jta.JtaTransactionManager" />

    <jee:jndi-lookup id="jmsConnectionFactory" jndi-name="java:/ActiveMQ/ConnectionFactory" />
    <jee:jndi-lookup id="dataSource" jndi-name="java:jboss/datasources/MysqlDS" />
    <jee:jndi-lookup id="xaJmsConnectionFactory" jndi-name="java:/ActiveMQ/XAConnectionFactory" />
    <jee:jndi-lookup id="xaDataSource" jndi-name="java:jboss/datasources/MysqlXADS" />
    </beans>
  2. mstrejczek created this gist Jun 10, 2014.
    18 changes: 18 additions & 0 deletions spring-infrastructure-context.xml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:amq="http://activemq.apache.org/schema/core"
    xmlns:context="http://www.springframework.org/schema/context"
    xmlns:jee="http://www.springframework.org/schema/jee"
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
    http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
    http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee.xsd
    http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd">

    <bean id="jtaTransactionManager" class="org.springframework.transaction.jta.JtaTransactionManager" />

    <jee:jndi-lookup id="jmsConnectionFactory" jndi-name="java:/ActiveMQ/ConnectionFactory" />
    <jee:jndi-lookup id="dataSource" jndi-name="java:jboss/datasources/MysqlDS" />
    <jee:jndi-lookup id="xaJmsConnectionFactory" jndi-name="java:/ActiveMQ/XAConnectionFactory" />
    <jee:jndi-lookup id="xaDataSource" jndi-name="java:jboss/datasources/MysqlXADS" />
    </beans>