Skip to content

Commit

Permalink
Keep reference to AS400 object to prevent object from being finalized
Browse files Browse the repository at this point in the history
and closing underlying connection.

Signed-off-by: John Eberhard <[email protected]>
  • Loading branch information
jeber-ibm committed Oct 17, 2024
1 parent 1996c5c commit f72d48d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3550,6 +3550,7 @@ public void setProperties (JDDataSourceURL dataSourceUrl, JDProperties propertie
as400.connectService (AS400.DATABASE);
}
systemName_ = as400.getSystemName();
as400PublicClassObj_ = as400; /* Keep a reference so that the AS400 object is not garbage collected and finalized */
}
catch (AS400SecurityException e)
{ //@D5C
Expand Down

0 comments on commit f72d48d

Please sign in to comment.