Re: sort an array

2006-06-27 Thread Sérgio Costa
ted } } Notice the type checking to make sure you don't put anything other than your class on your list. If you're not using Java 5.0, remove the from the list declaration. On 6/27/06, password password <[EMAIL PROTECTED]> wrote: Please, can you put an example? I don&#x

Re: sort an array

2006-06-26 Thread Sérgio Costa
Put them in a list and Collections.sort() them. All you'll need to do is create a Class with all those fields implementing Comparable, and implement the compareTo Method. hope it helps SC On 6/26/06, password password <[EMAIL PROTECTED]> wrote: Hi, I have a servlet and in this servlet I h

Re: Tomcat's scalability

2006-06-20 Thread Sérgio Costa
Be aware that Firewalls are known to drop idle TCP conections after a certain amount of time. We experienced a similar problem with a DB2 JDBC conection pool through a Cisco PIX. What was happening was the conections were closed by the firewall. When they were re-used, there was an added overhea