|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.systemqueue.SystemQueue
public class SystemQueue
The System Queue holds single connection to JMS Provider. It capsulate JMS specific methods and expose API for working with JMS. It receive all needed specific parameters to create JMS Driver, Connection Factories, Queues, Topics. It provides methods for sending and receiving messages to/from JMS Provider.
Constructor Summary | |
---|---|
protected |
SystemQueue(java.lang.String aJmsDriverName,
java.lang.String username,
java.lang.String password,
java.util.Hashtable aDriverParams)
Constructor for the SystemQueueEngine object |
Method Summary | |
---|---|
byte[] |
getBytesMessage(java.lang.String queueName,
int aTimeOut)
Gets a BytesMessage from the System Queue. |
Entry |
getEntry(java.lang.String aQueueName,
int aTimeOut)
Gets an Entry object from the System Queue |
javax.jms.Message |
getMessage(java.lang.String aQueueName,
int aTimeOut)
Gets a Message from the System Queue |
javax.jms.QueueConnectionFactory |
getQueueConnectionFactory()
Public getter of QueueConnectionFactory |
java.lang.String |
getTextMessage(java.lang.String aQueueName,
int aTimeOut)
Gets a TextMessage from the System Queue |
javax.jms.TopicConnectionFactory |
getTopicConnectionFactory()
Public getter of TopicConnectionFactory |
void |
putBytesMessage(java.lang.String aQueueName,
byte[] aMessageBytes)
Puts a BytesMessage to the System Queue. |
void |
putEntry(java.lang.String aQueueName,
Entry aEntry)
Puts an Entry object to the System Queue |
void |
putMessage(java.lang.String aQueueName,
javax.jms.Message aMessage)
Puts a Message to the System Queue |
void |
putTextMessage(java.lang.String aQueueName,
java.lang.String aMessageText)
Puts a TextMessage to the System Queue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected SystemQueue(java.lang.String aJmsDriverName, java.lang.String username, java.lang.String password, java.util.Hashtable aDriverParams) throws java.lang.Exception
aJmsDriverName
- the JMS Driver classnameaDriverParams
- properties used for JMS Driver initialization
java.lang.Exception
- if JMS Driver cannot be initialized and usedMethod Detail |
---|
public javax.jms.QueueConnectionFactory getQueueConnectionFactory() throws java.lang.Exception
java.lang.Exception
- i f QueueConnectionFactory cannot be obtainedpublic javax.jms.TopicConnectionFactory getTopicConnectionFactory() throws java.lang.Exception
java.lang.Exception
- if TopicConnectionFactory cannot be obtainedpublic javax.jms.Message getMessage(java.lang.String aQueueName, int aTimeOut) throws java.lang.Exception
aQueueName
- queue name from what the message is getaTimeOut
- Specifies the maximum time of waiting for a new message
java.lang.Exception
- if an error occurs during receivingpublic void putMessage(java.lang.String aQueueName, javax.jms.Message aMessage) throws java.lang.Exception
aQueueName
- queue name to what the message have to be sentaMessage
- object that have to be sent
java.lang.Exception
- if an error occurs during sendingpublic java.lang.String getTextMessage(java.lang.String aQueueName, int aTimeOut) throws java.lang.Exception
aQueueName
- queue name from what the message is getaTimeOut
- Specifies the maximum time of waiting for a new message
java.lang.Exception
- if an error occurs during receivingpublic void putTextMessage(java.lang.String aQueueName, java.lang.String aMessageText) throws java.lang.Exception
aQueueName
- queue name to what the message have to be sentaMessageText
- The text of the message to be sent
java.lang.Exception
- if an error occurs during sendingpublic byte[] getBytesMessage(java.lang.String queueName, int aTimeOut) throws java.lang.Exception
queueName
- queue name from what the message is getaTimeOut
- Specifies the maximum time of waiting for a new message
java.lang.Exception
- if an error occurs during receivingpublic void putBytesMessage(java.lang.String aQueueName, byte[] aMessageBytes) throws java.lang.Exception
aQueueName
- Queue name to what the message have to be sent.aMessageBytes
- The bytes of the message to be sent.
java.lang.Exception
- if an error occurs during sendingpublic Entry getEntry(java.lang.String aQueueName, int aTimeOut) throws java.lang.Exception
aQueueName
- queue name from what the message is getaTimeOut
- Specifies the maximum time of waiting for a new message
java.lang.Exception
- if an error occurs during receivingpublic void putEntry(java.lang.String aQueueName, Entry aEntry) throws java.lang.Exception
aQueueName
- queue name to what the message have to be sentaEntry
- The Entry to be sent
java.lang.Exception
- if an error occurs during sending
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |