I need to communicate with a service on a remote machine via TCP. I have a REST service the gets invoked and it makes a call via java.net.Socket to a remote host for some status information. Is there a best practice for doing this sort of thing from with Jboss. I have been told to use and EJB so that Jboss can manage the resource. Is that true? Any help is much appreciated.