public final class ConnectionProviderFromContext extends Object implements ConnectionProvider
Constructor and Description |
---|
ConnectionProviderFromContext(String jndiResource)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the connection provider and releases its resources.
|
Connection |
get()
Returns a new
Connection (perhaps from a Connection pool). |
public ConnectionProviderFromContext(String jndiResource)
jndiResource
- the name to lookuppublic Connection get()
ConnectionProvider
Connection
(perhaps from a Connection pool).get
in interface ConnectionProvider
public void close()
ConnectionProvider
close
in interface ConnectionProvider
Copyright © 2014–2015. All rights reserved.