title: Configure openejb autoconfig by Tomee with multiple datasources and miltiple apppication
body: <p>We use Tomee 1.7.1 jaxrs with multiple datasources and applications.
  For example:</p>
  
  <p><strong>App1 persistance.xml</strong></p>
  
  <pre><code>&lt;persistence-unit name="DS1_PU" transaction-type="JTA"&gt;
      &lt;jta-data-source&gt;DS1&lt;/jta-data-source&gt;
  ...
  &lt;/persistence-unit&gt;
  </code></pre>
  
  <p><strong>App2 persistance.xml</strong></p>
  
  <pre><code>&lt;persistence-unit name="DS2_PU" transaction-type="JTA"&gt;
      &lt;jta-data-source&gt;DS2&lt;/jta-data-source&gt;
  ...
  &lt;/persistence-unit&gt;
  </code></pre>
  
  <p><strong>tomee.xml</strong>  </p>
  
  <pre><code>&lt;Resource id="DS1" type="DataSource"&gt;
      JdbcDriver  org.postgresql.Driver
      JdbcUrl     jdbc:postgresql://localhost:5432/DS1
      UserName    postgres
      Password    123
      JtaManaged  true
      ValidationQuery select 1
      TestOnBorrow    true        
  &lt;/Resource&gt;
  
  &lt;Resource id="DS2" type="DataSource"&gt;
      JdbcDriver  org.postgresql.Driver
      JdbcUrl     jdbc:postgresql://localhost:5432/DS2
      UserName    postgres
      Password    123
      JtaManaged  true
      ValidationQuery select 1
      TestOnBorrow    true        
  &lt;/Resource&gt;
  </code></pre>
  
  <p><strong>Deployment log:</strong></p>
  
  <p>INFORMATION: Adjusting PersistenceUnit DS1_PU  to Resource ID 'DS1NonJta' from 'null'
  INFORMATION: Adjusting PersistenceUnit DS2_PU  to Resource ID 'DS2NonJta' from 'null'</p>
  
  <p><strong>Problem:</strong>
   When I make a typo in a persistance.xml, f.e.</p>
  
  <pre><code>&lt;persistence-unit name="DS2_PU" transaction-type="JTA"&gt;
      &lt;jta-data-source&gt;DS_WRONG&lt;/jta-data-source&gt;
  ...
  &lt;/persistence-unit&gt;
  </code></pre>
  
  <p>app still deployes but use wrong data source:</p>
  
  <p>INFORMATION: Adjusting PersistenceUnit DS2_PU  to Resource ID 'DS1NonJta' from 'null'</p>
  
  <p>It seems that openejb takes first founded data source.
  Can I disable this "feature"?</p>