Uploaded image for project: 'OpenEJB'
  1. OpenEJB
  2. OPENEJB-1884

EJBContainer.createEJBContainer(); doesn't register the WebBeansContext correctly

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.0
    • Fix Version/s: 4.5.0
    • Component/s: integration
    • Labels:
      None

      Description

      EJBContainer openEjbContainer = EJBContainer.createEJBContainer();

      openEjbContainer#webBeanContext

      and

      WebBeansContext().currentInstance()

      return different instances of WebBeansContext.
      This is pretty bad as you basically get 2 independent containers. Please note that WebBeansContext().currentInstance() is used in de-serialization and many other situations, like Context control, etc

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              struberg Mark Struberg
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: