Peter Antman wrote:
>
> On 30 Jan, Toby Allsopp wrote:
> > You get back whatever object the resource adapter returns from
> > ManagedConnection.getConnection(). This should compatible with the type
> > you specified in your <res-type> tag, but I don't think this is enforced
> > in JBoss (and you're not using the java:comp/env namespace anyway).
>
> That does not sound as correct behaviour. The ConnectionFactory (its
> implementation, ie JdbcDataSource - which is what you get in the exmple
> abovem in the case of blackbox) should be bound to JNDI. Basically whats
> bound in JNDI is what is returned from
> ManagedConnectionFactory.createConnectionFactory()
>
> Toby slipped in his answer, but has made a correct implementation.
Yep. Sorry if I confused anyone. Peter is quite correct - the JNDI
lookup gives you the connection *factory* that the RA provides.
Toby.
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]