This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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 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>
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...
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.
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?
Joined: Jun 18, 2002
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()