users@ejb-spec.java.net

[ejb-spec users] Re: [jsr345-experts] Re: Re: Singleton MDB?

From: Philippe Marschall <kustos_at_gmx.net>
Date: Sat, 12 Jan 2013 16:03:45 +0100

On 03.01.2013 17:27, Jeremy Bauer wrote:
> I also do not like the idea of re-using @Singleton because it is a
> component defining annotation. If we are just talking about a single
> switch, adding an attribute to the annotation ex.
> @MessageDriven(singleton=true) is my preference.

What adding singleton=true to Stateless and turning Singleton into a
stereotype?

@Stereotype
@Stateless(singleton=true)
public @interface Singleton {
}

Cheers
Philippe