transmit data simply between server and client
===

So i am getting started with java enterprise edition and am confused by all this stuff.
all i want to do is to transmit data between the server and the client like this:

server                               client
--------------------------------------------
gets data<-------------------------sends it
processes it                       processes it 
sends it-------------------------->gets data

I want to do something simple(in a few lines) like:
String str = "hello world";
transmit((ip address goes here),(port goes here),str)

This question is probly not very good for Q and A, but i can't access the forums yet.
darn stackoverflow messed up all my formatting, the question is now unlegible.

