aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes URGENT ....... synchronization error in session beans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "URGENT ....... synchronization error in session beans" Watch "URGENT ....... synchronization error in session beans" New topic
Author

URGENT ....... synchronization error in session beans

Hd Desai
Ranch Hand

Joined: Aug 04, 2003
Posts: 65
Hi,

I am facing some problem in session beans.

We are not using javascript in our project.We are using ValueObject Pattern for validation purpose.

Now the problem is in the input validator , it is first comparing the instance of the object.

e.g locationcodekey instanceof (locationcodekey) with java.lang.class method

So this is comparing server and client instance.

This always returns false due to which errors are coming.But when I write locationcodekey.getclass() , its returning me correct answer.

So i guess its because of the runtime synchrnization happens between client and sever JARs.There class ids are not matching.

Pls suggest solution to this problem.

I am using EJB 2 and WSAD 5.1

Thnx in advance
Narayan R
Greenhorn

Joined: Jul 11, 2005
Posts: 22
Are you using client-side jar file??


SCJP 1.4, SCWCD 1.4, SCBCD 1.3
Hd Desai
Ranch Hand

Joined: Aug 04, 2003
Posts: 65
yes we are using client side JAR file.
Frank Ertl
Ranch Hand

Joined: Apr 25, 2005
Posts: 59
Maybe I don't understand your question, but I think you should do the instanceof-stuff with the component interface and not the bean class itself.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: URGENT ....... synchronization error in session beans