• 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

Is it just me? SCJD Beta

 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
But doesn't it seem with all the extra tasks invovled in this Beta, that one month isn't enough time to complete this project?
Has anyone created their db.db file? Any suggestions on a best approach.
Here's mine for now. I am going to create a fixed length text file for all my actual data. I am writing a MakeData class that will read this text file in, and create a db.db file with all the meta data put into it, then all the data put into it.
Mark
 
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Mark-
I discovered the beta thing when I went to sign up for the current exam. Over a month went by without me hearing a thing from Sun, so I went ahead and paid $250 so I could download the thing and get started. 3 weeks later, I get the email from Sun telling me how to download the beta.
I don't know how I could participate in the beta even if I wanted to now, since I'm so familiar with the existing database code.
Unless you really don't want to part with $400, my advice is to get in on the current exam while you can.
 
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm actually doing pretty well timewise. But I got lots of spare time to work on it being recently finished school and only working part time at my current job. My server and other custom classes are done. I am working on the GUI now, and just need to add a few more Swing components and do some testing and the write the docs. I re-read the specs everyday, and really made sure I satisfy all the "must" requirements (wouldn't want to waste all this time and failing it before someone even looks at my code). Creating the db.db was the very first thing I did. I hardcoded a class to write the header and a couple of records. I created a few more mockup records with the createRecord method of the database server, and created the rest of the records with my current GUI. But yeah I think 1 month is a little short if you got a full time job and other commitments...
 
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


Originally posted by Thomas Fly:
Mark,
...
Unless you really don't want to part with $400, my advice is to get in on the current exam while you can.


Hate to tell you this partner but Mark's a veteran SCJD2. He helped me thru the certification more than anyone. Now don't you feel 3" tall!
Michael Morris
 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Mark Spritzler:
But doesn't it seem with all the extra tasks invovled in this Beta, that one month isn't enough time to complete this project?
Has anyone created their db.db file? Any suggestions on a best approach.
Here's mine for now. I am going to create a fixed length text file for all my actual data. I am writing a MakeData class that will read this text file in, and create a db.db file with all the meta data put into it, then all the data put into it.
Mark


Hi Mark,
I am also doing the beta exam.
I created a text file containing all the schema details (no.of fields, fieldname, length), sample records and created a file called "DBConfig.java" which will read the above and create the database file.
I got a mail from Evelyn that the database filename should be "db.db". I am not sure where to put the "db.db" file?! Any advice?
And, I have a doubt in the db file. My file has a data called "cookie". Why is this used for?! I have stored a value called 1000 (random number) in the database. Can this field ever be used at all?!
(I was thinking of a scenario where multiple db.db files will be present and a master db.db will contain a mapping between the cookie value and each db.db. The user selects the type of data to access and the application will choose the respective db.db using the master db.db. I thought this is outside the requirement of the beta spec ! so, I am not going to implement this!)
Regards,
Dayanand.
 
Mark Spritzler
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you can put the db.db file anywhere you want. as long as your application can access it in local and remote mode.
cookie is kind of a unique identifier for a client. I was thinking for those that have this signature can just use the RemoteObjects ID as the long cookie.
Not sure what your random number does?
Since the information in the header is in bytes, a text file won't quite be correct. So not sure if that is what you meant.
Tybon, did you need to use more than one method of the OutputStream to write bytes and strings?

Mark
 
Tybon Wu
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Mark. I used DataOutputStream to write the numeric values and PrintWriter to write textual values in US-ASCII.
4 byte numeric: use DataOutputStream.writeInt()
2 byte numeric: use DataOutputStream.writeShort()
text: use PrintWriter.print()
 
Mark Spritzler
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Tybon
Mark
reply
    Bookmark Topic Watch Topic
  • New Topic