simply access getRuntimeInfo().getConnectionProvider().getConnection()
(don't forget to call connectionProvider.closeConnection()!)
Note, runtimeinfo is not avaiable before the configure method have been called. Just something to be aware of.
Reply to this message by going to Community
Start a new discussion in JBoss Tools at Community