Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-3503

SSB cached in CertificateCache

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: EJBCA 6.1.1
    • Fix Version/s: EJBCA 6.2.0
    • Component/s: None
    • Labels:
      None

      Description

      Currently we cache a reference a reference to the first CertificateStoreSessionBean that initiates the CertificateCache:
      org.ejbca.core.protocol.certificatestore.CertificateCache.CertificateCache(CertificateStoreSessionLocal)

      CertificateCache should either not be responsible for doing it's certificate lookups or retrieve it's own instance of this SSB.

      To ensure proper transactional behavior it would probably be better to have a (TransactionAttributeType.SUPPORTS) CertificateCacheSessionBean that proxies all calls to CertificateCache and updates the cache when needed.

      It might also be worth investigating if calls to CertificateCache can be replaced with calls to for example CaSessionBean or similar.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mikek Mike Agrenius Kushner
              Reporter:
              johan Johan Eklund
              Verified by:
              Samuel Lidén Borell
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: