[jboss-user] [IronJacamar] - Re: "getConnection" returns a shared connection regardless of the sharable property in the resource reference and regardless of the connection request info

berw do-not-reply at jboss.com
Mon Aug 12 10:57:37 EDT 2013


berw [https://community.jboss.org/people/berw] created the discussion

"Re: "getConnection" returns a shared connection regardless of the sharable property in the resource reference and regardless of the connection request info"

To view the discussion, visit: https://community.jboss.org/message/832346#832346

--------------------------------------------------------------
*OK it works now*. The problem was a missing setting for min and max pool size in the ironjacamar.xml. That seems to cause the use of the "OnePool". The "OnePool" implementation seems to ignore the ConnectionRequestInfo. Dont know whether it should better raise a ResourceException?

Hopefully the currently used pool implementation takes the CRI into account and it does not work by accident now (just by having more choice?)

Anyways, I really appreciate your help!
Thank you very much and best regards,
Wolfgang

*Looks like this now:*
<?xml version="1.0" encoding="UTF-8"?>
<p:ironjacamar xmlns:p=" http://www.jboss.org/ironjacamar/schema http://www.jboss.org/ironjacamar/schema"
          xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation=" http://www.jboss.org/ironjacamar/schema http://www.jboss.org/ironjacamar/schema  http://www.jboss.org/ironjacamar/schema http://www.jboss.org/ironjacamar/schema ">
          <p:connection-definitions>
                    <p:connection-definition 
                              jndi-name="java:/PCERAFile"
                              class-name="com.wincor.jca.PCERAFileManagedConnectionFactory">
            <p:pool>
                <p:min-pool-size>10</p:min-pool-size>
                <p:max-pool-size>100</p:max-pool-size>
            </p:pool>
            <p:security>
               <p:application/>
            </p:security> 
                    </p:connection-definition>
          </p:connection-definitions>
</p:ironjacamar>
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/832346#832346]

Start a new discussion in IronJacamar at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2098]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130812/45c98c90/attachment-0001.html 


More information about the jboss-user mailing list