title: DeltaSpike Data And JTA doesn't work
body: <p>I have a problem <strong>"no transaction is in progress"</strong> for container-based datasource in Wildfly 10.1.</p>
  
  <p>There are my settings:</p>
  
  <pre><code>&lt;datasource jta="true" jndi-name="java:jboss/datasources/MY_DATASOURCE" pool-name="MY_DATASOURCE_POOL" enabled="true" use-java-context="true" use-ccm="true" statistics-enabled="true"&gt;
                  &lt;connection-url&gt;jdbc:postgresql://localhost:5432/test&lt;/connection-url&gt;
                  &lt;driver&gt;postgresql&lt;/driver&gt;
                  &lt;transaction-isolation&gt;TRANSACTION_READ_COMMITTED&lt;/transaction-isolation&gt;
                  &lt;pool&gt;
                      &lt;min-pool-size&gt;50&lt;/min-pool-size&gt;
                      &lt;max-pool-size&gt;150&lt;/max-pool-size&gt;
                  &lt;/pool&gt;
                  &lt;security&gt;
                      &lt;user-name&gt;test&lt;/user-name&gt;
                      &lt;password&gt;test&lt;/password&gt;
                  &lt;/security&gt;
                  &lt;validation&gt;
                      &lt;valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLValidConnectionChecker"/&gt;
                      &lt;validate-on-match&gt;true&lt;/validate-on-match&gt;
                      &lt;background-validation&gt;true&lt;/background-validation&gt;
                      &lt;exception-sorter class-name="org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLExceptionSorter"/&gt;
                  &lt;/validation&gt;
              &lt;/datasource&gt;
  </code></pre>
  
  <p>We don't use persistence.xml, so it's my <strong>hibernate.cfg.xml</strong></p>
  
  <pre><code>    &lt;!DOCTYPE hibernate-configuration PUBLIC
              "-//Hibernate/Hibernate Configuration DTD//EN"
              "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd"&gt;
      &lt;hibernate-configuration&gt;
          &lt;session-factory&gt;
              &lt;property name="hibernate.dialect"&gt;org.hibernate.dialect.PostgreSQL95Dialect&lt;/property&gt;
              &lt;property name="hibernate.transaction.jta.platform"&gt;org.hibernate.service.jta.platform.internal.JBossAppServerJtaPlatform&lt;/property&gt;
              &lt;property name="hibernate.show_sql"&gt;true&lt;/property&gt;
              &lt;property name="hibernate.format_sql"&gt;true&lt;/property&gt;
              &lt;!-- Configuration for multitenancy separate database support --&gt;
              &lt;property name="hibernate.multiTenancy"&gt;DATABASE&lt;/property&gt;
              &lt;property name="hibernate.tenant_identifier_resolver"&gt;org.example.TenantResolver&lt;/property&gt;
          &lt;/session-factory&gt;
      &lt;/hibernate-configuration&gt;
  </code></pre>
  
  <p>Also I added <strong><em>apache-deltaspike.properties</em></strong> file with the line</p>
  
  <pre><code>globalAlternatives.org.apache.deltaspike.jpa.spi.transaction.TransactionStrategy=org.apache.deltaspike.jpa.impl.transaction.ContainerManagedTransactionStrategy
  </code></pre>
  
  <p>for providing transaction strategy support in the container, too. But unfortunately in my <strong>@Stateless</strong> service I still have no transactions. Could anybody give me an advice what's wrong with my configuration?</p>