Thanks Jeanne, I get what you say about findAll() returning a collection of entity beans so I cannot use Comparable, but I'm quite a greenhorn to understand the rest of your answer .. how do I get value objects (java beans) for each EJB before sorting or how do I write a Comparator to sort by a specific field in the EJB??
Prakash, I'm going to try with ORDER BY, surely it will work for the sorting but, I still need my collection without repeated elements which means: imagine that my collection has names inside of it, for example: Jeanne, Farl, Farl, Prakash and Farl. What I want is to print in myjsp.jsp: Jeanne, Farl and Prakash, just printing the repeated elements (Farl) once � how is that done?? The Treeset was my only idea
Many thanks to both of you again