public interface ConnectionManager
Modifier and Type | Method and Description |
---|---|
Object |
getConnection()
Obtain a connection based purely on the configuration.
|
Object |
getConnection(String principal,
String credential)
Obtain a connection based on the configuration but override the
principal and credential.
|
Object getConnection() throws Exception
Exception
Object getConnection(String principal, String credential) throws Exception
principal
- - The principal to use when connecting.credential
- - The credential to use when connecting.Exception
Copyright © 2013 JBoss by Red Hat. All rights reserved.