users@glassfish.java.net

Re: how to look up a resource adapter

From: Jagadish Prasath Ramu <Jagadish.Ramu_at_Sun.COM>
Date: Tue, 02 Sep 2008 16:06:20 +0530

You (RAR developer) will provide implementations of
ManagedConnectionFacotry, ConnectionFactory, Connection etc.,
App. developer/administrator will create a connector-resource (and
connector-connection-pool). This resource will be bound to jndi,
application will do a lookup and get the connection-factory (provided by
your RAR) to create connections (provided by your RAR) to the EIS.

You can refer MailConnector sample (with source code) and the
application that uses the mail-connector.

Book : "J2EE(TM) Connector Architecture and Enterprise Application
Integration"
http://www.amazon.com/Connector-Architecture-Enterprise-Application-Integration/dp/0201775808/ref=si3_rdr_bb_product




On Tue, 2008-09-02 at 14:32 +0530, Rama Sundari wrote:
>
> hi..
>
> while implementing the interfaces where do we need to specify the
> connection with eis..i mean how does the resource adapter
> implementation bind with the eis?...
>
> do i need to do any look up for this..or there is other method to do..
> please tell me the correct procedure...
>
>
> -thanks,
> rama.
>
> On 8/31/08, glassfish_at_javadesktop.org <glassfish_at_javadesktop.org>
> wrote:
> Hi,
>
> To implement
> createConnectionFactory([b]ConnectionManager[/b]), you only
> have to return a new instance of your connection factory
> class:
> [code]
> public Object createConnectionFactory(ConnectionManager cm)
> throws ResourceException {
> {
> return new com.ra.ConnectionFactoryImpl(this, cm);
> }
> [/code]
>
> I don't speak english and It's difficult for me to explain how
> to implement ALL mandatory interfaces. But for other
> implementation details, I would recommend you to download
> "J2EE Connector Architecture 1.0.1 Sample Source"
> from "http://java.sun.com/j2ee/sdk_1.3/".
> (althought I haven't tried the sample with Glassfish, the
> "cciblackbox" adapter seems a good example for CCI).
>
> You may also want to read these tutorials and examples:
>
> CCI connector:
> http://java.sun.com/developer/technicalArticles/J2EE/connectorclient/resourceadapter.html
> (but it doesn't cover the "Interaction" interface).
>
> DataSource connector:
> http://www.javaworld.com/javaworld/jw-02-2002/jw-0201-jca2.html
>
> Custom interface connector:
> http://www.oracle.com/technology/pub/articles/prabhu_jca.html
> and the "mailconnector" JCA 1.5 adapter example from J2EE 1.4
> Tutorial samples.
>
>
> Good luck.
> [Message sent by forum member 'jmarine' (jmarine)]
>
> http://forums.java.net/jive/thread.jspa?messageID=296411
>
> ---------------------------------------------------------------------
> 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.