Re: about singletons (ot)

2003-02-11 Thread Erik Price
ook is good, and the o'reilly threads book is good. --mikej -=- mike jackson [EMAIL PROTECTED] -----Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 12:26 PM To: Tomcat Users List Subject: Re: about singletons (ot) So you mean that the

RE: about singletons (ot)

2003-02-10 Thread Mike Jackson
e mentioned by other people, the addison westley book is good, and the o'reilly threads book is good. --mikej -=- mike jackson [EMAIL PROTECTED] > -Original Message----- > From: Erik Price [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 29, 2003 12:26 PM > To: Tomcat U

RE: about singletons (ot)

2003-01-30 Thread WATKIN-JONES,ADAM (HP-UnitedKingdom,ex1)
Basically yes. Much less code than you normally would think needs to be declared synchronized. Maybe someone can post a link to a good guide to thread synchronization - personally I only can recommend the O'Reilly Java Thread book but that's personal taste(!) How about Concurrent Programming

Re: about singletons (ot)

2003-01-29 Thread Tobias Dittrich
quot;Tomcat Users List" <[EMAIL PROTECTED]> Sent: Wednesday, January 29, 2003 9:26 PM Subject: Re: about singletons (ot) > So you mean that the original author (mike jackson) was saying that he > used synchronized code blocks to apply a finer level of detail in > specifying what

Re: about singletons (ot)

2003-01-29 Thread Felipe Schnack
thod body ... )? > > > Cheers > Tobi > > > > From: "Erik Price" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Sent: Wednesday, January 29, 2003 1:46 PM > Subject: Re: about singletons (ot) > > >

Re: about singletons (ot)

2003-01-29 Thread Erik Price
, I mean the overhead from the method call, not the execution speed of the method body ... )? Cheers Tobi From: "Erik Price" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Wednesday, January 29, 2003 1:46 PM Subject: Re: about singletons (ot)

Re: about singletons (ot)

2003-01-29 Thread Tobias Dittrich
ROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Wednesday, January 29, 2003 1:46 PM Subject: Re: about singletons (ot) > > > Mike Jackson wrote: > > The difference is that if you use a singleton there's one instance. If > > everything > >

Re: about singletons (ot)

2003-01-29 Thread Erik Price
Mike Jackson wrote: The difference is that if you use a singleton there's one instance. If everything is static then you only have one copy. Usually when you use a singleton it's to control access to some resource, the intent is that you use the singleton and some synchronized calls (note I do

RE: about singletons (ot)

2003-01-29 Thread Daniel Brown
TED]] > Sent: 28 January 2003 21:56 > To: Tomcat Users List > Subject: about singletons (ot) > > > These days I was thinking > It's not so uncommon to have uses for singleton classes in our > everyday lives. Normally we do that implementing a class that hav

RE: about singletons (ot)

2003-01-29 Thread Ralph Einfeldt
through the implementation of the class, but that is additional coding) > -Original Message- > From: Felipe Schnack [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 28, 2003 10:56 PM > To: Tomcat Users List > Subject: about singletons (ot) > > Normally we d

RE: about singletons (ot)

2003-01-28 Thread Mike Jackson
ED]] > Sent: Tuesday, January 28, 2003 4:09 PM > To: [EMAIL PROTECTED] > Subject: RE: about singletons (ot) > > > I would agree. > > We had a static class and we thought it would work great...it turned out > that we ended up rewriting much of it to use the getInstance() type of

RE: about singletons (ot)

2003-01-28 Thread Larry Meadors
> -Original Message- > From: Felipe Schnack [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 28, 2003 1:56 PM > To: Tomcat Users List > Subject: about singletons (ot) > > > These days I was thinking > It's not so uncommon to have uses for singleton cla

RE: about singletons (ot)

2003-01-28 Thread Mike Jackson
Original Message- > From: Felipe Schnack [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 28, 2003 1:56 PM > To: Tomcat Users List > Subject: about singletons (ot) > > > These days I was thinking > It's not so uncommon to have uses for singleton classes in our &

Re: about singletons (ot)

2003-01-28 Thread Jon Wingfield
Did someone say Booch utility? http://www.javaworld.com/javaworld/jw-04-1999/jw-04-toolbox.html see page 2. Actually, this entire set of articles on threading is excellent. Felipe Schnack wrote: These days I was thinking It's not so uncommon to have uses for singleton classes in our everyda

Re: about singletons (ot)

2003-01-28 Thread Cees van de Griend
On Tuesday 28 January 2003 22:56, Felipe Schnack wrote: > These days I was thinking > It's not so uncommon to have uses for singleton classes in our > everyday lives. Normally we do that implementing a class that have its > constructor as private, so no one can instantiate it, and a > getInstan

about singletons (ot)

2003-01-28 Thread Felipe Schnack
These days I was thinking It's not so uncommon to have uses for singleton classes in our everyday lives. Normally we do that implementing a class that have its constructor as private, so no one can instantiate it, and a getInstance() method or something like it. We wouldn't have the same kind o