Class: com.sybase.djc.ant.MessageListenerProperty (Message Listener Property) | EAServer 6.3 Help |
---|
Description | Configures listener properties for a message-driven bean. |
---|---|
Configuration |
Example:
<setProperties component="ejb.components.example.MyListener"> <messageListener queue="MyQueue" threadCount="5"/> ... </setProperties> |
Nested Properties | clientID, durable, jmsConnectionFactory, name, queue, selector, threadCount, topic |
Property: durable (Durable Subscription) | |
---|---|
Description | If topic is set, this indicates that a JMS durable subscription should be used. If topic is not set, this property is ignored. This property can be specified only if using the default Sybase JMS provider. |
Default Value | false |
Legal Values | false, true |
Property: jmsConnectionFactory (JMS Connection Factory) | |
---|---|
Description | JNDI lookup name for a JMS connection factory that has been bound in the message listener's package using the bind property. If not specified, a defauilt connection factory will be used. |
Property: name (Name) | |
---|---|
Description |
EJB 2.1 added support for generalization of MDBs. MDBs can now listen on
JCA (Connector) Message Listeners, which may listen on any message type, not
just the javax.jms.Message type. This is done by listening on the inbound
resource adapter of a 1.5 Connector.
When you deploy a 1.5 Connector which has inbound resource adapters (i.e. MessageListeners) you need to connect the inbound resource adapter to an MDB which will receive the inbound messages from the connector. In this case, the "name" property should be the name of a configured JCA Message Listener, and activation properties should be set using the Activation Config Property. Otherwise, the "name" property should be omitted, in which case the default Sybase JMS provider will be used. |
Property: queue (Message Queue) | |
---|---|
Description | Name of a configured message queue. This property can be specified only if using the default Sybase JMS provider. |
Property: selector (Message Selector) | |
---|---|
Description | JMS selector expression for queue receiver or topic subscription. This property can be specified only if using the default Sybase JMS provider. |
Property: topic (Message Topic) | |
---|---|
Description | Name of a configured message topic. This property can be specified only if using the default Sybase JMS provider. |