Description: Disabled usage of Geronimo JCA provider
 because its not yet in Debian.
Author: Damien Raude-Morvan <drazzib@debian.org>
Last-Update: 2011-06-21
Forwarded: not-needed
--- a/activemq-pool/pom.xml
+++ b/activemq-pool/pom.xml
@@ -42,6 +42,21 @@
     </activemq.osgi.export>
   </properties>
 
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <configuration>
+        <excludes>
+          <exclude>**/JcaPooledConnectionFactory.*</exclude>
+          <exclude>**/JcaConnectionPool.*</exclude>
+          <exclude>**/ActiveMQResourceManager.*</exclude>
+        </excludes>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
   <dependencies>
 
     <!-- =============================== -->
--- a/activemq-spring/src/main/java/org/apache/activemq/pool/PooledConnectionFactoryBean.java
+++ b/activemq-spring/src/main/java/org/apache/activemq/pool/PooledConnectionFactoryBean.java
@@ -112,7 +112,7 @@
      */
     @PostConstruct
     public void afterPropertiesSet() throws Exception {
-        if (pooledConnectionFactory == null && transactionManager != null && resourceName != null) {
+        /*if (pooledConnectionFactory == null && transactionManager != null && resourceName != null) {
             try {
                 LOGGER.debug("Trying to build a JcaPooledConnectionFactory");
                 JcaPooledConnectionFactory f = new JcaPooledConnectionFactory();
@@ -126,7 +126,7 @@
             } catch (Throwable t) {
                 LOGGER.debug("Could not create JCA enabled connection factory: " + t, t);
             }
-        }
+        }*/
         if (pooledConnectionFactory == null && transactionManager != null) {
             try {
                 LOGGER.debug("Trying to build a XaPooledConnectionFactory");
