Modifier and Type | Field and Description |
---|---|
private Connection |
connection |
private String |
jndiPrefix |
private static org.apache.commons.logging.Log |
log |
private Queue |
managementQueue |
Constructor and Description |
---|
JMSAdminHornetQ(ConnectionFactory connFactory,
String adminUser,
String adminPassword) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
private static String |
concat(String name1,
String name2)
Concatenates two JNDI names making sure there is a single "/" character
separating them
|
JMSAdmin |
deployDestination(String method,
String name,
String jndiName) |
JMSAdmin |
deployQueue(String name,
String jndiName) |
JMSAdmin |
deployTopic(String name,
String jndiName) |
JMSAdmin |
destroyDestination(String method,
String name) |
JMSAdmin |
destroyQueue(String name) |
JMSAdmin |
destroyTopic(String name) |
JMSAdmin |
setJNDIPrefix(String prefix)
Sets a prefix to add to any JNDI name registered.
|
private static final org.apache.commons.logging.Log log
private Connection connection
private Queue managementQueue
private String jndiPrefix
public JMSAdminHornetQ(ConnectionFactory connFactory, String adminUser, String adminPassword) throws JMSException
JMSException
public JMSAdmin setJNDIPrefix(String prefix)
JMSAdmin
setJNDIPrefix
in interface JMSAdmin
public void close() throws JMSException
close
in interface JMSAdmin
JMSException
private static String concat(String name1, String name2)
name1
- name2
- public JMSAdmin deployDestination(String method, String name, String jndiName) throws Exception
Exception
public JMSAdmin destroyDestination(String method, String name) throws Exception
Exception
public JMSAdmin deployTopic(String name, String jndiName) throws Exception
deployTopic
in interface JMSAdmin
Exception
public JMSAdmin deployQueue(String name, String jndiName) throws Exception
deployQueue
in interface JMSAdmin
Exception
public JMSAdmin destroyTopic(String name) throws Exception
destroyTopic
in interface JMSAdmin
Exception
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.