Michel Bertrand

Greenhorn
+ Follow
since Jan 31, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Michel Bertrand

Regarding these two creational patterns, does home interface (EJBHome) fit better as Abstract Factory or Factory Method ?
Hi!

Thanks for your answer !

I will look for the topics you listed.

Regards,
Michel.
Hi!

I failed in URLy Bird assignment due to the Locking mecanism approuch.

I have the following at my test result:

The maximum possible score is 400; the minimum to pass is 320. General Considerations (maximum = 100): 100 Documentation (maximum = 70): 70 O-O Design (maximum = 30): 30 GUI (maximum = 40): 38 Locking (maximum = 80): 0 Data store (maximum = 40): 40 Network server (maximum = 40): 40 Major point loss for record-locking mechanism, which is not according to spec. In the Data class, the lock() method is supposed to block when requested to lock a locked record. Your implementation returns immediately.



When trying to access a database locked record, my app returns directly
and it shows a message saying "Record locked ...". But looking at the
examiner comments, I would to block the request to lock the record unitl it becomes avaible. Am I right ? Should I use wait() and notify() in the lock method of the database class ?

Using it, I block the request, but the app window with is waiting for the lock release becomes blank. Is there any wait to avoid this behavior ?

Could anybody help me ?

Thanks in advance!
Michel.

[Andrew: changed code] [block to [quote] block]
[ January 07, 2005: Message edited by: Andrew Monkhouse ]
Hi !

What about extending the default database interface ? I did it to support the remote and local access to the database throught the network adapter pattern. May it cause any problem to my exam score ? Is it allowed ?

Thanks in advance !
Michel.
Hi guys !

I really failed ! They said that a requirement was not implemented resulting in an automatic failure.

Now, I'm going to take the voucher to resubmit the project. So, do I have to take another essay exam ? May I modify other parts of my project ? What do you think about it ?

Thanks in advance !
Michel.
Hello !

Yes, I did not get any detail. So, I was very worry about it.

Accessing the "Candidate History" on Prometric registration site I have "Tested" for the status of my exam. Probably I'm facing that
inconsistency of Prometric system marking my exam failed in certmanager
database since they don't have the final score yet ( I hope so ).

I will wait for the Sun answer to ensure this situation. Yesterday,
I passed some time verifying my project and I did not find anything
serious that could result in a fail and so I hope to get certified
as Sun Java Developer.

Thanks for all and best regards !
Michel.
I really don't imagine what happened. I suspect of the written exam. There I did not give so much details about my implementations and so I belive it was the core problem. I contacted Sun <who2contact@central.sun.com> and I'm waiting their feedback. In case of news I write them here and thanks for your information.
Hello !

I failed in the developer exam and I didn't find
any comment describing and explaning why did I fail
in my project.

Is there anyway to get this information ? And what
about now, do I have to buy another voucher for the
exam, build another project and so on ?

Thanks in advance !
Michel.
Ok, thanks guys ! It was a misunderstanding of my part. I have only to read the config file from the current application directory where the user starts it.
Regards,
Michel.
Hello !
It was my first approuch, but since I was unable to load the configuration when running the application from any directory, not the working directory, I could not get the suncertify.properties file. In the assignment I have instructions to start the application using "java -jar <path>/runme.jar <argument>". In this way, I intent that the user can start the application from any location.
So, how to get the absolute path to "suncertify.properties" starting the application out of the working directory ? Can anyone give me another tip ? As I told you before, I did not find any solution.
Thanks again !
Michel.
Hi !
I found an instruction in my assignment, URLyBird, to make the application configuration persistent among its executions. Probably to save the user preferences.
I did it using the java.util.Properties stored in a file on the user home directory, I mean by "user home directory" the .
What about it ? Is it a good approuch ? Would I have any problem running this in any OS's ?
Thank you very much !
Michel.
Thanks for your reply ! That's what I supected ! I will change the architecture.
Regards,
Michel.
Hello !
I have a doubt about my network approuch. I used RMI to implement the network operations. In the way I designed my classes, the remote
interface is used for both local and network database access.
Running my client to access the database locally, I simply get a
local reference of my remote interface for the database. Running it to access a remote database, I get a remote reference of database using .
I found in my assignment some instructions to bypass the network entirelly running the database locally. And so, my doubt comes here, because in my approuch I'm using the remote interface for both local and network data access. Even running locally I use the stubs of RMI.
Could it be result in an automatic fail ? What do you think about this
application design ?
Thanks in advance !
Michel.
Hi guys !
Thanks for all !
Regards,
Michel.
Hi! Thank you for your reply and your code hints !
I found in my assignment:

But it was not what I saw in the database file. I encontered those padded "20" (blank space characters) instead of null terminated. That's it.
What do you think ? I padded the blanks too, but I'm a little afraid of it. I tried the "trim()", but it did not work for me and I did not find the reason yet.
Thanks again !
Michel.