Announcement Announcement Module
Collapse
No announcement yet.
Cache-level for backed channel Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Cache-level for backed channel

    I am currently using cache-level="3" in the message driven channel adapter to keep the consumer total count low that works great, but this attribute is not available for the backed channels. Is there any way around to keep the total counsumer count low for the channels?

    Here is my code :

    <int-jms:channel id="singleXXXXRecordProducer" queue="XXXXQueue" message-driven="true" transaction-manager="jtaTransactionManager" receive-timeout="1000"/>

    Thanks !!

    Thompson

  • #2
    It's called 'cache' on the channel...

    Code:
    		<xsd:attribute name="cache" default="auto">
    			<xsd:annotation>
    				<xsd:documentation><![CDATA[
    	The cache level for JMS resources: "none", "connection", "session", "consumer"
    	or "auto". By default ("auto"), the cache level will effectively be "consumer",
    	unless an external transaction manager has been specified - in which case the
    	effective default will be "none" (assuming J2EE-style transaction management
    	where the given ConnectionFactory is an XA-aware pool).
    				]]></xsd:documentation>
    			</xsd:annotation>
    			<xsd:simpleType>
    				<xsd:restriction base="xsd:NMTOKEN">
    					<xsd:enumeration value="none"/>
    					<xsd:enumeration value="connection"/>
    					<xsd:enumeration value="session"/>
    					<xsd:enumeration value="consumer"/>
    					<xsd:enumeration value="auto"/>
    				</xsd:restriction>
    			</xsd:simpleType>
    		</xsd:attribute>

    Comment


    • #3
      Thanks Gary. It works great . I have used cache="consumer" .

      Appreciate your quick response

      -- Thompson

      Comment

      Working...
      X