Now that's exactly how HTTP works, it opens a connection and closes it. As of HTML 5 and Java Servlet 3.0 spec there will be more support for things such as WebSockets to allow async communication...