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
