• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

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

 
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
 
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.
 
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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!