glassfish
  1. glassfish
  2. GLASSFISH-19039

asadmin delete-jms-resource deletes a non-jms resource

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0_b45
    • Fix Version/s: 4.1
    • Component/s: jms
    • Labels:
      None
    • Environment:

      Windows

      Description

      asadmin delete-jms-resource can delete a resource which is not displayed with asadmin list-jms-resource.

      To reproduce the problem:
      1. Create a connector connection pool with raname jaxr-ra. (Do not use jmsra.)

      C:\>asadmin create-connector-connection-pool --raname=jaxr-ra --connectiondefinition=com.sun.connector.jaxr.JaxrConnectionFactory pooltest
      Connector connection pool pooltest created.
      Command create-connector-connection-pool executed successfully.

      2. The new resource is not listed for the JMS resources.

      C:\>asadmin list-jms-resources
      Nothing to list
      Command list-jms-resources executed successfully.

      3. The new resource is deleted with delete-jms-resource command even if it is not a JMS resource.

      C:\>asadmin delete-jms-resource jms/test
      Connector resource jms/test deleted.
      Command delete-jms-resource executed successfully.

        Activity

        tak09 created issue -
        Hide
        tak09 added a comment -

        Sorry, I missed one step. The below step is necessary after 1.

        C:\>asadmin create-connector-resource --poolname=pooltest jms/test
        Connector resource jms/test created.
        Command create-connector-resource executed successfully.

        Show
        tak09 added a comment - Sorry, I missed one step. The below step is necessary after 1. C:\>asadmin create-connector-resource --poolname=pooltest jms/test Connector resource jms/test created. Command create-connector-resource executed successfully.
        Hide
        David Zhao added a comment - - edited

        Fixed it in asadmin delete-jms-resource command by not allowing to delete non-jmsra connection factory.

        Show
        David Zhao added a comment - - edited Fixed it in asadmin delete-jms-resource command by not allowing to delete non-jmsra connection factory.
        David Zhao made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 4.0.1 [ 16061 ]
        Resolution Fixed [ 1 ]
        Romain Grécourt made changes -
        Fix Version/s 4.1 [ 16387 ]
        Fix Version/s 4.0.1 [ 16061 ]

          People

          • Assignee:
            David Zhao
            Reporter:
            tak09
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: