aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes choces.txt / Network Connection Protocol Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "choces.txt / Network Connection Protocol" Watch "choces.txt / Network Connection Protocol" New topic
Author

choces.txt / Network Connection Protocol

David Kachen
Ranch Hand

Joined: May 20, 2010
Posts: 42
Hi all,

What I must write in choces.txt about Network Connection Protocol?
I have considered possible variants of realisation: RMI or Sockets with Serialized Objects. I am familiar with both approaches.
I have chosen RMI.
In the choces.txt I have described why I have chosen RMI and what lacks at it is. At me it has turned out only 10 lines. It seems to me what is it very little (Data Access Design occupies 115 lines).
What I still can write there?
Carlos Morillo
Ranch Hand

Joined: Jun 06, 2009
Posts: 221

Hi David,

David Kachen wrote:What I still can write there?


Advantages and disadvantages of each.

How your choice achieve the main design goals of your assignment:
Ease of use and extending your code, junior programmer maintaining your code learning curve, etc.

How do you solve identifying a client for logical record locking in each approach.

HTH,

Carlos.


SCSA, OCA, SCJP 5.0, SCJD, CCDH, CCAH http://www.linkedin.com/in/carlosamorillo
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5539
    
  13

David Kachen wrote:What I still can write there?

I mentioned 8 advantages and 3 disadvantages about the networking protocol I used (RMI). This took approximately 40 lines. Furthermore I have +- 100 lines to describe the consequences on my project (with regard to client identification, because the interface I had to implement didn't have a lockCookie).


SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
David Kachen
Ranch Hand

Joined: May 20, 2010
Posts: 42
Hi Carlos,

Carlos Morillo wrote:
How do you solve identifying a client for logical record locking in each approach.

I do not understand what you mean.

In my implementation, the record lock/unlock will be the same for all approaches. All logic is implemented in data access class (Data), which does not depend on network transport.
Carlos Morillo
Ranch Hand

Joined: Jun 06, 2009
Posts: 221

Check the SCJD Forum FAQ and also read Chapter 5 of the Monkhouse book.
David Kachen
Ranch Hand

Joined: May 20, 2010
Posts: 42
Hi Roel,
Roel De Nijs wrote:
Furthermore I have +- 100 lines to describe the consequences on my project (with regard to client identification, because the interface I had to implement didn't have a lockCookie).

As far as I understand, not all have a cookie. But in my case, the locking mechanism is contained in SunInterface and there is no difference which approach to use.
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5539
    
  13

David Kachen wrote:As far as I understand, not all have a cookie.

Indeed, have a look here.
Cindy Carney
Ranch Hand

Joined: Jan 12, 2010
Posts: 57
Ooh - is there a 'minimum size' on choices.txt that I'm unaware of? I just have like 2 sentences describing what I did (implement both RMI and sockets), and why I chose what I did (RMI).

My whole 'choices.txt' file is like 4 pages, printed. Do you think that perhaps that area of my submission is underpowered?
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5539
    
  13

No, not a minimum size. Here you can find someone with an ultra limited choices.txt (I had 36 KB), no idea how many pages that is.
Carlos Morillo
Ranch Hand

Joined: Jun 06, 2009
Posts: 221

My choices.txt is 35K and userguide.txt is 10K.
Peter Aarum
Ranch Hand

Joined: Jan 14, 2010
Posts: 44
No, not a minimum size. Here you can find someone with an ultra limited choices.txt (I had 36 KB), no idea how many pages that is.


Roel are you making fun of me
Cindy Carney
Ranch Hand

Joined: Jan 12, 2010
Posts: 57
Hey Peter, did you pass? And how big did your choices.txt end up being?

Mine's very concise as well. I didn't describe the system design in it, I just made entries when I ran into difficult design or implementation choices.
Peter Aarum
Ranch Hand

Joined: Jan 14, 2010
Posts: 44
Hi Cindy.

No I havent submited yet... still working on it. My choices will probably be aprox like everybody elses in the end.


BR
/Peter

David Kachen
Ranch Hand

Joined: May 20, 2010
Posts: 42
Hi all,

I have used Roel council about "Network choices". And now my choces.txt has increased for 100 lines. It wasn't easy.

Thanks Roel.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: choces.txt / Network Connection Protocol