This content has been marked as final.
Show 5 replies
-
1. Re: how can I make a stateless bean singleton on JBOSS?
drabbit Oct 9, 2006 7:13 AM (in response to liketutu)I guess you could set the pool size to 1.
But the interesting question actually is: Why would you want something like this? -
2. Re: how can I make a stateless bean singleton on JBOSS?
ip0 Oct 27, 2006 6:10 AM (in response to liketutu)You can't access the same bean concurrently from several threads, so this could become a major bottleneck.
-
3. Re: how can I make a stateless bean singleton on JBOSS?
lzdobylak Nov 9, 2006 4:19 AM (in response to liketutu)Maybe he wants, to register timer and to implement @Timeout method in this SLS bean.
And start the timer in @Postconstruct method -
4. Re: how can I make a stateless bean singleton on JBOSS?
busawreck Nov 23, 2006 7:54 AM (in response to liketutu)The easiest way would probably be to annotate the bean with @Service.
-
5. Re: how can I make a stateless bean singleton on JBOSS?
dwin Jan 25, 2007 5:10 PM (in response to liketutu)Are you considering clustering as well?
Remember that a singleton is per JVM, If you're not clustering...although this is bad practice...you could just use a regular POJO as a singleton.