|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.yajul.jms.JmsHelper
public class JmsHelper
Utility methods for JMS.
User: Joshua Davis
Date: Sep 9, 2007
Time: 10:41:52 AM
Constructor Summary | |
---|---|
JmsHelper()
|
Method Summary | |
---|---|
static void |
close(javax.jms.MessageConsumer consumer,
javax.jms.Session session,
javax.jms.Connection conn)
Clean up JMS consumer objects. |
static void |
close(javax.jms.MessageProducer sender,
javax.jms.Session session,
javax.jms.Connection conn)
Clean up JMS producer objects. |
static java.lang.Long |
getNullableLongProperty(javax.jms.Message m,
java.lang.String property)
|
static java.lang.Object |
getObject(javax.jms.Message message)
Returns the object in the JMS message if it's an object message. |
static java.lang.String |
getStringProperty(javax.jms.Message m,
java.lang.String property)
|
static boolean |
messagePropertyNullOrEqualTo(javax.jms.Message message,
java.lang.String propertyName,
java.lang.Long aLong)
|
static javax.jms.Message |
peek(javax.jms.Session session,
javax.jms.Destination destination)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JmsHelper()
Method Detail |
---|
public static void close(javax.jms.MessageProducer sender, javax.jms.Session session, javax.jms.Connection conn)
sender
- the sendersession
- the session (may be null)conn
- the connection (may be null)public static void close(javax.jms.MessageConsumer consumer, javax.jms.Session session, javax.jms.Connection conn)
consumer
- the consumersession
- the session (may be null)conn
- the connection (may be null)public static java.lang.Object getObject(javax.jms.Message message)
message
- the JMS message
public static java.lang.Long getNullableLongProperty(javax.jms.Message m, java.lang.String property) throws javax.jms.JMSException
javax.jms.JMSException
public static java.lang.String getStringProperty(javax.jms.Message m, java.lang.String property) throws javax.jms.JMSException
javax.jms.JMSException
public static javax.jms.Message peek(javax.jms.Session session, javax.jms.Destination destination) throws javax.jms.JMSException
javax.jms.JMSException
public static boolean messagePropertyNullOrEqualTo(javax.jms.Message message, java.lang.String propertyName, java.lang.Long aLong)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |