openwebbeans-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lars-Fredrik Smedberg <>
Subject Question on @ApplicationScoped beans
Date Fri, 11 Apr 2014 08:18:41 GMT

We have an @ApplicationScoped bean that is first created in a CDI Extension
(in a method that @Observes AfterDeploymentValidation) .
After creation the method calls an init-method (together with some data
collected in a method @Observes ProcessAnnotatedType) on the
@ApplicationScoped bean which internally sets a flag. This flag is checked
by all business methods on the bean (a flag that marks the
bean as initialized).

There are no other method that explicitly sets the flag to false, the only
time the flag is false is when the bean has been created the first

We are running WAS and see in our trace logs that after some time
the flag is false which indicates that the @ApplicationScoped
bean has been recreated.


- Can @ApplicationScoped beans be recycled/reinitialized somehow? And if so
under what circumstances?


Med vänlig hälsning / Best regards

Lars-Fredrik Smedberg

The information contained in this electronic message and any
attachments to this message are intended for the exclusive use of the
address(es) and may contain confidential or privileged information. If
you are not the intended recipient, please notify Lars-Fredrik Smedberg
immediately at, and destroy all copies of this
message and any attachments.

View raw message