Fixed connections to middleware (at least appserver -> middleware)