lydie prevost

Ranch Hand
+ Follow
since Mar 14, 2002
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 lydie prevost

Hi everybody ,
I have uploaded my assignement and I am ready to take the essai exam. I have read somewhere that we are allowed to bring all the documentation we want to take the essay exam? Is is true?
- Lydie
I have a hard time to find when which version of java was developped. The assignment said no more than 18 month .
I developped using j2sdk1.4_01. I wanted to download the latest version and I don't get it : Is it j2EE1.4 or 5.o
They say that j2SEE 1.4 icludes jDK 5.0
I am alway lost with sun new version.
Can someone tell me
how do you find the date of each version and which one is the latest.
Thank you,

Lydie
I see a lot of threads mentionning the readme file.
Readme file is suuppose to describe th elist of filesin the jar.
My assignment does not mention any readme file. It says that I must provide a userguide.txt file containing a user documentation for the database and the server. I have choice.txt and version.txt files.
But no mention of a readme file?
Is it some thing that must be done as good practice, should I provide a readme file anyway or is it the same file as the userguide.txt?
Cna you help me with this.
Thank you
- Lydie
Thank you ,
I was suspecting it (for the security manager) but I was not completly sure..
Thanks again
- Lydie
Hi,

I use a hashmap to keep track of the recordslocked
My data class is NOT static but my hashmap IS static.
I synchronized on this hashmap before adding or removing a record in the map.
So I don't need to use a thread safe hash map or vector if I use a static data and static hashmap?
Can somebody confirm that I am right on this?
Thank you very much
- Lydie
Hi eveybody,
I am reading alll those "Must" agin and again nad I have more and more doubt each time.

I created a Contractor class to holds the record number and the data.
The Contractor class implements serializable.

Does that imply that I am doing some dynamic loading of the class?
And does that mean I need a security manager?

My assignment mention no security manger must be needed and no dynamic downloading but ....

I understood that if the client and the server are on the same machine, there is no need for a security manager to download the class ....
Can someone help me clarify this???

Should I transform my Contractor class in a String[] class?

Aother question:
I have my remote interface extending Remote and DatabaseClient
My database remote implementation extends UnicastRemoteObject and implements my remotee interface

So This implies that all my methods in my DatabaseClient must throw RemoteException.
Is this right???
So Why is it not the case in Max book?
His interface DBClient has methods which do not throw RemoteException.
I don't understand why???

Can someone help me with that too?
Thank you,
Lydie
Thank you both, I have just realized it last night (was still thinking of it !).
-Lydie
I don't see them mentionning a README file in my assignment ...
I saw that some body failed because he didn't gave aREADME file.
What are you supposed to write in the README file?
Thank you
- Lydie
Thank you for your response.
Yes, I know that I just have to be concerned by concurent threads with the server as you mentionned but is this hiding something else???
The all thing bother me: Why???
And if there is a flaw in my design, I would like to understand it to make sure my design is right.

You are have two different instances of Data, one for local, and one for remote, not?

code:


dataAdaptater = ClientConnector.getLocal("./");
recordNumber =13; new LockTest(dataAdaptater , recordNumber);
dataClient = ClientConnector.getRemote("localhost", 1099);

[\QOTE]

Note that dataAdaptater implements DataClient, so it is OK.
In fact I redid the test with :



and I get the same result : the two instances get the lock , which does not happen with multiple remote instances!. In fact with some debugging in the server side, I saw that the lockedRecord hashmap (althought static) is nott the same server/local....the record does not appera to be locked and each instance locks it.
Why is that ? It is static and should be shared by all the instances I create wether they are from a static or remote connection they are DataClient instances and should share lockedRecord!!!
It is sahred by multiples remote instances, I checked, so why is it that way with one remote and on local???
There is something I don't get....


One solution to that will be do the test at the server main thread, remote clients get your DataClient instance through the registry, and local use that DataClient instance you bind ...



I am not sur I undersatnd what you mean here....

It is my turn to grab a - stong - coffee now...
Thanks again
- Lydie

Hi everybody,
I am almost done and I am trying to test my multithreading safety.
here is how my application is built.
I have








And I have created different tests to simulate multithreading:

1) test 50 remote access simultaneously:



This works fine: one thread acquire the lock and the others wait until it is unlocked...

2) Same test but for 50 local access simultaneously:



This works fine also: one thread acquire the lock and the others wait until it is unlocked...

3) Now is where things don't work I do the same thing but create 2 threads: one remote and one local and start them : They both acquire the lock!!!






I don't understand what is wrong in my design that it does not work when i mix remote and local, but is perfectly safe with just remote or just local. It it the test or the code the problem?


Thank you very much for all your help in this
- Lydie
It tookk me a while, but I finally found how to do it :
I can then matche a string even with the dollar sign
Lydie
Hello everybody,
In order to know if a record is already in the database, I am using a pattern and matcher to compare each record :


This works welll for evey thing except when I am comparing the hourly charge for each contractor because it contains a currency symbol which could be a dollar sign and $ is a specila character for matcher.
I don't know how to replace the "$" by "\$" if it is present . It could also be another currency symbol, so I don't always know that a $ is present , I first have to look for it then replace it.
Can somebody help me with that
Thanks
Lydie
well, I am behind a firewall : so when I run ipconfig i get an ip adress which is not the one I am know outside, yhey usully begin with 192.168....
I know my server name .
I know my "face IP" = the know outside the firewall
But I am not able to put alll of this together .
Here is a good efrerence about ip /ip face dns server etc....ip adress
- Lydie
Thank you, but I am still confused:
ipconfig gives the local IP adress = local network
which is not the IP adress from the outside word!
Is is what you are talking about with DNS tarnslation?
Ans how do you this DNS transalation?
Right now ny client server works fine on a local network:
I use the ip given by ipconfig in my clinet and nothing in my server. But this does not work outside my local network!
- Lydie