Modifier and Type | Field and Description |
---|---|
protected int |
ackMode |
protected ConnectionFactory |
connFactory |
protected Destination |
destination |
private static org.apache.commons.logging.Log |
log |
protected List<Message> |
messages |
protected String |
name |
protected String |
password |
protected Session |
sharedSession |
protected boolean |
started |
protected boolean |
stop |
protected boolean |
stopped |
protected String |
user |
Constructor and Description |
---|
MessageCatcher(String name) |
Modifier and Type | Method and Description |
---|---|
void |
clearMessages() |
void |
execute() |
protected Connection |
getConnection() |
int |
getCount() |
List<Message> |
getMessages() |
String |
getName() |
boolean |
isStarted() |
boolean |
isStopped() |
static void |
main(String[] args) |
void |
run() |
MessageCatcher |
setAckMode(int ackMode) |
void |
setConnFactory(ConnectionFactory connFactory) |
void |
setDestination(Destination destination) |
void |
setPassword(String password) |
MessageCatcher |
setSession(Session session) |
void |
setUser(String user) |
void |
stop() |
private static final org.apache.commons.logging.Log log
protected ConnectionFactory connFactory
protected String user
protected String password
protected Session sharedSession
protected Destination destination
protected int ackMode
protected boolean stop
protected boolean stopped
protected boolean started
protected String name
public MessageCatcher(String name)
public String getName()
public void setConnFactory(ConnectionFactory connFactory)
public void setUser(String user)
public void setPassword(String password)
public MessageCatcher setSession(Session session)
public void setDestination(Destination destination)
public MessageCatcher setAckMode(int ackMode)
public int getCount()
public void clearMessages()
public void stop()
public boolean isStopped()
public boolean isStarted()
protected Connection getConnection() throws JMSException
JMSException
public void execute() throws JMSException
JMSException
public static void main(String[] args)
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.