RE: @Disposes and webapp shutdown and @Singleton/@ApplicationScope

2011-07-08 Thread Pieter Martin
Hi, I have an application scoped producer method together with a disposer which sits in a @javax.inject.Singleton scoped class. @Singleton public class DbProducer implements Serializable { @ApplicationScopedDb @Produces @ApplicationScoped public NakedGraph

Re: @Disposes and webapp shutdown and @Singleton/@ApplicationScope

2011-07-08 Thread Gerhard Petracek
hi pieter, in the end you have to shutdown one of both scopes first. if you change the behaviour, you would have a problem the other way round. please always use @ApplicationScoped instead of @Singleton (in terms of cdi @Singleton isn't specified very clearly - it's part of jsr 330 which doesn't

Re: @Disposes and webapp shutdown and @Singleton/@ApplicationScope

2011-07-08 Thread Pieter Martin
@ApplicationScoped hence forth it is. Thanks Pieter On 08/07/2011 09:31, Gerhard Petracek wrote: hi pieter, in the end you have to shutdown one of both scopes first. if you change the behaviour, you would have a problem the other way round. please always use @ApplicationScoped instead of

Re: @Disposes and webapp shutdown and @Singleton/@ApplicationScope

2011-07-08 Thread Mark Struberg
Hi! Please note that javax.inject.Singleton is completely underspecified! I suggest to not use it at all ;) LieGrue, strub --- On Fri, 7/8/11, Gerhard Petracek gerhard.petra...@gmail.com wrote: From: Gerhard Petracek gerhard.petra...@gmail.com Subject: Re: @Disposes and webapp shutdown