tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Carter-Brown <paul.carter-br...@smilecoms.com>
Subject @PostConstruct called twice on @javax.inject.Singleton
Date Mon, 09 Oct 2017 22:00:48 GMT
Hi,

Please see attached a test project in which a simple singleton is being
initialised twice (post construct is called twice). Deploy the ear to TomEE
(i'm using 7.0.3) and look at the logs.

I picked up this issue in a large project with an ear containing many wars
packaged as "skinny". The injected bean is in one of the shared libraries.

If the pom in the ear project is changed to <skinnyWars>false</skinnyWars>
and lines 44-48 are removed then the issue goes away and the init is only
called once.

Any ideas?

Paul

-- 


This email is subject to the disclaimer of Smile Communications at http://www.smilecoms.com/home/email-disclaimer/
<http://www.smilecoms.com/disclaimer>


Mime
View raw message