Results 1 to 3 of 3

Thread: Cache-level for backed channel

  1. #1
    Join Date
    Jun 2012
    Posts
    4

    Default 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. #2
    Join Date
    Mar 2010
    Location
    Gtr Philadelphia, PA
    Posts
    2,036

    Default

    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>
    Gary P. Russell
    Spring Integration Team
    SpringSource, a division of VMware

  3. #3
    Join Date
    Jun 2012
    Posts
    4

    Default

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

    Appreciate your quick response

    -- Thompson

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •