Vijay Gorla

Greenhorn
+ Follow
since Oct 16, 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 Vijay Gorla

Is it possible to obtain caller's hostname and port in an ejb?.
Is this possible at all?.
It makes sense theoritically, but don't know how to do it in a practical sense. I'm using ejb 2.0 with weblogic 6.1

Any response is appreciated
Sorry Guys, I forgot to mention something.
You should be connected to internet during sign-up and question-download process, you can disconnect after you see the "Press Ok to start" dialog.
Cheers!
Vijay Gorla
[ January 16, 2003: Message edited by: Vijay Gorla ]
Try my MockTest, click here to download.
Usage: "java -jar MockTest.jar"
Send me your feedback
You should be connected to internet during sign-up and question-download process, you can disconnect after you see the "Press Ok to start" dialog.
Vijay Gorla
http://www.vijaygorla.com
[ January 16, 2003: Message edited by: Vijay Gorla ]
Why am i getting "ServiceUnavailableException" when i'm running the following code
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
env.put(Context.PROVIDER_URL, "iiop://localhost:900");
Context ctx = new InitialContext(env);
I have websphere 4.0 running on my machine. Is there anything wrong with the provider_url, If there is, how to know the correct url.
Help me.
Vijay Gorla
20 years ago
Try this MockTest
Usage : "java -jar MockTest.jar"
Vijay Gorla
http://www.vijaygorla.com
After clearing the scjp exam last week, I've decided to develop Practice Test software in swing to help aspirants. I've been working on that through the weekend, and here is the prototype. You can download and run it with "java -jar practicetest.jar" command line option. It currently has repetitive questions, but I will soon replace them with actual ones. I need your feedback, and if you can send me your questions I will add them with your name appearing when they are displayed.
Vijay Gorla
http://www.vijaygorla.com
[ October 22, 2002: Message edited by: Vijay Gorla ]
20 years ago
1. D
It's only the local reference variable of the method (not the private variable) that is set to null on line 5, At this stage there will be two variables referring the same object, and one is set to null, that doesn't make the object eligible for garbage collection.
B and C are just method calls.
2. A
Not sure, though,
Foo's implementation is unspecified, it might have passed the bar reference to some other object.
3. D
(short) casting applied to (a + b) only, so the expression becomes short/long, and the result would be long.
20 years ago
Anna,
These questions that I've prepared might help.
They are not the actual questions.

[ October 17, 2002: Message edited by: Vijay Gorla ]
20 years ago
got 58/61 right, one question on garbage collection was a bit tricky, and http://java.sun.com/j2se/1.4/docs/guide/lang/assert.html was clearly enough for all questions on assertions ( 2 or 3, not sure).
and that's all there to report guys,
mock exams list on javaranch was really helpful.
Cheers!!!
Vijay Gorla
http://www.vijaygorla.com
20 years ago