> > Please tell us your solution so others can learn.
>
> I've just changed my xml to 1.0 version. :)
Thanks for the update.
> Now I've some doubts about how my connector is working so I need to
> ask something.
[quoted text clipped - 4 lines]
> ManagedConnectionFactory and will create connections as they be asked
> by clients till get the max pool count ?
I would expect it wouldn't open live connections at startup. In fact,
I suspect that it wouldn't even instantiate the Managed Connection
Factory until driven by user request. It would use the min pool value
as a lower boundary that the size of the pool couldn't fall below once
it reached the min. The pool would contain Managed Connection
instances.
> I need to be sure about how it works to know if I my ra is working
> right or wrong...
This depends on the implementation of the Container Software, such as
an App Server (AS). I doubt they will document their internal
algorithm ... unless it is open source. So, I'd suggest you instrument
your code to trace calls to various entry points in your Resource
Adapter (RS).
--
Lee Fesperman, FFE Software, Inc. (http://www.firstsql.com)
==============================================================
* The Ultimate DBMS is here!
* FirstSQL/J Object/Relational DBMS (http://www.firstsql.com)
Cacho - 25 Jul 2007 13:45 GMT
> This depends on the implementation of the Container Software, such as
> an App Server (AS). I doubt they will document their internal
> algorithm ... unless it is open source. So, I'd suggest you instrument
> your code to trace calls to various entry points in your Resource
> Adapter (RS).
Hi
Thanks for your reply.
I've checked that my JBoss starts all the connection I configured in
the xml file but I people from JBoss team told me that´s configurable.
I've tested my connector and is working well except when I try to make
a matchManaged connections. Till now it was returning null but today
I've tried to do it well but... I've been looking sample codes on the
net and found that there check for some properties like user
credentials to match connections.
As my adapter doesn´t use credentials I don´t figure out what to do
and so far, I don´t figure out which objetcs are trying to be matched.
As I've read, the application server will give to my
matchManagedconnection with a set of candidate connections but, they
should be match against what ?
Could you please clarify that matter ?
Thanks in advance
C
Lee Fesperman - 26 Jul 2007 00:31 GMT
> I've tested my connector and is working well except when I try to make
> a matchManaged connections. Till now it was returning null but today
[quoted text clipped - 9 lines]
>
> Could you please clarify that matter ?
The container software (AS) would use matchManagedConnection() to
check if a new connection is in its pool of available connections
(ManagedConnection). The first argument is a Set containing available
connections from the pool. The third argument (ConnectionRequestInfo)
contains the properties for the new connection. You said you had
connection properties, right? You should look in the set for a
ManagedConnection object whose connection properties match those in
the new connection ... and return it if it does (I'd also check that
the ManagedConnection from the set is one of yours.)
--
Lee Fesperman, FFE Software, Inc. (http://www.firstsql.com)
==============================================================
* The Ultimate DBMS is here!
* FirstSQL/J Object/Relational DBMS (http://www.firstsql.com)