Rushikesh Shenwai

Greenhorn
+ Follow
since Mar 27, 2003
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 Rushikesh Shenwai

hi,
I am having some problem with the code developed on 1.3.1 edition, and now running on 1.4.0
Actually i have a session bean and a client. The client gets the initialContext and then
performs a JNDI lookup for the bean. The code for JNDI lookup is as shown -
SessionHome home = (SessionHome)context.lookup(BEAN_JNDI_NAME);
Session remote = (Session)home.create();
where, 'SessionHome' is the Home interface for my bean
and 'Session' is the Remote interface.
While this ClassCasting is perfectly fine in 1.3.1, it gives error with the 1.4.0
The exception raised is ofcourse 'ClassCastException'. That means it's not allowing the casting
of bean object to its subclass home object.
The exception persist even with RMI-IIOP (PortableRemoteObject method).
This seems to be a loose-end in 1.3.1 which must have been fixed in 1.4.0
If it is so, then how to go ahead with JNDI lookup in 1.4.0 ?
Relevent Details:
Platform -> Solaris 7
EJB -> 2.0
regards,
Rushikesh