• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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

 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you using client-side jar file??
 
Hd Desai
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes we are using client side JAR file.
 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
It runs on an internal combustion engine. This ad does not:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic