Singleton EJB is being started twice

Solution Verified - Updated -

Issue

We meet the below Signleton class issue during the initialization and guess it's due to the multithread of EAP 6.0.0. We have a singleton class with @Startup ananotation, and it will print the JVM parameters in log, which should only occur once, but now we have two with different threads displaying the same message.

Environment

  • JBoss Enterprise Application Platform (EAP) 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.