glassfish
  1. glassfish
  2. GLASSFISH-3261

ResourceAdapter JavaBean of JCA-Connector instantiated twice

    Details

    • Issuezilla Id:
      3,261

      Description

      See forum thread http://forums.java.net/jive/thread.jspa?threadID=27985&tstart=0

      Using Sun Java System Application Server 9.1 (build b41d-beta2) and our JCA
      CICS connector I observed that during startup the application server shows the
      following strange behaviour:

      • the AS instantiates the ResourceAdapter JavaBean of the JCA-connector, sets
        all properties, calls the start() method of the ResourceAdapter JavaBean, and
        initializes the managed connection factories defined in the ra.xml,
      • then the AS stops the JCA-connector by calling the stop() method of the
        ResourceAdapter JavaBean, and
      • immediately creates a new instance of the ResourceAdapter JavaBean

      Reply from Sivakumar Thyagarajan:
      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.

        Activity

        Hide
        Sivakumar Thyagarajan added a comment -

        Requesting Kshitiz to fix. Thanks.

        Show
        Sivakumar Thyagarajan added a comment - Requesting Kshitiz to fix. Thanks.
        Hide
        gfbugbridge added a comment -

        <BT6574837>

        Show
        gfbugbridge added a comment - <BT6574837>
        Hide
        kshitiz_saxena added a comment -

        The RA configs of standalone RARs were being loaded twice as part of
        loadRAConfigs and then again at connector resources loader. Now they will be
        loaded only once at call to loadRAConfigs. Call to connector resources loader
        will not reload RAConfigs.

        checkin-logs:
        Checking in com/sun/enterprise/connectors/util/ResourcesUtil.java;
        /cvs/glassfish/appserv-core/src/java/com/sun/enterprise/connectors/util/ResourcesUtil.java,v
        <-- ResourcesUtil.java
        new revision: 1.10; previous revision: 1.9
        done
        Checking in com/sun/enterprise/server/ApplicationLifecycle.java;
        /cvs/glassfish/appserv-core/src/java/com/sun/enterprise/server/ApplicationLifecycle.java,v
        <-- ApplicationLifecycle.java
        new revision: 1.11; previous revision: 1.10
        done
        Checking in com/sun/enterprise/server/ConnectorResourcesLoader.java;
        /cvs/glassfish/appserv-core/src/java/com/sun/enterprise/server/ConnectorResourcesLoader.java,v
        <-- ConnectorResourcesLoader.java
        new revision: 1.7; previous revision: 1.6
        done

        Show
        kshitiz_saxena added a comment - The RA configs of standalone RARs were being loaded twice as part of loadRAConfigs and then again at connector resources loader. Now they will be loaded only once at call to loadRAConfigs. Call to connector resources loader will not reload RAConfigs. checkin-logs: Checking in com/sun/enterprise/connectors/util/ResourcesUtil.java; /cvs/glassfish/appserv-core/src/java/com/sun/enterprise/connectors/util/ResourcesUtil.java,v <-- ResourcesUtil.java new revision: 1.10; previous revision: 1.9 done Checking in com/sun/enterprise/server/ApplicationLifecycle.java; /cvs/glassfish/appserv-core/src/java/com/sun/enterprise/server/ApplicationLifecycle.java,v <-- ApplicationLifecycle.java new revision: 1.11; previous revision: 1.10 done Checking in com/sun/enterprise/server/ConnectorResourcesLoader.java; /cvs/glassfish/appserv-core/src/java/com/sun/enterprise/server/ConnectorResourcesLoader.java,v <-- ConnectorResourcesLoader.java new revision: 1.7; previous revision: 1.6 done
        Hide
        kshitiz_saxena added a comment -

        Forgot to mark it as fixed

        Show
        kshitiz_saxena added a comment - Forgot to mark it as fixed

          People

          • Assignee:
            kshitiz_saxena
            Reporter:
            ctee
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: