The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
...hopefully celebrate our succeed exam
It will be not easy for Andrew to join us: He needs about 20 hours flight to get to Cologne, but will I drink some beers for him
I like also beer from Belgium and Latvia (that's where I come from).
I will hold my thumbs for Latvia to get through the qualifications for Euro 2004
Originally posted by Ulrich Heeger:
Let us really celebrate together Carneval, Andrew you have also to come to Cologne, so we can drink K�lsch, Cascades and (what's you favorite beer, Vlad?) together and hopefully celebrate our succeed exam
Originally posted by Vlad Rabkin:
It will be not easy for Andrew to join us: He needs about 20 hours flight to get to Cologne, but will I drink some beers for him![]()
I like dark strong beer. I forget always the name of it (it is a beer for X-mas in Germany). I like also beer from Belgium and Latvia (that's where I come from).
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Vlad - are you thinking of Bok beers
... my girlfriend has no interest in going to Europe again for a while, and even less interest in making a trip for beers
Originally posted by Vlad Rabkin:
BTW, What is the "national drink" in Australia?
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
I have three classes: one abstract, which wrapps java.util.Properties and
provides default properties. One class for client and one for the server.
It looks like a JavaBean (getter/setters)
I'm sorry to come back to our SCJD after this discussion of tasty beer. Shame on me...
1. What do you mean with default properties? Do you mean default properties for the location of the database, the servername, for example "localhost" etc?
2. We will have two different property-files, one for the client and one for the server?
3. Each time, we start the server, do we have to create newly the suncertify.properties-file and to delete it, when the server shuts down?
the same for the clients' suncertify.prop.-file?
Do you integrate the setProperty/getProperty-methods of java.util.Properties within this new methods?
public abstract class AbstractProperties{
String propertyName = "test.properties";
public abstract String getTestName() throws IOException;
public abstract void setTestName(String testName)
throws IOException;
}
public class TestProperties extends AbstractProperties{
private Properties P;
private FileInputStream in;
private FileOutputStream fos;
public TestProperties() throws FileNotFoundException{
P=new Properties();
in=new FileInputStream(propertyName);
fos = new FileOutputStream(propertyName);
}
public String getTestName() throws IOException{
P.load(in);
return P.getProperty("testname", "defaultname");
}
public void setTestName(String testName) throws IOException{
if(testName==null){
testName="defaultname"
}
P.setProperty("testname", testName);
P.store(fos,"Test Properties");
}
protected void finalize() throws IOException{
in.close();
fos.close();
}
}
Ulrich:
Let us really celebrate together Carneval, Andrew you have also to come to Cologne, so we can drink K�lsch, Cascades and (what's you favorite beer, Vlad?) together and hopefully celebrate our succeed exam.
And what about Phil then ?!
Vlad:
I plan also to go to Brussels to do it also with Phil.
--------------------------------------------------------------------------------
Finally !
Ulrich:
Anyway, Vlad, I would like to join you and Phil in Brussel to get some beers after SCJD
protected AbstractConfig() throws IOException {
...
//load properties
props.load(fis);
fis.close();
}
public void store() throws IOException {
...
// store properties
props.store(fos, null);
}
Don't get me started about those stupid light bulbs. |