users@glassfish.java.net

Re: Glassfish V2: ResourceAdapter JavaBean of JCA-Connector instantiated twice

From: Sivakumar Thyagarajan <Sivakumar.Thyagarajan_at_Sun.COM>
Date: Wed, 27 Jun 2007 13:07:37 +0530

Hi Clemens
[copying Kshitiz]

I think this is a great catch. Thanks a lot for this. Could you raise a
GlassFish issue for this?

This issue seems to appear only when a resource adapter config is
present. What seems to happen is we loadRAConfigs during startup and
this results in creating RA and configuring it with RA config properties
and then load all connector resources. These connector resources again
includes RA configs and hence we reload the RA to set the new RA config
properties.

Please raise an issue and we shall fix this post beta-3. If this issue
is stopping you, the only workaround currently is not to have RA configs
defined.

Thanks
--Siva.



glassfish_at_javadesktop.org wrote:
> Thank you for your quick response. Here is the stack trace from the stop() method:
>
> [#|2007-06-27T07:18:44.330+0200|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;_RequestID=58376657-e3a7-4f7a-9df8-c13d21d3d379;|
> java.lang.Throwable
> at net.fsc.jca.beanconnect.ResourceAdapterJBImpl.stop(ResourceAdapterJBImpl.java:683)
> at com.sun.enterprise.connectors.ActiveInboundResourceAdapter.destroy(ActiveInboundResourceAdapter.java:321)
> at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.stopAndRemoveActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:483)
> at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.reCreateActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:455)
> at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.addResourceAdapterConfig(ResourceAdapterAdminServiceImpl.java:496)
> at com.sun.enterprise.connectors.ConnectorRuntime.addResourceAdapterConfig(ConnectorRuntime.java:564)
> at com.sun.enterprise.resource.ResourceAdapterConfigDeployer.deployResource(ResourceAdapterConfigDeployer.java:50)
> at com.sun.enterprise.server.ResourcesLoader.load(ResourcesLoader.java:86)
> at com.sun.enterprise.server.ConnectorResourcesLoader.load(ConnectorResourcesLoader.java:81)
> at com.sun.enterprise.server.ApplicationLifecycle.onStartup(ApplicationLifecycle.java:187)
> at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:332)
> at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:112)
> at com.sun.enterprise.server.PEMain.run(PEMain.java:381)
> at com.sun.enterprise.server.PEMain.main(PEMain.java:308)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at com.sun.enterprise.server.PELaunch.main(PELaunch.java:274)
> |#]
>
> Clemens
> [Message sent by forum member 'ctee' (ctee)]
>
> http://forums.java.net/jive/thread.jspa?messageID=224134
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>