Hi,

What's the goal?
What are you trying to solve with it?
--
Jean-Louis Monteiro
http://twitter.com/jlouismonteiro
http://www.tomitribe.com


On Mon, Jan 17, 2022 at 12:33 AM Ed Slavich <ed.slav...@justappraised.com>
wrote:

> Hello,
>
> When a bean instance variable is set in a @PostConstruct method, does the
> variable need to be declared volatile?  For example:
>
> @Stateless
> public class SomeBean {
>     private volatile Foo foo;
>
>     @PostConstruct
>     private void initialize() {
>         foo = new Foo();
>     }
> }
>
> Or does TomEE provide some sort of guarantee that makes volatile
> unnecessary?
>
> Thanks,
> Ed

Reply via email to