I wrote a BMP with a method to find all the record in the table, i put the information in a info object, which implements the serializable interface and definde the hashCode, equals method, then store the info in a array list.
when i recieve the collection from the client, something wrong with the classcast, i can not cast the info class from the collection.
why?
how can i do?
-
Problems with classcast (2 messages)
- Posted by: windyboy feng
- Posted on: June 26 2003 05:22 EDT
Threaded Messages (2)
- Problems with classcast by Brian Tinnel on June 29 2003 21:27 EDT
- Problems with classcast by Paul Strack on June 29 2003 22:21 EDT
-
Problems with classcast[ Go to top ]
- Posted by: Brian Tinnel
- Posted on: June 29 2003 21:27 EDT
- in response to windyboy feng
The return from your ejbFindXXX should be a Collection of primary keys. The container will then use that Collection to create a Collection of remote/local interfaces which is then returned to the client. Of course, I simplify a lot :-). -
Problems with classcast[ Go to top ]
- Posted by: Paul Strack
- Posted on: June 29 2003 22:21 EDT
- in response to windyboy feng
Try moving the logic from an Entity EJB to a Session EJB. Since you are just returning a collection of serialized objects anyway, the Entity EJB is overkill.