|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.messagelet.SubscriptionManager
public class SubscriptionManager
SubscriptionManager
is a simple command line program that will
create a number of subscriptions and consume messages using just regular
MDO and MessageListener classes.
Constructor Summary | |
---|---|
SubscriptionManager()
|
Method Summary | |
---|---|
protected Messenger |
getMessenger(String name)
|
MessengerManager |
getMessengerManager()
|
javax.servlet.ServletContext |
getServletContext()
Returns the servletContext. |
SubscriptionList |
getSubscriptionList()
Returns the subscriptionList. |
void |
setMessengerManager(MessengerManager manager)
|
void |
setServletContext(javax.servlet.ServletContext servletContext)
Sets the servletContext. |
void |
setSubscriptionList(SubscriptionList subscriptionList)
Sets the subscriptionList. |
protected void |
subscribe()
|
void |
subscribe(Subscription subscription)
|
void |
unsubscribe()
|
void |
unsubscribe(Subscription subscription)
|
protected javax.jms.MessageListener |
wrapInStopWatch(javax.jms.MessageListener listener)
Allows the MessageListener to be wrapped inside a stop watch message listener if required |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SubscriptionManager()
Method Detail |
---|
protected void subscribe() throws javax.jms.JMSException, javax.servlet.ServletException
javax.jms.JMSException
javax.servlet.ServletException
public void subscribe(Subscription subscription) throws javax.jms.JMSException, javax.servlet.ServletException
javax.jms.JMSException
javax.servlet.ServletException
public void unsubscribe() throws javax.jms.JMSException, javax.servlet.ServletException
javax.jms.JMSException
javax.servlet.ServletException
public void unsubscribe(Subscription subscription) throws javax.jms.JMSException, javax.servlet.ServletException
javax.jms.JMSException
javax.servlet.ServletException
public MessengerManager getMessengerManager() throws javax.jms.JMSException
javax.jms.JMSException
public void setMessengerManager(MessengerManager manager)
public SubscriptionList getSubscriptionList()
public void setSubscriptionList(SubscriptionList subscriptionList)
subscriptionList
- The subscriptionList to setpublic javax.servlet.ServletContext getServletContext()
public void setServletContext(javax.servlet.ServletContext servletContext)
servletContext
- The servletContext to setprotected javax.jms.MessageListener wrapInStopWatch(javax.jms.MessageListener listener)
protected Messenger getMessenger(String name) throws javax.jms.JMSException
javax.jms.JMSException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |