Re: setResourceAdapter method in ManagedConnectionFactory

Binod <[email protected]> Wed, 17 Sep 2003 20:04:05 +0530
Newsgroups gmane.comp.java.sun.connector
Message-ID <[email protected]>
Hi,

You need to create a connection pool and connector resource using asadmin=
=20
commands. Please take a look at the create-connector-connection-pool and=20
create-connector-resource commands.

- Binod,

On Wednesday 17 September 2003 07:34 am, Koji Sekiguchi wrote:
> Hi Binod,
>
> Thank you for your reply. How do I set a JNDI name
> for a Connection Factory without sun-ra.xml?
>
> Thanks in advance,
>
> Koji
>
> On Wed, 17 Sep 2003 03:00:06 +0530, Binod <[email protected]> wrote:
> >You dont need sun-ra.xml for J2EE1.4 RI beta2.
> >- Binod.
> >
> >On Tuesday 16 September 2003 02:12 pm, Koji Sekiguchi wrote:
> >> Hello,
> >>
> >> I want to write my own JCA1.5 adapter that runs on J2EE1.4 RI
> >> Beta2. I tried to find a sample for sun-ra.xml for JCA1.5,
> >> but couldn't. Has anybody succeeded in running your own
> >> JCA1.5 adapter on J2EE1.4 RI? Is there good sample source
> >> and DD for J2EE1.4 RI?
> >>
> >> Thanks in advance,
> >>
> >> Koji
> >>
> >> On Fri, 8 Aug 2003 21:38:57 +0530, Binod <[email protected]> wrote:
> >> >According to PFD2 of connector specification, both
> >>
> >> ManagedConnectionFactory
> >>
> >> >interface and ActivationSpec interface need to implement
> >> >ResourceAdapterAssociation interface. J2EE 1.4 Beta2  will execute
> >> >setResourceAdapter on ResourceAdapterAssociation interface.
> >> >
> >> >So, Please make sure that your clases implement
> >>
> >> ResourceAdapterAssociation
> >>
> >> >intefrace.
> >> >
> >> >thanks,
> >> >Binod
> >> >
> >> >On Thursday 07 August 2003 07:28 pm, Sandeep Rajpathak wrote:
> >> >> I face this problem while using the SUN J2EE 1.4 Beta 2 RI.
> >> >>
> >> >> As per the JCA 1.5 specifications, the method "setResourceAdapter=
"
> >>
> >> present
> >>
> >> >> in the ManagedConnectionFactory method is called by the Applicati=
on
> >>
> >> Server
> >>
> >> >> during the startup operation. However in the implementation that =
I
>
> have
>
> >> >> done, this does not seem to be happening. In fact there is anothe=
r
> >>
> >> method
> >>
> >> >> called "setResourceAdapter" present in the ActivationSpec interfa=
ce
> >>
> >> which
> >>
> >> >> the implementation class overrides, but even this one is not gett=
ing
> >> >> called.
> >> >>
> >> >> Because this method does not get called there is no way for the
> >> >> Outbound/Inbound handlers to get data-objects initialized during =
the
> >> >> ResourceAdapter startup. Infact I had to use the deprecated Singl=
eton
> >> >> pattern for making these data-objects available to the various
>
> classes
>
> >> for
> >>
> >> >> ex. ManagedConnectionFactoryImpl, ConnectionImpl etc.
> >> >>
> >> >> What could possibly be the reasons for this method not getting
>
> called by
>
> >> >> the application server?
> >> >>
> >> >> Regards
> >> >> Sandeep
>
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D
>
> >> >> To unsubscribe, send email to [email protected] and include i=
n
>
> the
>
> >> body
> >>
> >> >> of the message "signoff CONNECTOR-INTEREST".  For general help, s=
end
> >>
> >> email
> >>
> >> >> to [email protected] and include in the body of the
>
> message "help".
>
> >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> >
> >> =3D
> >>
> >> >To unsubscribe, send email to [email protected] and include in =
the
> >>
> >> body
> >>
> >> >of the message "signoff CONNECTOR-INTEREST".  For general help, sen=
d
> >>
> >> email to
> >>
> >> >[email protected] and include in the body of the message "help"=
=2E
> >
> >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>
> =3D
>
> >To unsubscribe, send email to [email protected] and include in the
>
> body
>
> >of the message "signoff CONNECTOR-INTEREST".  For general help, send
>
> email to
>
> >[email protected] and include in the body of the message "help".

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff CONNECTOR-INTEREST".  For general help, send email to
[email protected] and include in the body of the message "help".