Uploaded image for project: 'Commons JCS'
  1. Commons JCS
  2. JCS-189

TCP lateral cache not working

    XMLWordPrintableJSON

Details

    • Question
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • TCP Lateral Cache
    • None

    Description

      Unable to do distributed JCS caching between two Websphere Application Servers. It does caching in one server while do not share the cache with other servers.

       

      I am testing it like this:

      http://localhost:9081/TestA/put
      http://localhost:9080/TestB/get

      I have two cache.ccf file for each get and put methods. They are in separate webProject.

       

      jcs.auxiliary.LTCP=org.apache.commons.jcs.auxiliary.lateral.LateralCacheFactory
      jcs.auxiliary.LTCP.attributes=org.apache.commons.jcs.auxiliary.lateral.LateralCacheAttributes
      jcs.auxiliary.LTCP.attributes.TransmissionTypeName=TCP
      jcs.auxiliary.LTCP.attributes.TcpServers=localhost:11101
      jcs.auxiliary.LTCP.attributes.TcpListenerPort=11100
      jcs.auxiliary.LTCP.attributes.AllowGet=false
      jcs.auxiliary.LTCP.attributes.IssueRemoveOnPut=false
      jcs.auxiliary.LTCP.attributes.Receive=true
      jcs.auxiliary.LTCP.attributes.PutOnlyMode=false

       

       

      the other cache.ccf is as follows: 

      jcs.auxiliary.LTCP=org.apache.commons.jcs.auxiliary.lateral.LateralCacheFactory
      jcs.auxiliary.LTCP.attributes=org.apache.commons.jcs.auxiliary.lateral.LateralCacheAttributes
      jcs.auxiliary.LTCP.attributes.TransmissionTypeName=TCP
      jcs.auxiliary.LTCP.attributes.TcpServers=localhost:11100
      jcs.auxiliary.LTCP.attributes.TcpListenerPort=11101
      jcs.auxiliary.LTCP.attributes.AllowGet=false
      jcs.auxiliary.LTCP.attributes.IssueRemoveOnPut=false
      jcs.auxiliary.LTCP.attributes.Receive=true
      jcs.auxiliary.LTCP.attributes.PutOnlyMode=false

       

      Is there any other configuration I need to make. How can I start my listener ports in another server. What  ports can I use? Any advice will be valuable.

      Thanks. 

      Attachments

        Activity

          People

            Unassigned Unassigned
            Jeny20 Jeny
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: