Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Hd Desai
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using client-side jar file??
 
Hd Desai
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes we are using client side JAR file.
 
Frank Ertl
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic