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

Jeff Zhang (JIRA) jira-events at lists.jboss.org
Mon Mar 19 19:15:47 EDT 2012


     [ https://issues.jboss.org/browse/JBJCA-762?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeff Zhang resolved JBJCA-762.
------------------------------

    Fix Version/s: 1.1.0.Alpha7
       Resolution: Done

    
> 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
>             Fix For: 1.1.0.Alpha7
>
>
> 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