setResourceAdapter method in ManagedConnectionFactory

Sandeep Rajpathak <[email protected]> Thu, 7 Aug 2003 19:28:40 +0530
Newsgroups gmane.comp.java.sun.connector
Message-ID <023101c35cec$0342c2d0$5d09a8c0@rsandeep>
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 Application Server during the startup operation. However in the implementation that I have done, this does not seem to be happening. In fact there is another method called "setResourceAdapter" present in the ActivationSpec interface which the implementation class overrides, but even this one is not getting 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 Singleton 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

===========================================================================
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".