[CONJ-75] Implement useful jdbc4 abort(Executor arg) method on MySQLConnection Created: 2013-11-15  Updated: 2015-05-22  Resolved: 2014-10-21

Status: Closed
Project: MariaDB Connector/J
Component/s: None
Affects Version/s: 1.1.6, 1.1.8
Fix Version/s: 1.1.8

Type: Task Priority: Major
Reporter: Torsten Krah Assignee: Massimo Siani (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to CONJ-156 SecurityManager being used incorrectly Closed
relates to CONJ-67 MySQLConnection class does not implem... Closed

 Description   

The fix for #67 is to throw an exception - the feature at all would be useful to be implemented like in Connector-J from oracle, as it allows the application to forcefully close connections (e.g. on shutdown time or in case of an critical error).



 Comments   
Comment by Torsten Krah [ 2015-01-29 ]

Hm this one seems not fully resolved - at least i am getting this:

java.security.AccessControlException: access denied ("java.sql.SQLPermission" "callAbort")

I am running without a SecurityManager so of cause i did not and don't want to configure this stuff.
How should this work without?
Maybe don't create one but try to get a existing one:

SecurityManager sm = System.getSecurityManager();
if(sm != null) {
 // check it
} else {
// just abort
}

PS: Don't know how to reopen it - seems if have no button above todo this.

Generated at Thu Feb 08 03:12:58 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.