Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DVD Database & RMI (Max's book)

 
Phil Harron
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Max's book it states "We are assuming that there can be several instances of DVDDatabase class and that they will need a mechanism for coordination" i.e. multiple instances of DVDDatabase, one per Client.

My question is this :

When using RMI am I right in thinking that only one instance of DVDDatabase will be created. I know (well I believe) that RMI will pass out a proxy of this class, but it is still only ever one instance of DVDDatabase Why, then does it say in the book that there could be many instances of DVD Database.

I'm sure the book is correct (great help by the way), but could someone help me clear up this issue of when more than one instance of a DVDDatabase would be created - please?

Thanks very much
Phil
[ June 08, 2004: Message edited by: Phil Harron ]
 
Max Habibi
town drunk
( and author)
Sheriff
Posts: 4118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Phil Harron:
In Max's book it states "We are assuming that there can be several instances of DVDDatabase class and that they will need a mechanism for coordination" i.e. multiple instances of DVDDatabase, one per Client.

My question is this :

When using RMI am I right in thinking that only one instance of DVDDatabase will be created. I know (well I believe) that RMI will pass out a proxy of this class, but it is still only ever one instance of DVDDatabase Why, then does it say in the book that there could be many instances of DVD Database.

I'm sure the book is correct (great help by the way), but could someone help me clear up this issue of when more than one instance of a DVDDatabase would be created - please?

Thanks very much
Phil

[ June 08, 2004: Message edited by: Phil Harron ]



Hi Phil,

The point here was that there could, in fact, be multiple instances, and they would still be thread safe. However, only one is used.

HTH,
M
 
Phil Harron
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Of course,

Thanks very much Max

Regards
Phil
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic