public class HornetQJMSClient extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static org.hornetq.jms.client.HornetQConnectionFactory |
createConnectionFactoryWithHA(DiscoveryGroupConfiguration groupConfiguration,
JMSFactoryType jmsFactoryType)
Create a HornetQConnectionFactory which will receive cluster topology updates from the cluster as servers leave or join and new backups are appointed or removed.
|
static org.hornetq.jms.client.HornetQConnectionFactory |
createConnectionFactoryWithHA(JMSFactoryType jmsFactoryType,
TransportConfiguration... initialServers)
Create a HornetQConnectionFactory which will receive cluster topology updates from the cluster as servers leave or join and new backups are appointed or removed.
|
static org.hornetq.jms.client.HornetQConnectionFactory |
createConnectionFactoryWithoutHA(DiscoveryGroupConfiguration groupConfiguration,
JMSFactoryType jmsFactoryType)
Create a HornetQConnectionFactory which creates session factories from a set of live servers, no HA backup information is propagated to the client
The UDP address and port are used to listen for live servers in the cluster
|
static org.hornetq.jms.client.HornetQConnectionFactory |
createConnectionFactoryWithoutHA(JMSFactoryType jmsFactoryType,
TransportConfiguration... transportConfigurations)
Create a HornetQConnectionFactory which creates session factories using a static list of transportConfigurations, the HornetQConnectionFactory is not updated automatically
as the cluster topology changes, and no HA backup information is propagated to the client
|
static javax.jms.Queue |
createQueue(java.lang.String name)
Creates a client-side representation of a JMS Queue.
|
static javax.jms.Topic |
createTopic(java.lang.String name)
Creates a client-side representation of a JMS Topic.
|
public static org.hornetq.jms.client.HornetQConnectionFactory createConnectionFactoryWithHA(DiscoveryGroupConfiguration groupConfiguration, JMSFactoryType jmsFactoryType)
discoveryAddress
- The UDP group address to listen for updatesdiscoveryPort
- the UDP port to listen for updatespublic static org.hornetq.jms.client.HornetQConnectionFactory createConnectionFactoryWithoutHA(DiscoveryGroupConfiguration groupConfiguration, JMSFactoryType jmsFactoryType)
discoveryAddress
- The UDP group address to listen for updatesdiscoveryPort
- the UDP port to listen for updatespublic static org.hornetq.jms.client.HornetQConnectionFactory createConnectionFactoryWithHA(JMSFactoryType jmsFactoryType, TransportConfiguration... initialServers)
initialServers
- The initial set of servers used to make a connection to the cluster. Each one is tried in turn until a successful connection is made. Once
a connection is made, the cluster topology is downloaded and the rest of the list is ignored.public static org.hornetq.jms.client.HornetQConnectionFactory createConnectionFactoryWithoutHA(JMSFactoryType jmsFactoryType, TransportConfiguration... transportConfigurations)
transportConfigurations
- public static javax.jms.Topic createTopic(java.lang.String name)
name
- the name of the topicpublic static javax.jms.Queue createQueue(java.lang.String name)
name
- the name of the queueCopyright © 2009 Red Hat Inc. All Rights Reserved.