How to start an EJB Singleton's @PostConstruct method without a transaction in JBoss EAP 6

Solution Verified - Updated -

Issue

  • Do @Singletons always start up in a transaction, I have found that @Singletons always seem to have a transaction context when their @PostConstruct methods are invoked which causes grief for our application later on.

  • Is there a means of ensuring a Singleton starts without a transaction context?

  • @Singleton @TransactionAttribute not honored when it is on a super class that the @Singleton bean extends

Environment

Red Hat JBoss Enterprise Application Platform (EAP) 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content