|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.mule.providers.AbstractConnector
org.mule.providers.AbstractServiceEnabledConnector
org.mule.providers.jms.JmsConnector
JmsConnector is a JMS 1.0.2b compliant connector that can be
used by a Mule endpoint. The connector supports all Jms functionality
including, topics and queues, durable subscribers, acknowledgement modes,
loacal transactions
| Field Summary | |
String |
password
|
String |
username
|
| Fields inherited from class org.mule.providers.AbstractServiceEnabledConnector |
serviceDescriptor, serviceOverrides |
| Fields inherited from class org.mule.providers.AbstractConnector |
connected, connecting, createDispatcherPerRequest, createMultipleTransactedReceivers, defaultInboundTransformer, defaultOutboundTransformer, defaultResponseTransformer, dispatcherFactory, dispatchers, disposed, disposing, exceptionListener, initialised, logger, name, receivers, serverSide, sessionHandler, started, startOnConnect |
| Fields inherited from interface org.mule.umo.provider.UMOConnector |
INT_VALUE_NOT_SET |
| Constructor Summary | |
JmsConnector()
|
|
| Method Summary | |
void |
close(MessageConsumer consumer)
Closes the MessageConsumer |
void |
close(MessageProducer producer)
Closes the MessageProducer |
void |
close(Session session)
Closes the Session |
void |
close(TemporaryQueue tempQueue)
Closes the TemporaryQueue |
void |
close(TemporaryTopic tempTopic)
Closes the TemporaryTopic |
void |
closeQuietly(MessageConsumer consumer)
Closes the MessageConsumer without throwing an exception (an error message is logged instead). |
void |
closeQuietly(MessageProducer producer)
Closes the MessageProducer without throwing an exception (an error message is logged instead). |
void |
closeQuietly(Session session)
Closes the Session without throwing an exception (an error message is logged instead). |
void |
closeQuietly(TemporaryQueue tempQueue)
Closes the TemporaryQueue without throwing an exception (an error message is logged instead). |
void |
closeQuietly(TemporaryTopic tempTopic)
Closes the TemporaryTopic without throwing an exception (an error message is logged instead). |
protected Connection |
createConnection()
|
protected ConnectionFactory |
createConnectionFactory()
|
protected RedeliveryHandler |
createRedeliveryHandler()
|
void |
doConnect()
|
void |
doDisconnect()
|
protected void |
doDispose()
|
void |
doInitialise()
|
void |
doStart()
|
int |
getAcknowledgementMode()
|
String |
getClientId()
|
Connection |
getConnection()
|
ConnectionFactory |
getConnectionFactory()
|
String |
getConnectionFactoryClass()
|
String |
getConnectionFactoryJndiName()
|
Map |
getConnectionFactoryProperties()
|
JmsSupport |
getJmsSupport()
|
Context |
getJndiContext()
|
String |
getJndiInitialFactory()
|
Map |
getJndiProviderProperties()
|
String |
getJndiProviderUrl()
|
int |
getMaxRedelivery()
|
String |
getPassword()
|
String |
getProtocol()
|
protected Object |
getReceiverKey(org.mule.umo.UMOComponent component,
org.mule.umo.endpoint.UMOEndpoint endpoint)
|
String |
getRedeliveryHandler()
|
org.mule.providers.ReplyToHandler |
getReplyToHandler()
|
Session |
getSession(boolean transacted,
boolean topic)
|
Session |
getSession(org.mule.umo.endpoint.UMOImmutableEndpoint endpoint)
|
Object |
getSessionFactory(org.mule.umo.endpoint.UMOEndpoint endpoint)
|
Session |
getSessionFromTransaction()
|
String |
getSpecification()
|
String |
getUsername()
|
protected void |
initJndiContext()
|
boolean |
isCacheJmsSessions()
|
boolean |
isDurable()
|
boolean |
isForceJndiDestinations()
|
boolean |
isJndiDestinations()
|
boolean |
isNoLocal()
|
boolean |
isPersistentDelivery()
|
boolean |
isRecoverJmsConnections()
|
boolean |
isRemoteSyncEnabled()
|
void |
onNotification(org.mule.umo.manager.UMOServerNotification notification)
|
Message |
preProcessMessage(Message message,
Session session)
This method may be overridden in order to apply pre-processing to the message as soon as it arrives. |
void |
setAcknowledgementMode(int acknowledgementMode)
|
void |
setCacheJmsSessions(boolean cacheJmsSessions)
|
void |
setClientId(String clientId)
|
protected void |
setConnection(Connection connection)
|
void |
setConnectionFactory(ConnectionFactory connectionFactory)
|
void |
setConnectionFactoryClass(String connectionFactoryClass)
|
void |
setConnectionFactoryJndiName(String connectionFactoryJndiName)
|
void |
setConnectionFactoryProperties(Map connectionFactoryProperties)
|
void |
setDurable(boolean durable)
|
void |
setForceJndiDestinations(boolean forceJndiDestinations)
|
void |
setJmsSupport(JmsSupport jmsSupport)
|
void |
setJndiContext(Context jndiContext)
|
void |
setJndiDestinations(boolean jndiDestinations)
|
void |
setJndiInitialFactory(String jndiInitialFactory)
|
void |
setJndiProviderProperties(Map jndiProviderProperties)
|
void |
setJndiProviderUrl(String jndiProviderUrl)
|
void |
setMaxRedelivery(int maxRedelivery)
|
void |
setNoLocal(boolean noLocal)
|
void |
setPassword(String password)
|
void |
setPersistentDelivery(boolean persistentDelivery)
|
void |
setRecoverJmsConnections(boolean recover)
|
void |
setRedeliveryHandler(String redeliveryHandler)
|
void |
setSpecification(String specification)
|
void |
setUsername(String username)
|
boolean |
supportsProperty(String property)
This method may be overridden in case a certain JMS implementation does not support all the standard JMS properties. |
| Methods inherited from class org.mule.providers.AbstractServiceEnabledConnector |
createReceiver, getMessageAdapter, getServiceDescriptor, getServiceOverrides, getStreamMessageAdapter, initFromServiceDescriptor, initialiseFromUrl, setServiceOverrides |
| Methods inherited from class org.mule.providers.AbstractConnector |
checkDisposed, connect, createDispatcher, destroyReceiver, disconnect, dispose, disposeDispatchers, disposeReceivers, doStop, exceptionThrown, fireNotification, getConnectEventId, getConnectionDescription, getConnectionStrategy, getDefaultInboundTransformer, getDefaultOutboundTransformer, getDefaultResponseTransformer, getDispatcher, getDispatcherFactory, getDispatchers, getDispatcherThreadingProfile, getExceptionListener, getName, getReceiver, getReceiver, getReceivers, getReceivers, getReceiverThreadingProfile, getSessionHandler, getSupportedProtocols, handleException, handleWorkException, initialise, isConnected, isCreateDispatcherPerRequest, isCreateMultipleTransactedReceivers, isDisposed, isDisposing, isEnableMessageEvents, isServerSide, isStarted, isUseSingleDispatcherThreadPool, isUseSingleReceiverThreadPool, registerListener, registerSupportedProtocol, registerSupportedProtocolWithotPrefix, setConnectionStrategy, setCreateDispatcherPerRequest, setCreateMultipleTransactedReceivers, setDefaultInboundTransformer, setDefaultOutboundTransformer, setDefaultResponseTransformer, setDispatcherFactory, setDispatcherThreadingProfile, setEnableMessageEvents, setExceptionListener, setName, setReceiverThreadingProfile, setServerSide, setSessionHandler, setSupportedProtocols, setUseSingleDispatcherThreadPool, setUseSingleReceiverThreadPool, startConnector, stopConnector, supportsProtocol, unregisterListener, unregisterSupportedProtocol, workAccepted, workCompleted, workRejected, workStarted |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public String username
public String password
| Constructor Detail |
public JmsConnector()
| Method Detail |
public void doInitialise()
throws org.mule.umo.lifecycle.InitialisationException
org.mule.umo.lifecycle.InitialisationException
protected void initJndiContext()
throws NamingException,
org.mule.umo.lifecycle.InitialisationException
NamingException
org.mule.umo.lifecycle.InitialisationExceptionprotected void setConnection(Connection connection)
protected ConnectionFactory createConnectionFactory()
throws org.mule.umo.lifecycle.InitialisationException,
NamingException
org.mule.umo.lifecycle.InitialisationException
NamingException
protected Connection createConnection()
throws NamingException,
JMSException,
org.mule.umo.lifecycle.InitialisationException
NamingException
JMSException
org.mule.umo.lifecycle.InitialisationException
public void doConnect()
throws org.mule.providers.ConnectException
org.mule.providers.ConnectException
public void doDisconnect()
throws org.mule.providers.ConnectException
org.mule.providers.ConnectException
protected Object getReceiverKey(org.mule.umo.UMOComponent component,
org.mule.umo.endpoint.UMOEndpoint endpoint)
public Object getSessionFactory(org.mule.umo.endpoint.UMOEndpoint endpoint)
public Session getSessionFromTransaction()
public Session getSession(boolean transacted,
boolean topic)
throws JMSException
JMSException
public void doStart()
throws org.mule.umo.UMOException
org.mule.umo.UMOExceptionpublic String getProtocol()
getProtocol in interface org.mule.umo.provider.UMOConnectorprotected void doDispose()
public int getAcknowledgementMode()
public void setAcknowledgementMode(int acknowledgementMode)
acknowledgementMode - The acknowledgementMode to set.public String getConnectionFactoryJndiName()
public void setConnectionFactoryJndiName(String connectionFactoryJndiName)
connectionFactoryJndiName - The connectionFactoryJndiName to set.public boolean isDurable()
public void setDurable(boolean durable)
durable - The durable to set.public boolean isNoLocal()
public void setNoLocal(boolean noLocal)
noLocal - The noLocal to set.public boolean isPersistentDelivery()
public void setPersistentDelivery(boolean persistentDelivery)
persistentDelivery - The persistentDelivery to set.public Map getJndiProviderProperties()
public void setJndiProviderProperties(Map jndiProviderProperties)
jndiProviderProperties - The JNDI providerProperties to set.public Map getConnectionFactoryProperties()
public void setConnectionFactoryProperties(Map connectionFactoryProperties)
connectionFactoryProperties - properties to be set
on the underlying ConnectionFactory.public String getJndiInitialFactory()
public void setJndiInitialFactory(String jndiInitialFactory)
public String getJndiProviderUrl()
public void setJndiProviderUrl(String jndiProviderUrl)
public Session getSession(org.mule.umo.endpoint.UMOImmutableEndpoint endpoint)
throws Exception
Exceptionpublic ConnectionFactory getConnectionFactory()
public void setConnectionFactory(ConnectionFactory connectionFactory)
public String getConnectionFactoryClass()
public void setConnectionFactoryClass(String connectionFactoryClass)
public JmsSupport getJmsSupport()
public void setJmsSupport(JmsSupport jmsSupport)
public String getSpecification()
public void setSpecification(String specification)
public boolean isJndiDestinations()
public void setJndiDestinations(boolean jndiDestinations)
public boolean isForceJndiDestinations()
public void setForceJndiDestinations(boolean forceJndiDestinations)
public Context getJndiContext()
public void setJndiContext(Context jndiContext)
public void setRecoverJmsConnections(boolean recover)
public boolean isRecoverJmsConnections()
protected RedeliveryHandler createRedeliveryHandler()
throws IllegalAccessException,
NoSuchMethodException,
InvocationTargetException,
InstantiationException,
ClassNotFoundException
IllegalAccessException
NoSuchMethodException
InvocationTargetException
InstantiationException
ClassNotFoundExceptionpublic org.mule.providers.ReplyToHandler getReplyToHandler()
public String getUsername()
public void setUsername(String username)
public String getPassword()
public void setPassword(String password)
public Connection getConnection()
public String getClientId()
public void setClientId(String clientId)
public int getMaxRedelivery()
public void setMaxRedelivery(int maxRedelivery)
public String getRedeliveryHandler()
public void setRedeliveryHandler(String redeliveryHandler)
public boolean isRemoteSyncEnabled()
isRemoteSyncEnabled in interface org.mule.umo.provider.UMOConnectorpublic void onNotification(org.mule.umo.manager.UMOServerNotification notification)
onNotification in interface org.mule.umo.manager.UMOServerNotificationListenerpublic boolean isCacheJmsSessions()
public void setCacheJmsSessions(boolean cacheJmsSessions)
public boolean supportsProperty(String property)
public Message preProcessMessage(Message message,
Session session)
throws Exception
message - - the incoming messagesession - - the JMS session
Exception
public void close(MessageProducer producer)
throws JMSException
producer -
JMSExceptionpublic void closeQuietly(MessageProducer producer)
producer -
public void close(MessageConsumer consumer)
throws JMSException
consumer -
JMSExceptionpublic void closeQuietly(MessageConsumer consumer)
consumer -
public void close(Session session)
throws JMSException
session -
JMSExceptionpublic void closeQuietly(Session session)
session -
public void close(TemporaryQueue tempQueue)
throws JMSException
tempQueue -
JMSExceptionpublic void closeQuietly(TemporaryQueue tempQueue)
tempQueue -
public void close(TemporaryTopic tempTopic)
throws JMSException
tempTopic -
JMSExceptionpublic void closeQuietly(TemporaryTopic tempTopic)
tempTopic -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||