|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openeai.OpenEaiObject
org.openeai.jms.producer.MessageProducer
public abstract class 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 | |
|---|---|
static java.lang.String |
COMMAND_NAME
|
protected java.util.HashMap |
m_messages
|
static java.lang.String |
MESSAGE_ID
|
static java.lang.String |
MESSAGE_NAME
|
protected static java.lang.String |
NON_PERSISTENT_DELIVERY
|
protected static java.lang.String |
PERSISTENT_DELIVERY
|
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()
Deprecated. as of OpenEAI 4.0 use org.openeai.transport.ProducerId instead |
ProducerId |
getProducerId(java.lang.String dummyParm)
Returns the ProducerId object associated to this producer. |
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)
Deprecated. as of OpenEAI 4.0 use org.openeai.transport.ProducerId instead |
void |
setProducerId(ProducerId producerId)
Sets the ProducerId object associated to this producer. |
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. |
abstract boolean |
start()
|
abstract void |
stop()
|
| Methods inherited from class org.openeai.OpenEaiObject |
|---|
getAppName, getDebug, getFromAddr, 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
protected static java.lang.String PERSISTENT_DELIVERY
protected static java.lang.String NON_PERSISTENT_DELIVERY
public static java.lang.String MESSAGE_ID
public static java.lang.String COMMAND_NAME
public static java.lang.String MESSAGE_NAME
| Constructor Detail |
|---|
public MessageProducer()
| Method Detail |
|---|
public final void setProducerName(java.lang.String name)
name - String name of the producer.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)
principal - String the LDAP principalProducerConfigpublic final java.lang.String getSecurityPrincipal()
ProducerConfigpublic final void setSecurityCredentials(java.lang.String credentials)
credentials - String the LDAP credentialsProducerConfigpublic final java.lang.String getSecurityCredentials()
ProducerConfigpublic ProducerId getProducerId()
public void setProducerId(ProducerId producerId)
org.openeai.jms.producer.ProducerId - old producer idpublic ProducerId getProducerId(java.lang.String dummyParm)
NOTE: This is a temporary method that will be deprecated in the next release of the foundation. The method is being
dummyParm - a parameter used just to make this method declaration different
than the old deprecated method. Once the old getProducerId() method is completely
removed, this method will be deprecated and a new getProducerId() method will be
used inplace of the old getProducerId() method. Finally, this method will
be completely removed in future releases (tentatively Release 6.0).
public void setProducerId(ProducerId producerId)
org.openeai.transport.ProducerId - old producer idpublic 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 abstract boolean start()
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic abstract void stop()
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.
name - String name of the Connection Factory.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.
name - String the destination (Queue or Topic) name.ProducerConfigpublic final void setUserName(java.lang.String in)
in - String broker user nameProducerConfigpublic final java.lang.String getUserName()
ProducerConfigpublic final void setPassword(java.lang.String in)
in - String broker user nameProducerConfigpublic final java.lang.String getPassword()
ProducerConfigpublic final void setProviderUrl(java.lang.String in)
in - String the URL that resolves to the location of the JMS Administered Objects
(ConnectionFactories and Destinations).ProducerConfigpublic final java.lang.String getProviderUrl()
ProducerConfigpublic final void setInitialContextFactory(java.lang.String in)
Typically, this is com.sun.jndi.ldap.LdapCtxFactory.
in - String initial context factory class name.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
javax.naming.NamingException
protected void init(java.util.Properties props)
throws java.io.IOException
props - Properties the Java properties object retrieved from the ProducerConfig
object built from the ProducerConfig Element in the gateway's deployment document.
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 | |||||||||