Hi,

It may be because of the way that the .equals() method is written for your 
class.  For example, the Object class itself says that two objects are 
equal only if they are the SAME object.  After they are passed BY VALUE 
(i.e. through serialization) to a session bean they can no longer be the 
same object (even if they were initially) and so will always be "not equal".

For your particular class it might make sense to write a more relevant 
.equals() method.

Nick

At 04:22 PM 1/16/01 +1100, you wrote:
>'lo all,
>
>I am experiencing a wierd problem/feature with orion v1.4.4
>
>I have a servlet that calls a stateless session bean with lets say paramaters
>of the same object type.
>
>eatme( Object o1, Object o2)
>
>The stateless session bean uses the .equals method of the object to see if
>o1.equals( o2) and so on.
>
>If I call this method from a java client with o1 and o2 the same object,
>o1.equals( o2) is true.
>
>However if I call this method with o1 and o2 the same object from a servlet
>o1 does not equal o2.
>
>Feature? Bug? Something that I sould not be doing?????
>
>If anyone has any experience with the same problem I would appreciate any
>comments.
>
>--
>
>Adam Cassar
>Technical Development Manager
>___________________________________________
>NetRegistry http://www.netregistry.au.com
>Tel: +61 2 9641 8605 | Fax: +61 2 9699 6088
>PO Box 270 Broadway NSW 2007 Australia


Reply via email to