Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-7101

Wildfly 10.1.0 blocks calls to Singleton EJBs in PostConstruct

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 10.1.0.Final
    • EJB
    • None
    • Hide

      A simple project is attached, which demonstrates the problem:
      deploy the jar file to Wildfly - the server.log will print some lines, which show, that the calls to to TestReader EJB from the created threads are not executed before the @PostConstruct Thread has finished.

      Show
      A simple project is attached, which demonstrates the problem: deploy the jar file to Wildfly - the server.log will print some lines, which show, that the calls to to TestReader EJB from the created threads are not executed before the @PostConstruct Thread has finished.

    Description

      Wildfly 8.2.0 and 10.0.0 work fine with a Singleton Bean, which has a @Postconstruct method and in this method several threads are created with the ManagedExecutorService. These threads call a method in another Singleton EJB, which has been injected.

      This call is blocked in Wildfly 10.1.0 until the Prostconstruct thread has ended.

      I assume that the behaviour of Wildfly 8.2.0 + 10.0.0 is correct and the behaviour of Wildfly 10.1.0 is a bug.

      Attachments

        Activity

          People

            jgreene@redhat.com Jason Greene
            rumpelstilzchen926 Dietrich Schmidt (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: