public class BamJmsService extends SimpleActor
Constructor and Description |
---|
BamJmsService() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
init() |
void |
message(java.lang.String to,
java.lang.String from,
java.io.Serializable value)
Sends to a queue
|
void |
setConnectionFactory(ConnectionFactory factory)
Sets the connection factory
|
void |
setDestination(Destination queue)
Sets the destination
|
getActor, getAddress, getBroker, getMailbox, getSender, setAddress, setBroker, setMailbox
isClosed, messageError, query, queryError, queryResult, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isClosed, messageError, query, queryError, queryResult
public void setConnectionFactory(ConnectionFactory factory)
public void setDestination(Destination queue)
@PostConstruct public void init() throws JMSException
JMSException
public void message(java.lang.String to, java.lang.String from, java.io.Serializable value)
message
in interface MessageStream
message
in class AbstractMessageStream
to
- the target actor's addressfrom
- the source actor's addressvalue
- the message payload@PreDestroy public void close()