users@glassfish.java.net

Re: How to retrieve Connection object from the COnnectionFacotory

From: Rama Sundari <sundari.drs_at_gmail.com>
Date: Fri, 5 Sep 2008 09:42:36 +0530

hi..
thanks for ur response..
now it is connecting..i mean connection object returned is not null
earlier mcf is null i think...i didnt get the correct reason..for that
previous exception and all import statements are correct ..none of them
refer to com.sun.corba.se.pept.transport.Connection...


thanku so much..
-rama.

On 9/5/08, glassfish_at_javadesktop.org <glassfish_at_javadesktop.org> wrote:
>
> Hi,
>
> I think the ClassCastException is an incorrect import for "Connection"
> class in your "com.tedia.ra.spi.ManagedConnectionImpl" source code.
> You should import from "javax.resource.cci.Connection"
> (instead of "com.sun.corba.se.pept.transport.Connection").
>
>
> The "RAR7099: The mcf being used to allocate the connection and the MCF in
> the
> pool are not equal. " information message could be because you are loosing
> "mcf" reference in ConnectionFactory ? (can you add a trace message before
> cm.allocateConnection to verify that "mcf" is not null?)
>
> That may also explain the other error "RAR5117 : Failed to obtain/create
> connection from connection pool [ myrapool7 ]. Reason : null exception" you
> got before.
>
> I would also recommend you to restart application server after redeploying
> each RAR adapter version, or modifying connector connection pool/resource
> properties.
>
> I hope it works for your adapter.
> (if not, can you provide complete source code & connection pool properties
> & application server version number?)
> [Message sent by forum member 'jmarine' (jmarine)]
>
> http://forums.java.net/jive/thread.jspa?messageID=297276
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>


-- 
Thanks,
Rama Sundari.