I have made further testing with changes to the find method in the session bean to return a value of 0 (for record not found) and 1 (for record found) instead of the Account class (null for record not found and not null for record found). The program now works with adding a new record if it is not found and returns an indicator of 1 if record is found. This testing reveals that if an object is returned by remote access from a session bean to a client program residing in another machine, an exception error is thrown. Does anybody encountered this problem before and have a soultion?
Further more, we may need to retrieve a List Object or a collection of objects from a remote client.