|
||||||||||
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.jms.JmsConnector
org.mule.providers.oracle.jms.AbstractOracleJmsConnector
public abstract class AbstractOracleJmsConnector
Field Summary | |
---|---|
protected String |
payloadFactory
|
static String |
PAYLOADFACTORY_PROPERTY
If a queue's payload is an ADT (Oracle Advanced Data Type), the appropriate payload factory must be specified in the endpoint's properties. |
Fields inherited from class org.mule.providers.jms.JmsConnector |
---|
password, username |
Fields inherited from interface org.mule.umo.provider.UMOConnector |
---|
INT_VALUE_NOT_SET |
Constructor Summary | |
---|---|
AbstractOracleJmsConnector()
|
Method Summary | |
---|---|
void |
close(Session session)
Attempts to close the underlying JDBC connection before closing the JMS session. |
protected ConnectionFactory |
createConnectionFactory()
Oracle has two different factory classes: AQjmsQueueConnectionFactory
which implements javax.jms.QueueConnectionFactory and
AQjmsTopicConnectionFactory which implements
javax.jms.TopicConnectionFactory so there is no single class to return
in this method. |
protected void |
doConnect()
Template method where any connections should be made for the connector |
abstract Connection |
getJdbcConnection()
|
String |
getPayloadFactory()
|
String |
getProtocol()
The Oracle AQ connector supports both the oaq:// and the jms:// protocols. |
Session |
getSession(boolean transacted,
boolean topic)
Some versions of Oracle do not support more than one JMS session per connection. |
boolean |
isMultipleSessionsPerConnection()
|
Message |
preProcessMessage(Message message,
Session session)
If the incoming message is an XMLType, return it as a standard javax.jms.TextMessage . |
void |
setMultipleSessionsPerConnection(boolean multipleSessionsPerConnection)
|
void |
setPayloadFactory(String payloadFactory)
|
boolean |
supportsProperty(String property)
Oracle throws a "JMS-102: Feature not supported" error if any of these "standard" properties are used. |
boolean |
supportsProtocol(String protocol)
The Oracle AQ connector supports both the oaq:// and the jms:// protocols. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String PAYLOADFACTORY_PROPERTY
protected String payloadFactory
Constructor Detail |
---|
public AbstractOracleJmsConnector()
Method Detail |
---|
public String getProtocol()
getProtocol
in interface UMOConnector
getProtocol
in class JmsConnector
public boolean supportsProtocol(String protocol)
supportsProtocol
in interface UMOConnector
supportsProtocol
in class AbstractConnector
protocol
- protocol name
protected void doConnect() throws ConnectException
AbstractConnector
doConnect
in class JmsConnector
ConnectException
public Session getSession(boolean transacted, boolean topic) throws JMSException
JMS-106: Cannot have more than one open Session on a JMSConnection.
getSession
in class JmsConnector
JMSException
multipleSessionsPerConnection
public boolean supportsProperty(String property)
supportsProperty
in class JmsConnector
public Message preProcessMessage(Message message, Session session) throws Exception
javax.jms.TextMessage
. If the incoming message is any other
AdtMessage, return it as a standard javax.jms.ObjectMessage
.
preProcessMessage
in class JmsConnector
message
- - the incoming messagesession
- - the JMS session
Exception
public void close(Session session) throws JMSException
close
in class JmsConnector
JMSException
org.mule.providers.jms.JmsConnector.close( javax.jms.Session)
public abstract Connection getJdbcConnection() throws JMSException
JMSException
public boolean isMultipleSessionsPerConnection()
public void setMultipleSessionsPerConnection(boolean multipleSessionsPerConnection)
protected ConnectionFactory createConnectionFactory() throws InitialisationException, NamingException
AQjmsQueueConnectionFactory
which implements javax.jms.QueueConnectionFactory
and
AQjmsTopicConnectionFactory
which implements
javax.jms.TopicConnectionFactory
so there is no single class to return
in this method.
createConnectionFactory
in class JmsConnector
InitialisationException
NamingException
public String getPayloadFactory()
public void setPayloadFactory(String payloadFactory)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |