You'll want to look at the Socket Class. It tells you how to set up a Java socket to a server. I'm not positive, but I think JavaEE is designed to allow for easy development of server and client...