Details
-
Task
-
Resolution: Done
-
Major
-
None
-
None
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;