|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.openeai.OpenEaiObject
|
+--org.openeai.jms.producer.MessageProducer
The ancestor class for PubSub and PointToPoint producers. These are the counterparts to OpenEAI MessageConsumer. These classes (PubSub and PointToPoint Producers) produce messages to and potentially handle responses from OpenEAI MessageConsumers (PointToPoint and PubSub Producers)
ProducerConfig,
MessageConsumer| Field Summary | |
protected java.util.HashMap |
m_messages
|
protected static java.lang.String |
STARTED
|
protected static java.lang.String |
STOPPED
|
protected static java.lang.String |
STOPPING
|
| Fields inherited from class org.openeai.OpenEaiObject |
logger |
| Constructor Summary | |
MessageProducer()
|
|
| Method Summary | |
java.lang.String |
getAcknowledgementMode()
|
java.lang.String |
getConnectionFactoryName()
Returns the connection factory name (QueueConnectionFactory or TopicConnectionFactory) that this producer should retrieve and use to initialize its connection to the broker with. |
java.lang.String |
getDefaultCommandName()
|
java.lang.String |
getDeliveryMode()
|
java.lang.String |
getDestinationName()
Returns the destination name (Queue or Topic) that this Producer should connect to and consume from. |
protected javax.naming.directory.DirContext |
getInitialContext()
Establishes and returns an InitialContext to be used by the calling application to retrieve ConnectionFactories and Destination objects via JNDI. |
java.lang.String |
getInitialContextFactory()
Returns the class name of the JNDI context factory that will be used to retrieve the JMS administered objects from a Directory Server or wherever the administered objects are stored. |
int |
getMessageSeq()
|
java.lang.String |
getPassword()
Sets the broker user password that should be used when establishing a connection with the broker. |
ProducerId |
getProducerId()
|
java.lang.String |
getProducerIdUrl()
|
java.lang.String |
getProducerName()
Returns the name of this producers as specified in its configuration information. |
java.lang.String |
getProducerStatus()
|
java.lang.String |
getProviderUrl()
Returns the location where the administered objects can be retrieved from. |
java.lang.String |
getSecurityCredentials()
Returns the LDAP security credentials (password) this producer should use when connecting to the directory server to retrieve JMS administered objects (ConnectionFactories and Destinations). |
java.lang.String |
getSecurityPrincipal()
Returns the LDAP security principal this producer should use when connecting to the directory server to retrieve JMS administered objects (ConnectionFactories and Destinations). |
boolean |
getStartOnInitialization()
Returns a boolean indicating whether or not this producer should be started (connected to the broker and ready to produce messages) when it is initialized. |
boolean |
getTransacted()
|
java.lang.String |
getUserName()
Returns the broker user name that should be used when establishing a connection with the broker. |
int |
incrementMessageSequence()
|
protected void |
init(java.util.Properties props)
Takes the Properties object contained within the ProducerConfig object passed to the constructor of this Producer and sets all the appropriate instance variables on this producer during initialization. |
boolean |
isStarted()
|
void |
setAcknowledgementMode(java.lang.String mode)
|
void |
setConnectionFactoryName(java.lang.String name)
Sets the connection factory name (QueueConnectionFactory or TopicConnectionFactory) that this producer should retrieve and use to initialize its connection to the broker with. |
void |
setDefaultCommandName(java.lang.String defaultCommand)
|
void |
setDeliveryMode(java.lang.String mode)
|
void |
setDestinationName(java.lang.String name)
Sets the destination name (Queue or Topic) that this Producer should connect to and consume from. |
void |
setInitialContextFactory(java.lang.String in)
Sets the class name of the JNDI context factory that will be used to retrieve the JMS administered objects from a Directory Server or wherever the administered objects are stored. |
void |
setMessageSeq(int seq)
|
void |
setPassword(java.lang.String in)
Sets the broker user password that should be used when establishing a connection with the broker. |
void |
setProducerId(ProducerId producerId)
|
void |
setProducerIdUrl(java.lang.String url)
|
void |
setProducerName(java.lang.String name)
Sets the name of this producers as specified in its configuration information. |
void |
setProducerStatus(java.lang.String status)
|
void |
setProviderUrl(java.lang.String in)
Sets the location where the administered objects can be retrieved from. |
void |
setSecurityCredentials(java.lang.String credentials)
Sets the LDAP security credentials (password) this producer should use when connecting to the directory server to retrieve JMS administered objects (ConnectionFactories and Destinations). |
void |
setSecurityPrincipal(java.lang.String principal)
Sets the LDAP security principal this producer should use when connecting to the directory server to retrieve JMS administered objects (ConnectionFactories and Destinations). |
void |
setStartOnInitialization(boolean start)
Sets a boolean indicating whether or not this producer should be started (connected to the broker and ready to produce messages) when it is initialized. |
void |
setTransacted(boolean trans)
|
void |
setUserName(java.lang.String in)
Sets the broker user name that should be used when establishing a connection with the broker. |
| Methods inherited from class org.openeai.OpenEaiObject |
addLog4jProperty, getAppName, getDebug, getFromAddr, getLog4jProperties, getMailHost, getMailService, getProperties, getToAddr, initializeLog4j, initializeLog4j, initializeLog4j, setAppName, setDebug, setFromAddr, setMailHost, setMailService, setProperties, setToAddr |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.HashMap m_messages
protected static java.lang.String STOPPED
protected static java.lang.String STOPPING
protected static java.lang.String STARTED
| Constructor Detail |
public MessageProducer()
| Method Detail |
public final void setProducerName(java.lang.String name)
public final java.lang.String getProducerName()
public final void setAcknowledgementMode(java.lang.String mode)
public final java.lang.String getAcknowledgementMode()
public final void setDeliveryMode(java.lang.String mode)
public final java.lang.String getDeliveryMode()
public final void setTransacted(boolean trans)
public final boolean getTransacted()
public final void setDefaultCommandName(java.lang.String defaultCommand)
public final java.lang.String getDefaultCommandName()
public final void setSecurityPrincipal(java.lang.String principal)
ProducerConfigpublic final java.lang.String getSecurityPrincipal()
ProducerConfigpublic final void setSecurityCredentials(java.lang.String credentials)
ProducerConfigpublic final java.lang.String getSecurityCredentials()
ProducerConfigpublic final ProducerId getProducerId()
public final void setProducerId(ProducerId producerId)
public final boolean getStartOnInitialization()
ProducerConfigpublic final void setStartOnInitialization(boolean start)
ProducerConfigpublic final java.lang.String getProducerIdUrl()
public final void setProducerIdUrl(java.lang.String url)
public final int incrementMessageSequence()
public final void setMessageSeq(int seq)
public final int getMessageSeq()
public final java.lang.String getProducerStatus()
public final void setProducerStatus(java.lang.String status)
public final boolean isStarted()
public final java.lang.String getConnectionFactoryName()
See JMS Specification for a description of Connection Factories.
ProducerConfigpublic final void setConnectionFactoryName(java.lang.String name)
See JMS Specification for a description of Connection Factories.
ProducerConfigpublic final java.lang.String getDestinationName()
See JMS Specification for a description of Destinations.
ProducerConfigpublic final void setDestinationName(java.lang.String name)
See JMS Specification for a description of Destinations.
ProducerConfigpublic final void setUserName(java.lang.String in)
ProducerConfigpublic final java.lang.String getUserName()
ProducerConfigpublic final void setPassword(java.lang.String in)
ProducerConfigpublic final java.lang.String getPassword()
ProducerConfigpublic final void setProviderUrl(java.lang.String in)
ProducerConfigpublic final java.lang.String getProviderUrl()
ProducerConfigpublic final void setInitialContextFactory(java.lang.String in)
Typically, this is com.sun.jndi.ldap.LdapCtxFactory.
ConsumerConfigpublic final java.lang.String getInitialContextFactory()
Typically, this is com.sun.jndi.ldap.LdapCtxFactory.
ProducerConfig
protected javax.naming.directory.DirContext getInitialContext()
throws javax.naming.NamingException
Properties included:
javax.naming.NamingException
protected void init(java.util.Properties props)
throws java.io.IOException
java.io.IOException - if errors occur populating the instance variables from the
Properties object.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||