public class ResourceLoader extends java.lang.Object implements Service
ResourceLoader relies on the optional bitronix.tm.resource.configuration propery to load the
JDBC datasources (PoolingDataSource) and JMS connection factories
(PoolingConnectionFactory) configuration file and create the resources.
When bitronix.tm.resource.configuration is not specified, ResourceLoader is disabled and resources
should be manually created.
| Constructor and Description |
|---|
ResourceLoader() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,XAResourceProducer> |
getResources()
Get a Map with the configured uniqueName as key and
XAResourceProducer as value. |
int |
init()
Initialize the ResourceLoader and load the resources configuration file specified in
bitronix.tm.resource.configuration property. |
void |
shutdown()
Shutdown the service and free all held resources.
|
public java.util.Map<java.lang.String,XAResourceProducer> getResources()
XAResourceProducer as value.XAResourceProducer as value.public int init()
bitronix.tm.resource.configuration property.Copyright © 2006-2021 Bitronix Software. All Rights Reserved.