Uploaded image for project: 'IronJacamar'
  1. IronJacamar
  2. JBJCA-762

Use real Connection type in ManagedConnection

    XMLWordPrintable

Details

    Description

      The 'connection' variable in the generated ManagedConnection should be the class of the Connection implementation, like

      private AcmeConnectionImpl connection;
      

      and the following should be added to "associateConnection":

            if (connection == null)
               throw new ResourceException("Null connection handle");
      
            if (!(connection instanceof AcmeConnectionImpl))
               throw new ResourceException("Wrong connection handle");
      
            this.connection = (AcmeConnectionImpl)connection;
      

      Attachments

        Activity

          People

            jeff.zhang_jira Jeff Zhang (Inactive)
            jpederse@redhat.com Jesper Pedersen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: