Why is using java.net.Socket so slow when used from a bean in jboss? Connecting then takes about 4-5 seconds. Connecting to mysql (not thru a connection pool) is only 20 msec.
When i use the same code in a standalone java application, connecting with a new Socket command is very fast, so the problemn is not my machine, or my network...