Ok,
I got the solution on this and I am able to successfully run the client -
Here what I found.
1.The classpath variable should be set propoerly.
Now on *win2k* the setting goes as ,
CLASSPATH= D:\j2sdk1.4.1_06\bin;d:\j2sdk1.4.1_06\lib;d:\j2sdkee1.3.1\bin;.;%CLASSPATH%;D:\j2sdkee1.3.1\lib\j2ee.jar;
The most important is
D:\j2sdkee1.3.1\lib\j2ee.jar; and I had missed that, because of which I faced lot of erros and exceptions.
J2EE_HOME=D:\j2sdkee1.3.1
JAVA_HOME=D:\J2SDK1.4.1_06
The j2ee.jar has all the game in it..!!
2. You compile the client file using the following command -
D:\home\projects\advice>javac -classpath %CLASSPATH%;AdviceAppClient.jar AdviceClient.java
3. You run it as -
D:\home\projects\advice>java -cp %CLASSPATH%;AdviceAppClient.jar AdviceClient
You will get the advise randomly.
4. I did faced the problem of CORBA.BAD_OPERATION and I did exactly what it is mentioned on -
http://wickedlysmart.com/HeadFirst/HeadFirstEJB/HeadFirstEJBNotes.html Hope beginners would find this useful.
Now I got the peace of mind and I will proceed to next pages.....
Cheers,
Jayant