Hi Jon,

I understand this is not a standard RA deployment anymore but rather a TomEE
specific way.
Anyway, I had a try and it works like a charm! Now, I can have this nice and
clean resources.xml embedded in my EAR: 

    <resources>
      <Resource id="MyResourceAdapter"
class-name="foo.bar.MyResourceAdapter">
        threadPoolSize=7
      </Resource>
      <Resource id="MyConnectionFactory1"
type="javax.resource.cci.ConnectionFactory"
class-name="foo.bar.ManagedConnectionFactory">
        resourceAdapter=MyResourceAdapter
        transactionSupport=none
        serverName=server001
        pooling=true
        poolMaxSize=3
        poolMinSize=0
        connectionMaxWaitTime=3 seconds
        connectionMaxIdleTime=5 seconds
      </Resource>
      <Resource id="MyConnectionFactory2"
type="javax.resource.cci.ConnectionFactory"
class-name="foo.bar.ManagedConnectionFactory">
        resourceAdapter=MyResourceAdapter
        transactionSupport=none
        serverName=server002
        pooling=true
        poolMaxSize=2
        poolMinSize=1
        connectionMaxWaitTime=5 seconds
        connectionMaxIdleTime=10 seconds
      </Resource>
    </resources>

No more "hack" in system.properties!
As you said, it would be a cool feature to have this resources.xml support
for RARs.
Thanks for your help! 

Regards,
Jean.



--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html

Reply via email to