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
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
@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
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
4 matches
Mail list logo