-
1. Re: matchManagedConnections not called when <application-man
weston.price Jan 26, 2007 10:10 AM (in response to lgsw_sam)Could you post your *-ds.xml file?
-
2. Re: matchManagedConnections not called when <application-man
lgsw_sam Jan 29, 2007 12:52 AM (in response to lgsw_sam)Hi Weston!
Here is my genericra-ds.xml.<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE connection-factories PUBLIC "-//JBoss//DTD JBOSS JCA Config 1.5//EN" "http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd"> <connection-factories> <no-tx-connection-factory> <jndi-name>GRA</jndi-name> <rar-name>MessageServer.ear#GenericResourceAdapter.rar</rar-name> <connection-definition> fi.logiasoftware.jca.adapter.GenericConnectionFactory </connection-definition> <application-managed-security/> <min-pool-size>100</min-pool-size> <max-pool-size>2000</max-pool-size> <idle-timeout-minutes>1</idle-timeout-minutes> <blocking-timeout-millis>120000</blocking-timeout-millis> </no-tx-connection-factory> </connection-factories>
-
3. Re: matchManagedConnections not called when <application-man
weston.price Jan 29, 2007 10:10 AM (in response to lgsw_sam)Typically you see a match failing in this case when you haven't implemented the equals()/hascode() contract correctly for your ConnectionRequestInfo. Please take a look.
-
4. Re: matchManagedConnections not called when <application-man
lgsw_sam Jan 30, 2007 12:59 AM (in response to lgsw_sam)Hi Weston!
I do have hashCode() and equals() implemented and they are called and equals returns true or false correctly. But matchManagedConnections() is not called at all...
I would expect that macthManagedConnections() is called always if equals=true and the pool has at least one connection.
Is that correct? -
5. Re: matchManagedConnections not called when <application-man
lgsw_sam Jan 30, 2007 5:37 AM (in response to lgsw_sam)Hi Weston!
It was the hashCode() and equals() after all...
I only checked the hashCode and equals from ManagedConnectionFactory and not from ConnectionRequestInfo... :)
Now matchManagedConnections is called as expected.
Thanks!
Br,
Sami -
6. Re: matchManagedConnections not called when <application-man
weston.price Jan 30, 2007 5:53 AM (in response to lgsw_sam)
It was the hashCode() and equals() after all...
I only checked the hashCode and equals from ManagedConnectionFactory and not from ConnectionRequestInfo... :)
Yes, from my post
Typically you see a match failing in this case when you haven't implemented the equals()/hascode() contract correctly for your ConnectionRequestInfo.
Indeed...;-) Glad you got it working.