glassfish
  1. glassfish
  2. GLASSFISH-20668

delete-application-ref --cascade does not work

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 4.0_b89_RC5
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Glassfish 4.0 official released version

      Description

      Problem:
      1. In Glassfish v4, when asadmin delete-applicaton-ref --cascade=true is specified, the reference is deleted but connector module and related resources are not deleted. However, in Glassfish v2.1.1 the reference as well as connector module and related resources are deleted with delete-application-ref --cascade=true. GF v4 delete-application-ref --cascade=true should delete the connector module and related resources. Please fix the issue so that --cascade=true option works correctly.

      2. When delete-application-ref --cascade=false is specified, only the reference is deleted. This is same in both GFv4 and GF2.1.1. However, when --cascade=false is specified for undeploy subcommand, undeploy fails with an error message. The behavior is different from delete-application-ref. Please consider fixing delete-application-ref --cascade=false so that both undeploy and delete-application-ref works in the same way.

      To reproduce the problem:
      Please try this with v2.1.1 and v4.

      1. Deploy the attached connector module.
      asadmin deploy genericra.rar

      2. Create resources.
      asadmin create-connector-connection-pool --raname genericra --connectiondefinition javax.jms.QueueConnectionFactory genericra_pool
      asadmin create-connector-resource --poolname genericra_pool genericra_resource
      asadmin create-admin-object --restype javax.jms.Queue --raname genericra genericra_adminobject
      asadmin create-resource-adapter-config genericra

      3. Execute delete-application-ref --cascade=true
      asadmin delete-application-ref --cascade=true genericra

      4. Check if the related resources were deleted.
      asadmin list-connector-connection-pools
      asadmin list-connector-resources
      asadmin list-admin-objects
      asadmin list-resource-adapter-configs

      5. Execute create-application-ref again.
      asadmin create-application-ref genericra

      6. Execute delete-application-ref --cascade=false
      asadmin delete-application-ref --cascade=false genericra
      Deletes successfully without an error.

        Activity

        Hide
        tak09 added a comment -

        https://www.dropbox.com/sh/plb71mxssmh1es0/_2lEILSBfs

        Please download genericra.rar from this site.

        Show
        tak09 added a comment - https://www.dropbox.com/sh/plb71mxssmh1es0/_2lEILSBfs Please download genericra.rar from this site.

          People

          • Assignee:
            michael.y.chen
            Reporter:
            tak09
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: