• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Passed with 145 points

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks to people here for telling how they did it, without it I might have done a lot of unnecessary work and might not have passed.
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Would you like post your experiences!
 
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by pauramo:
Thanks to people here for telling how they did it, without it I might have done a lot of unnecessary work and might not have passed.


hi Pauramo,
Great news to hear that you have cleared the SCJD exam.
why dont you carry out the tradition and help meek coders like us by giving advice , as to what were your design patterns and what part of the code yo were really bugged. how did you get over it ...
my questions will go on and on and on.....
in short what all you expected others to tell you why dont you tell it to us
------------------
Sid
 
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, Congrats
Would you tell us How
- apply patterns
- made the docs
Thx in adv
 
Ranch Hand
Posts: 1871
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"pauramo"
<h2>Congratulations</H2>
And Welcome to the Club.
However... we have a problem
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.
Thanks.
------------------

Mahindrakar
IBM Application Server & Developer Forum Moderator

Consultant - Zensar Technologies ,Pune India.
SCJP2, SCJD2 & SCJEA (Part I)
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Siddharth Mehrotra:
hi Pauramo,
Great news to hear that you have cleared the SCJD exam.
why dont you carry out the tradition and help meek coders like us by giving advice , as to what were your design patterns and what part of the code yo were really bugged. how did you get over it ...
my questions will go on and on and on.....
in short what all you expected others to tell you why dont you tell it to us


Well, first of all I used RMI. The network server (RMI-class) and Data-class extended the same interface (DataInterface) although the RMI-one through inheritance (DataInterface -> DataNetworkInterface). The DataNetworkInterface also inherited Remote.
The locking was implemented with simple List of Lock-objects (containing information if a certain record is locked or not). The change of the state of these objects was synchronized with the lock-object (very granular). I didn't use client-tracking and timeouts. The lock-all stuff i did like this: I had one special java.lang.Object which was used to synchronize the lock-all portion of the code. This lock-all portion just looped through all the records and did the exactly same thing as the lock-one portion.
The search was very simple: at first it constructed a list of objects which contained the search-conditions in a way which was easier to use when looping through the whole database. Then just the looping.
The documentation I did with html (the user-instructions and explanation of the design choices) plus the readme.txt.
I had the whole application in one jar (both the client and the server). This jar was of course in a bigger jar which contained all the docs and so on.
Well, does anybody want to know more? I won't post the whole code or anything though...
(pauramo -> Perttu Auramo)
 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi. Cogrates. and thanks for details given.
Can u pl. show break up of marks. specillay in GUI ?
thanks
devu
 
Perttu Auramo
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Devu Shah:
Hi. Cogrates. and thanks for details given.
Can u pl. show break up of marks. specillay in GUI ?
thanks
devu


I'm not sure what you mean. If it's details about the score then here (the major point loss stuff is still there although I got the score corrected, it was a mistake on their part):
Grade: P
Score: 145
Comment: This report shows the total points that could have been awarded in each section and the actual number of points you were awarded. This is provided to give you per-section feedback on your strengths. The maximum possible # of points is 155; the minimum to pass is 124. General Considerations(maximum = 58): 56 Documentation(maximum = 20): 20 GUI(maximum = 24): 18 Server(maximum = 53): 51 ************* Major point loss for record locking code. The lock() method does not block when trying to lock a locked record.
 
Siddharth Mehrotra
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Perttu Auramo:

Well, first of all I used RMI. The network server (RMI-class) and Data-class extended the same interface (DataInterface) although the RMI-one through inheritance (DataInterface -> DataNetworkInterface). The DataNetworkInterface also inherited Remote.
The locking was implemented with simple List of Lock-objects (containing information if a certain record is locked or not). The change of the state of these objects was synchronized with the lock-object (very granular). I didn't use client-tracking and timeouts. The lock-all stuff i did like this: I had one special java.lang.Object which was used to synchronize the lock-all portion of the code. This lock-all portion just looped through all the records and did the exactly same thing as the lock-one portion.
The search was very simple: at first it constructed a list of objects which contained the search-conditions in a way which was easier to use when looping through the whole database. Then just the looping.
The documentation I did with html (the user-instructions and explanation of the design choices) plus the readme.txt.
I had the whole application in one jar (both the client and the server). This jar was of course in a bigger jar which contained all the docs and so on.
Well, does anybody want to know more? I won't post the whole code or anything though...
(pauramo -> Perttu Auramo)


wow...
that was a lot..
and more doubts and i guess you wil have to maim me your code..
this is the best reply from someone who has passed.
thans a lot..

------------------
Sid
 
Devu Shah
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for reply.
One more question if u dont mind.
Was your Criteriafind method Syncronised or not ?
 
Perttu Auramo
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Devu Shah:
Thanks for reply.
One more question if u dont mind.
Was your Criteriafind method Syncronised or not ?



No. I don't really see why it should be anyway?
 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Congrats !!
I am trying to test my client/server jar files. I am facing a
peculiar problem.
I have packaged my classes in two jar files - server.jar and
Client.jar.
Server.jar contains among other classes Data and DataServer(RMI
server).
Client.jar contains all client classes.
While testing-
A. For RMI - 1. Run Server.jar
2. run client.jar
Everything is OK.
B. Local mode - Unable to run client.jar alone as it needs Data class,
which is in server.jar.
However even if I run Server.jar, client.jar still does not find Data
class and returns error 'Data class not found'
How you have addressed the issue.
regards.


 
reply
    Bookmark Topic Watch Topic
  • New Topic