|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectflex.messaging.services.messaging.adapters.JMSProxy
public abstract class JMSProxy
The JMSProxy is the superclass for all producers and consumers on both topics and queues. This class contains shared behavior between producers and consumers.
| Nested Class Summary | |
|---|---|
static class |
JMSProxy.ConnectionCredentials
A static inner class for connection credentials that is passed to JMS connection factory when a JMS connection is created. |
| Constructor Summary | |
|---|---|
JMSProxy()
Creates a new JMSProxy default default acknowledge mode of
javax.jms.Session.AUTO_ACKNOWLEDGE. |
|
| Method Summary | |
|---|---|
int |
getAcknowledgeMode()
Returns the acknowledge mode used by the JMSProxy. |
JMSProxy.ConnectionCredentials |
getConnectionCredentials()
Returns the connection credentials used while creating JMS connections. |
String |
getConnectionFactoryName()
Returns the connection factory name. |
String |
getDestinationJndiName()
Returns the JNDI name of the JMS destination that JMSProxy talks to. |
Hashtable |
getInitialContextEnvironment()
Returns the initial-context-environment property. |
void |
initialize(JMSSettings settings)
Initialize with settings from the JMS adapter. |
void |
setAcknowledgeMode(int acknowledgeMode)
Sets the acknowledge mode used by the JMSProxy. |
void |
setConnectionCredentials(JMSProxy.ConnectionCredentials connectionCredentials)
Sets the connection credentials. |
void |
setConnectionFactoryName(String connectionFactoryName)
Sets the connection factory name. |
void |
setDestinationJndiName(String destinationJndiName)
Sets the JNDI name of the JMS destination that JMSProxy talks to. |
void |
setInitialContextEnvironment(Hashtable env)
Sets the initial-context-environment property. |
void |
start()
Starts the JMSProxy. |
void |
stop()
Stops the JMSProxy by stopping its associated session
and connection. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JMSProxy()
JMSProxy default default acknowledge mode of
javax.jms.Session.AUTO_ACKNOWLEDGE.
| Method Detail |
|---|
public void initialize(JMSSettings settings)
settings - JMS settings to use for initialization.
public void start()
throws NamingException,
javax.jms.JMSException
JMSProxy. The default implementation verifies
that JMSProxy is in a valid state to be started and then
initializes JNDI context and connection factory for JMS. Subclasses
should call super.start.
NamingException - The thrown naming exception.
javax.jms.JMSException - The thrown JMS exception.public void stop()
JMSProxy by stopping its associated session
and connection.
public int getAcknowledgeMode()
JMSProxy.
JMSProxy.public void setAcknowledgeMode(int acknowledgeMode)
JMSProxy. Valid values
are javax.jms.Session.AUTO_ACKNOWLEDGE, javax.jms.Session.CLIENT_ACKNOWLEDGE,
javax.jms.Session.DUPS_OK_ACNOWLEDGE. This property is optional and
defaults to javax.jms.Session.AUTO_ACKNOWLEDGE.
acknowledgeMode - An int representing the acknowledge mode used.public String getConnectionFactoryName()
public void setConnectionFactoryName(String connectionFactoryName)
connectionFactoryName - The connection factory name.public JMSProxy.ConnectionCredentials getConnectionCredentials()
public void setConnectionCredentials(JMSProxy.ConnectionCredentials connectionCredentials)
connectionCredentials - The connection credentials.public String getDestinationJndiName()
JMSProxy talks to.
public void setDestinationJndiName(String destinationJndiName)
JMSProxy talks to.
destinationJndiName - The JNDI name of the JMS destination.public Hashtable getInitialContextEnvironment()
initial-context-environment property.
initial-context-environment.public void setInitialContextEnvironment(Hashtable env)
initial-context-environment property. This property
is optional. This property should be change after startup.
env - A Hashtable of the initial-context-environment.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/blazeds/1/javadoc/flex/messaging/services/messaging/adapters/JMSProxy.html