Class PooledConnectionFactoryService
java.lang.Object
org.wildfly.extension.messaging.activemq.jms.PooledConnectionFactoryService
A service which translates a pooled connection factory into a resource adapter driven connection pool
- Author:
- Andy Taylor, Justin Bertram, Jason T. Greene Date: 5/13/11 Time: 2:21 PM
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPooledConnectionFactoryService(String name, List<String> connectors, String discoveryGroupName, String serverName, String jgroupsChannelName, List<PooledConnectionFactoryConfigProperties> adapterParams, ContextNames.BindInfo bindInfo, String txSupport, int minPoolSize, int maxPoolSize, String managedConnectionPoolClassName, Boolean enlistmentTrace, boolean pickAnyConnectors) PooledConnectionFactoryService(String name, List<String> connectors, String discoveryGroupName, String serverName, String jgroupsChannelName, List<PooledConnectionFactoryConfigProperties> adapterParams, ContextNames.BindInfo bindInfo, List<String> jndiAliases, String txSupport, int minPoolSize, int maxPoolSize, String managedConnectionPoolClassName, Boolean enlistmentTrace) -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Get the actual dependency value.installService(org.jboss.as.controller.OperationContext context, String name, String serverName, List<String> connectors, String discoveryGroupName, String jgroupsChannelName, List<PooledConnectionFactoryConfigProperties> adapterParams, ContextNames.BindInfo bindInfo, List<String> jndiAliases, String txSupport, int minPoolSize, int maxPoolSize, String managedConnectionPoolClassName, Boolean enlistmentTrace, ModelNode model) installService(ServiceTarget serviceTarget, String name, String serverName, List<String> connectors, String discoveryGroupName, String jgroupsChannelName, List<PooledConnectionFactoryConfigProperties> adapterParams, ContextNames.BindInfo bindInfo, String txSupport, int minPoolSize, int maxPoolSize, String managedConnectionPoolClassName, Boolean enlistmentTrace, boolean pickAnyConnectors) voidstart(StartContext context) Start the service.voidstop(StopContext context) Stop the service.
-
Field Details
-
CONNECTOR_CLASSNAME
- See Also:
-
CONNECTION_PARAMETERS
- See Also:
-
GROUP_ADDRESS
- See Also:
-
DISCOVERY_INITIAL_WAIT_TIMEOUT
- See Also:
-
GROUP_PORT
- See Also:
-
REFRESH_TIMEOUT
- See Also:
-
DISCOVERY_LOCAL_BIND_ADDRESS
- See Also:
-
JGROUPS_CHANNEL_LOCATOR_CLASS
- See Also:
-
JGROUPS_CHANNEL_NAME
- See Also:
-
JGROUPS_CHANNEL_REF_NAME
- See Also:
-
IGNORE_JTA
- See Also:
-
-
Constructor Details
-
PooledConnectionFactoryService
public PooledConnectionFactoryService(String name, List<String> connectors, String discoveryGroupName, String serverName, String jgroupsChannelName, List<PooledConnectionFactoryConfigProperties> adapterParams, ContextNames.BindInfo bindInfo, List<String> jndiAliases, String txSupport, int minPoolSize, int maxPoolSize, String managedConnectionPoolClassName, Boolean enlistmentTrace) -
PooledConnectionFactoryService
public PooledConnectionFactoryService(String name, List<String> connectors, String discoveryGroupName, String serverName, String jgroupsChannelName, List<PooledConnectionFactoryConfigProperties> adapterParams, ContextNames.BindInfo bindInfo, String txSupport, int minPoolSize, int maxPoolSize, String managedConnectionPoolClassName, Boolean enlistmentTrace, boolean pickAnyConnectors)
-
-
Method Details
-
installService
public static PooledConnectionFactoryService installService(ServiceTarget serviceTarget, String name, String serverName, List<String> connectors, String discoveryGroupName, String jgroupsChannelName, List<PooledConnectionFactoryConfigProperties> adapterParams, ContextNames.BindInfo bindInfo, String txSupport, int minPoolSize, int maxPoolSize, String managedConnectionPoolClassName, Boolean enlistmentTrace, boolean pickAnyConnectors) -
installService
public static PooledConnectionFactoryService installService(org.jboss.as.controller.OperationContext context, String name, String serverName, List<String> connectors, String discoveryGroupName, String jgroupsChannelName, List<PooledConnectionFactoryConfigProperties> adapterParams, ContextNames.BindInfo bindInfo, List<String> jndiAliases, String txSupport, int minPoolSize, int maxPoolSize, String managedConnectionPoolClassName, Boolean enlistmentTrace, ModelNode model) throws org.jboss.as.controller.OperationFailedException - Throws:
org.jboss.as.controller.OperationFailedException
-
getValue
Description copied from interface:ValueGet the actual dependency value.- Specified by:
getValuein interfaceValue<Void>- Returns:
- the actual dependency value
- Throws:
IllegalStateException- if the value is time-sensitive and the current state does not allow retrieval.IllegalArgumentException- when the value cannot be read due to misconfiguration
-
start
Description copied from interface:ServiceStart the service. Do not return until the service has been fully started, unless an asynchronous service start is performed. All injections will be complete before this method is called.If the service start involves any activities that may block, the asynchronous mechanism provided by the
contextshould be used. See theclass javadocfor details.- Specified by:
startin interfaceService- Parameters:
context- the context which can be used to trigger an asynchronous service start- Throws:
StartException- if the service could not be started for some reason
-
stop
Description copied from interface:ServiceStop the service. Do not return until the service has been fully stopped, unless an asynchronous service stop is performed. All injections will remain intact until the service is fully stopped. This method should not throw an exception.If the service start involves any activities that may block, the asynchronous mechanism provided by the
contextshould be used. See theclass javadocfor details.
-