Uploaded image for project: 'EAP Documentation'
  1. EAP Documentation
  2. EAPDOC-1104

Migration "server configuration" section needs new subsection discussing changes to EJB subsystem configuration for distributable SFSBs

XMLWordPrintable

      EAP8 deprecates the /subsystem=ejb3/cache=* [1] and /subsystem=ejb3/passivation-store=* [2] resources from EAP6/7 that was used to configure the @Stateful EJB cache.

      These resource are superseded by 2 new resources and a new distributable-ejb subsystem in EAP8. While server configurations containing the deprecated resources will continue to function as normal (i.e. w/out the distributable-ejb subsystem), users should consider migrating their server configuration, since these deprecated resource will eventually be removed in a subsequent major release.

      EAP8's default configuration uses the following resources to configure SFSB caching:
      The cache for non-distributable SFSBs is configured using:
      /subsystem=ejb3/simple-cache=* [3]
      This is equivalent to the /subsystem=ejb3/cache=* resource from EAP7 where no passivation-store was defined.

      The cache for distributable SFSBs is configured using:
      /subsystem=ejb3/distributable-cache=* [4] which contains a bean-management attribute that references a corresponding resource from the distributable-ejb subsystem. The bean-management attribute is optional - when undefined, it references a default bean-management resource, as defined within the distributable-ejb subsystem. [5]

      Consider the following configuration from EAP7:

      /subsystem=ejb3/cache=foo:add()
      /subsystem=ejb3/passivation-store=infinispan:add(cache-container=ejb, bean-cache=default, max-size=1024)
      /subsystem=ejb3/cache=bar:add(passivation-store=infinispan)
      

      While these deprecated operations remain valid and generate equivalent behavior in EAP8, the preferred configuration should look like:

      /subsystem=ejb3/simple-cache=foo:add()
      /subsystem=distributable-ejb=bar/infinispan-bean-management=baz:add(cache-container=ejb, cache=default, max-active-beans=1024)
      /subsystem=ejb3/distributable-cache=bar:add(bean-management=baz)
      

      [1] https://docs.wildfly.org/28/wildscribe/subsystem/ejb3/cache/index.html
      [2] https://docs.wildfly.org/28/wildscribe/subsystem/ejb3/passivation-store/index.html
      [3] https://docs.wildfly.org/28/wildscribe/subsystem/ejb3/simple-cache/index.html
      [4] https://docs.wildfly.org/28/wildscribe/subsystem/ejb3/distributable-cache/index.html
      [5] https://docs.wildfly.org/28/wildscribe/subsystem/distributable-ejb/index.html

              rhn-support-rchettri Rahuul Chettri
              pferraro@redhat.com Paul Ferraro
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: