Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-19440

@Startup @Singleton Beans Constructed Multiple Times

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Deferred
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: EJB
    • Labels:
      None

      Description

      When using @Startup and/or @Singleton to start a Bean on server startup, everytime a method is accessed or the bean is injected with @EJB, both Constructor and @Postconstruct are executed.

      This happens multiple times, each time any component uses the Singleton bean.

      This seems similar to an issue reported for JBOSS AS 7.x (see forum link reference below)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Takis Panagiotis Sotiropoulos
                  Reporter:
                  Takis Panagiotis Sotiropoulos
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: