Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

DVD Database & RMI (Max's book)

 
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 ]
 
town drunk
( and author)
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
 
It's a tiny ad only because the water is so cold.
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic