Uploaded image for project: 'OpenWebBeans'
  1. OpenWebBeans
  2. OWB-369

Static ContextsService in ContextFactory causes wrong webContextService used for multiple applications

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • M4
    • 1.0.0-alpha-1
    • None
    • None

    Description

      To reproduce,

      Application A, which does not support conversation, installed and tested without any issue. then stop and uninstalled.
      Application B, which support conversation, get installed and started.
      When test Application B, ApplicationA's contextService is used and causes conversation scope is not found since it does not support conversation.
      The problem is because of static variable used for contextsService in ContextFactory which is JVM-wide and only init once. While supportConversation flag is application-wide property.

      Probably we need contextService variable to be classloader based instead of static variable. or need some change to supportsConversation flag.

      Attachments

        1. ContextFactory.patch
          4 kB
          Ying Wang

        Activity

          People

            struberg Mark Struberg
            yingwang Ying Wang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: