users@glassfish.java.net

Re: how to look up a resource adapter

From: Rama Sundari <sundari.drs_at_gmail.com>
Date: Fri, 28 Nov 2008 11:45:40 +0530

HI...
thanku for information..its useful
-thanks,
Rama.

On Thu, Nov 27, 2008 at 8:37 PM, rajpatel <rajpatel1980_at_gmail.com> wrote:

>
> Hi Rama,
> I saw that the Sun Sailfin guys just announced there they have partnered
> with the Open Source OpenBloX Diameter for Diameter support.
> http://blogs.sun.com/theaquarium/entry/sailfin_and_openblox_diameter
>
> Cheers,
> RP
>
>
>
>
> Rama Sundari wrote:
> >
> > Hi,
> >
> > I have deployed a resource adapter implemnataion rar file using
> glassfish.
> >
> > When the server is starting the the reource adapter is also getting
> > started..(the start method is getting invoked).
> >
> > The implementation structure is MyRAImpl.rar(contains implementaion
> > classes
> > and META_INF which has ra.xml and manifestaion).
> >
> > The contents of ra.xml :
> >
> >
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> >
> > <connector id="Connector_ID" version="1.5" xmlns="
> > http://java.sun.com/xml/ns/j2ee" xmlns:xsi="
> > http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
> > http://java.sun.com/xml/ns/j2ee *
> > http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd*<
> http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd>">
> >
> >
> > <description></description>
> >
> > <display-name>RAExample</display-name>
> >
> > <vendor-name>te</vendor-name>
> >
> > <eis-type>Diameter Base Protocol</eis-type>
> >
> > <resourceadapter-version>1.5</resourceadapter-version>
> >
> > <resourceadapter>
> >
> > <resourceadapter-class>
> >
> > com.ra.ResourceAdapterImpl
> >
> > </resourceadapter-class>
> >
> > <outbound-resourceadapter>
> >
> > <connection-definition>
> >
> > <managedconnectionfactory-class>
> >
> > com.ra.ManagedConnectionFactoryImpl
> >
> > </managedconnectionfactory-class>
> >
> > <connectionfactory-interface> javax.resource.cci.ConnectionFactory
> >
> > </connectionfactory-interface>
> >
> > <connectionfactory-impl-class> com.ra.ConnectionFactoryImpl
> >
> > </connectionfactory-impl-class>
> >
> > <connection-interface> javax.resource.cci.Connection
> >
> > </connection-interface>
> >
> > <connection-impl-class> com.ra.ConnectionImpl
> >
> > </connection-impl-class>
> >
> > </connection-definition>
> >
> > <transaction-support>NoTransaction</transaction-support>
> >
> > <reauthentication-support>false</reauthentication-support>
> >
> > </outbound-resourceadapter>
> >
> > </resourceadapter>
> >
> > </connector>
> >
> >
> >
> >
> >
> > The module is deployed properly and we created a connector pool through
> > admin console.
> >
> > Now I want to look up the resource adapter through a servlet.
> >
> > What is the jndi name I have to use..
> >
> > Do I need to specify any server specific xml file in ResourceAdapter
> > implemetation…?
> >
> > I am trying to look up using the jndi name which was set up through admin
> > console while creating connection pool.
> >
> > But it is not working …getting NameNotBoundException..
> >
> > Please help me..
> >
> > Thanks in adavance...
> >
> >
> >
> > --
> > Thanks,
> > Rama Sundari.
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/how-to-look-up-a-resource-adapter-tp19240186p20720770.html
> Sent from the java.net - glassfish users mailing list archive at
> Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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.