|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

java.lang.Objecttoolbox.services.BaseService
toolbox.services.jms.JmsService
toolbox.services.jms.simple.SimpleProducerServiceImpl
public class SimpleProducerServiceImpl
Default implementation of the SimpleProducerService interface.
This implementation can be configured into a Toolbox ServiceRegistry instance.
| Constructor Summary | |
|---|---|
SimpleProducerServiceImpl()
Default constructor. |
|
| Method Summary | |
|---|---|
java.lang.String |
send(byte[] msg,
java.lang.String producer,
java.util.Map props)
Send the given byte array using the named producer. |
java.lang.String |
send(byte[] msg,
java.lang.String producer,
java.lang.String correlation,
java.util.Map props,
javax.jms.Destination dest)
Send the given byte array using the named producer. |
java.lang.String |
send(java.io.InputStream msg,
java.lang.String producer,
java.util.Map props)
Send the content of the given stream using the named producer. |
java.lang.String |
send(java.io.InputStream msg,
java.lang.String producer,
java.lang.String correlation,
java.util.Map props,
javax.jms.Destination dest)
Send the content of the given stream using the named producer. |
java.lang.String |
send(java.util.Map msg,
java.lang.String producer,
java.util.Map props)
Send the given Map instance using the named producer. |
java.lang.String |
send(java.util.Map msg,
java.lang.String producer,
java.lang.String correlation,
java.util.Map props,
javax.jms.Destination dest)
Send the given Map instance using the named producer. |
java.lang.String |
send(java.lang.Object msg,
java.lang.String producer,
java.util.Map props)
Send the given Object instance using the named producer. |
java.lang.String |
send(java.lang.Object msg,
java.lang.String producer,
java.lang.String correlation,
java.util.Map props,
javax.jms.Destination dest)
Send the given Object instance using the named producer. |
java.lang.String |
send(java.lang.String msg,
java.lang.String producer,
java.util.Map props)
Send the given String using the named producer. |
java.lang.String |
send(java.lang.String msg,
java.lang.String producer,
java.lang.String correlation,
java.util.Map props,
javax.jms.Destination dest)
Send the given String using the named producer and destination. |
void |
setDefaultMessageListener(javax.jms.MessageListener listener)
Set the default MessageListener that this service must use to consume reply messages. |
void |
start(java.lang.String producer)
Start the reply consumer of the named producer. |
| Methods inherited from class toolbox.services.jms.JmsService |
|---|
create, destroy, getJmsConsumer, getJmsProducer |
| Methods inherited from class toolbox.services.BaseService |
|---|
getConfigHome, getName, getProperties, getProperty, getXMLProperties, logConfig, logFine, logFiner, logFinest, logInfo, logSevere, logWarning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleProducerServiceImpl()
| Method Detail |
|---|
public java.lang.String send(java.lang.String msg,
java.lang.String producer,
java.lang.String correlation,
java.util.Map props,
javax.jms.Destination dest)
throws ServiceException
send in interface SimpleProducerServicemsg - String containing the message content.producer - String indicating the named producer that
must to used to send the message.correlation - String that must be used as the JMSCorrelationID.props - Map instance containing simple message properties.
Can be null.dest - Target destination.
ServiceException - if the message cannot be sent.
public java.lang.String send(java.lang.String msg,
java.lang.String producer,
java.util.Map props)
throws ServiceException
send in interface SimpleProducerServicemsg - String containing the message content.producer - String indicating the named producer that
must to used to send the message.props - Map instance containing simple message properties.
Can be null.
ServiceException - if the message cannot be sent.
public java.lang.String send(byte[] msg,
java.lang.String producer,
java.lang.String correlation,
java.util.Map props,
javax.jms.Destination dest)
throws ServiceException
send in interface SimpleProducerServicemsg - A byte array containing the message content.producer - String indicating the named producer that
must to used to send the message.correlation - String that must be used as the JMSCorrelationID.props - Map instance containing simple message properties.
Can be null.dest - Target destination.
ServiceException - if the message cannot be sent.
public java.lang.String send(byte[] msg,
java.lang.String producer,
java.util.Map props)
throws ServiceException
send in interface SimpleProducerServicemsg - A byte array containing the message content.producer - String indicating the named producer that
must to used to send the message.props - Map instance containing simple message properties.
Can be null.
ServiceException - if the message cannot be sent.
public java.lang.String send(java.io.InputStream msg,
java.lang.String producer,
java.lang.String correlation,
java.util.Map props,
javax.jms.Destination dest)
throws ServiceException
send in interface SimpleProducerServicemsg - InputStream instance pointing to the message content.producer - String indicating the named producer that
must to used to send the message.correlation - String that must be used as the JMSCorrelationID.props - Map instance containing simple message properties.
Can be null.dest - Target destination.
ServiceException - if the message cannot be sent.
public java.lang.String send(java.io.InputStream msg,
java.lang.String producer,
java.util.Map props)
throws ServiceException
send in interface SimpleProducerServicemsg - InputStream instance pointing to the message content.producer - String indicating the named producer that
must to used to send the message.props - Map instance containing simple message properties.
Can be null.
ServiceException - if the message cannot be sent.
public java.lang.String send(java.util.Map msg,
java.lang.String producer,
java.lang.String correlation,
java.util.Map props,
javax.jms.Destination dest)
throws ServiceException
send in interface SimpleProducerServicemsg - Map instance containing to the message content.producer - String indicating the named producer that
must to used to send the message.correlation - String that must be used as the JMSCorrelationID.props - Map instance containing simple message properties.dest - Target destination.
ServiceException - if the message cannot be sent.
public java.lang.String send(java.util.Map msg,
java.lang.String producer,
java.util.Map props)
throws ServiceException
send in interface SimpleProducerServicemsg - Map instance containing to the message content.producer - String indicating the named producer that
must to used to send the message.props - Map instance containing simple message properties.
ServiceException - if the message cannot be sent.
public java.lang.String send(java.lang.Object msg,
java.lang.String producer,
java.lang.String correlation,
java.util.Map props,
javax.jms.Destination dest)
throws ServiceException
send in interface SimpleProducerServicemsg - Object instance containing to the message content.producer - String indicating the named producer that
must to used to send the message.correlation - String that must be used as the JMSCorrelationID.props - Map instance containing simple message properties.
Can be null.dest - Target destination.
ServiceException - if the message cannot be sent.
public java.lang.String send(java.lang.Object msg,
java.lang.String producer,
java.util.Map props)
throws ServiceException
send in interface SimpleProducerServicemsg - Object instance containing to the message content.producer - String indicating the named producer that
must to used to send the message.props - Map instance containing simple message properties.
Can be null.
ServiceException - if the message cannot be sent.
public void start(java.lang.String producer)
throws ServiceException
start in interface SimpleProducerServiceproducer - String indicating the named producer that must
start listener for replies.
ServiceException - if the producer cannot be started.public void setDefaultMessageListener(javax.jms.MessageListener listener)
setDefaultMessageListener in interface SimpleProducerServicelistener - MessageListener implementation.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||