[jboss-jira] [JBoss JIRA] (JBJCA-762) Use real Connection type in ManagedConnection

Jesper Pedersen (JIRA) jira-events at lists.jboss.org
Fri Mar 9 11:44:36 EST 2012


Jesper Pedersen created JBJCA-762:
-------------------------------------

             Summary: Use real Connection type in ManagedConnection
                 Key: JBJCA-762
                 URL: https://issues.jboss.org/browse/JBJCA-762
             Project: IronJacamar
          Issue Type: Task
          Components: Code Generator
            Reporter: Jesper Pedersen
            Assignee: Jeff Zhang


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

{code}
private AcmeConnectionImpl connection;
{code}

and the following should be added to "associateConnection":

{code}
      if (connection == null)
         throw new ResourceException("Null connection handle");

      if (!(connection instanceof AcmeConnectionImpl))
         throw new ResourceException("Wrong connection handle");

      this.connection = (AcmeConnectionImpl)connection;
{code}


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list