@Provider
@ApplicationScoped
public class TrmConnectionFactory
extends java.lang.Object
implements java.util.function.Supplier<java.sql.Connection>
| Constructor and Description |
|---|
TrmConnectionFactory() |
| Modifier and Type | Method and Description |
|---|---|
java.sql.Connection |
get()
Get connection to the database configured with OTMM
|
java.sql.Connection |
getXAConn()
Get a connection to the database configured with OTMM
|
@Produces @RequestScoped public java.sql.Connection getXAConn()
public java.sql.Connection get()
get in interface java.util.function.Supplier<java.sql.Connection>Copyright © 2022, Oracle and/or its affiliates.