|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JmsProducer
Interface defining a generic JMS producer.
Method Summary | |
---|---|
javax.jms.Message |
createMessage(int type)
Create a message of the specified type. |
void |
destroy()
Destroy this producer. |
java.lang.String |
getName()
Return the name of this producer. |
void |
init(java.lang.String name,
java.util.Map props,
javax.jms.ExceptionListener exLsnr)
Initialise this producer with the given name identifier and configuration properties. |
java.lang.String |
send(javax.jms.Message msg)
Send the given message using this producer. |
java.lang.String |
send(javax.jms.Message msg,
javax.jms.Destination destination)
Send the given message using this producer. |
void |
setMessageListener(javax.jms.MessageListener listener)
If this producer is of type point_to_point use this MessageListener to receive replies. |
void |
start()
Tell this producer to start listening for replies. |
void |
stop()
Tell this producer to stop listening for replies. |
Method Detail |
---|
void init(java.lang.String name, java.util.Map props, javax.jms.ExceptionListener exLsnr) throws JmsException
name
- String containing the name identifier of this producer.props
- Map instance containing the configuration
for this producer.exLsnr
- ExceptionListener instance that this producer must use
to monitor it's broker connection.
JmsException
- if the producer cannot be initialised.java.lang.String getName()
javax.jms.Message createMessage(int type) throws JmsException
type
- int indicating the type of message. Refer to
JmsConstants
.
JmsException
- if the message cannot be created.java.lang.String send(javax.jms.Message msg) throws JmsException
msg
- Message instance to send.
JmsException
- if the message cannot be sent.java.lang.String send(javax.jms.Message msg, javax.jms.Destination destination) throws JmsException
msg
- Message instance to send.destination
- Use this destination as the target queue or topic.
JmsException
- if the message cannot be sent.void setMessageListener(javax.jms.MessageListener listener)
listener
- MessageListener that must be used.void start() throws JmsException
JmsException
void stop() throws JmsException
JmsException
void destroy()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |