tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karl Kildén <>
Subject Thread Safety with and CDI
Date Tue, 25 Oct 2016 07:17:20 GMT

I read about it but I would just like to make sure...

If I have a CDI @ApplicationScoped bean called Fetcher that creates the
Client in @PostConstruct. When I use the Fetcher from multiple threads the
Client instance itself will not be a CDI proxy (All though maybe CXF has
some kind of proxy impl).

Is this safe/ good practice? Perhaps I should produce a single
@ApplicationScoped Client for all my Fetchers if it indeed is thread safe...

Any advice would be great


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message