Dhananjeyun Rajendra

Greenhorn
+ Follow
since Apr 29, 2005
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 Dhananjeyun Rajendra

Thanks for your time, Ernest.

I managed to resolve it by using the com.sun.net.ssl package instead of javax.net.ssl, as Sun says the classes in com.sun.net.ssl are unchanged to retain backward compatibility.

Regards,
Dhanan.
14 years ago
Thanks. According to the API doc, URL object's openConnection() returns URLConnection which is a super class of HttpsURLConnection(). So the ClassCastException is a valid one in the new jsse.jar because Sun moved the HttpsURLConnection class from com.sun.net.ssl to javax.net.ssl. This altered the hierarchy structure and hence the exception. Now the question is, how to get around this?
14 years ago

Originally posted by Ernest Friedman-Hill:
Don't import com.sun.net.ssl?



Sorry, I forgot to mention that importing of com.sun.net.ssl was already commented because of the ambiguities reported by the compiler, and the ClassCastException started after that (during runtime).
14 years ago
The JDK 1.5's jsse.jar seems to have the HttpsURLConnection class (and some other classes) in both javax.net.ssl and com.sun.net.ssl packages. This was not so with jsse1.0.1.jar where javax.net.ssl didn't have this class, so the following code didn't have any problem during runtime:

import javax.net.ssl.*;
import com.sun.net.ssl.*;
...
URL url = new URL(urlString);
HttpsURLConnection huc = (HttpsURLConnection)url.openConnection();
...


But in the JDK1.5's jsse.jar, since javax.net.ssl has been updated with new version of this class and the one from com.sun.net.ssl has been deprecated, it throws ClassCastException during runtime.

Can anyone help?

Thanks a lot in advance.
Dhanan.
14 years ago
Hi Ajay,

I've not submitted yet, but I put my image in an HTML file so that the main file opens this HTML file containing the image. This way, it always shows up in 100% view.

HTH,
Dhanan.
Thanks Laxmi!

Are the two characters case-sensitive for the upload file? According to the instructions it is lowercase but what has been issued is uppercase. Sorry, I'm asking this because of Sun's warning that failure to follow instructions will result in immediate failure.

Thanks,
Dhanan.
Hi,

For those not staying in the USA, is the ID used for submission of Part-II assignment the one issued by Sun after taking Part-I exam and mentioned as CANDIDATE ID (the one starting with two alphabets followed by 7 numbers) in the Exam Score Report?

Thanks in advance,
Dhanan.
[ December 29, 2005: Message edited by: Dhananjeyun Rajendra ]
Hi Darya,

I found all mock exams are the same as the Q&A found at:

http://www.geocities.com/subra_73/SCEA_Practice_Questions.htm

The added benefit is you can find excellent explanations to answers.

Regards,
Dhanan.
Hi Peer,

Thanks for the reply and link.

Regards,
Dhanan.
Hi,

Referring to Qn.8 of mock exam #3 from JavaQueries.com (same as Qn.104 at http://www.geocities.com/subra_73/SCEA_Practice_Questions.htm), which is also reproduced below, I'm wondering why servlets should be used instead of stateful session beans. Aren't the latter better to address the requirements? Moreover, if servlets can be used this way, then what is the point in having stateful session beans? Or is this one of those problematic questions?

--- Start ---
You are developing an online shopping store for an art gallery. The company aims to bring fine art to the masses and expects a huge volume of traffic through the site. The site allows customers to pay for goods and arrange delivery methods using credit cards. You have read through the requirements and have a rough design in your head. Which of the following is the most appropriate rough design for this site?

AHave an Entity Bean to represent the customer. Use a Servlet to manage the users session and use BMT to manage the transactions.
BHave an Entity Bean to represent the customer. Use a Stateful Session Bean to manage the users session and use BMT to manage the transactions.
CHave an Entity Bean to represent the customer. Use a Servlet to manage the users session and use CMT to manage the transactions.
DHave an Entity Bean to represent the customer. Use a Stateful Session Bean to manage the users session and use CMT to manage the transactions.

Choice C is correct.

The key to this question is the choice of Transactions: BMT or CMT. There is no need to control transactions at a fine level of granularity and Entity Beans cannot take part in BMT. Hence CMT may be a better choice. The Servlet is a more appropriate choice for handling the users session however you would still need another Stateful Session Bean for the business logic of the application.
--- End ---

Thanks in advance,
Dhanan.
Ok, done. Sorry for the trouble (I really don't have a family name, but anyway I'm adhering to the naming policy).
Thanks Barry. Have done so.

Regards,
Dhanan.
Hi Seema,

Noticed that Whizlabs SCJP 1.4 Simulator has 12 mock exams, whereas SCJP 5.0 has only 3 mock Exams. While I'm still wondering on the drastic difference, my actual question is this: after taking all the 3 mock exams, if I want to re-take any of the mock exams, won't I be already familiar with the questions that I would end up answering them from my memory rather than analysing the problem? How do you tackle this situation?

Regards,
Dhanan.