File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Is it just me? SCJD Beta Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Is it just me? SCJD Beta" Watch "Is it just me? SCJD Beta" New topic
Author

Is it just me? SCJD Beta

Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Thomas Fly
Ranch Hand

Joined: Sep 09, 2002
Posts: 164
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.


Fly by Night Consultants<br /> <blockquote><font size="1" face="Verdana, Arial">quote:</font><hr><i>I climbed on the back of a giant albatross<br />which flew through a crack in the cloud<br />to a place where happiness reigned...<br />all year 'round<br />the music played ever so loudly!</i><p><a href="http://thomasfly.com/songs/Traffic/Hole_in_my_Shoe_qt.htm" target="_blank" rel="nofollow">Hole in My Shoe</a><hr></blockquote>
Tybon Wu
Ranch Hand

Joined: Jun 18, 2002
Posts: 84
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...


SCJP2
Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451

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


Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
Dayanand Kangala
Greenhorn

Joined: Sep 09, 2002
Posts: 26
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
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

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

Joined: Jun 18, 2002
Posts: 84
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
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Thanks Tybon
Mark
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is it just me? SCJD Beta
 
Similar Threads
add, modify and delete in data class
Partial Integrity test on Data file
how to use new Data(dbName) to open db.db in jar?
SCJD assignment changed!
Data class in Beta