public class HornetQJMSClient extends Object
Modifier and Type | Method and Description |
---|---|
static 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 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 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 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 Queue |
createQueue(String name)
Creates a client-side representation of a JMS Queue.
|
static Topic |
createTopic(String name)
Creates a client-side representation of a JMS Topic.
|
public static HornetQConnectionFactory createConnectionFactoryWithHA(DiscoveryGroupConfiguration groupConfiguration, JMSFactoryType jmsFactoryType)
discoveryAddress
- The UDP group address to listen for updatesdiscoveryPort
- the UDP port to listen for updatespublic static HornetQConnectionFactory createConnectionFactoryWithoutHA(DiscoveryGroupConfiguration groupConfiguration, JMSFactoryType jmsFactoryType)
discoveryAddress
- The UDP group address to listen for updatesdiscoveryPort
- the UDP port to listen for updatespublic static 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 HornetQConnectionFactory createConnectionFactoryWithoutHA(JMSFactoryType jmsFactoryType, TransportConfiguration... transportConfigurations)
transportConfigurations
- public static Topic createTopic(String name)
name
- the name of the topicCopyright © 2012 JBoss by Red Hat. All Rights Reserved.