Normale you have write your Java Applications on an Application-Server,Web-Server etc. From this Server you push data etc. trough the MDS of the BES to the Client.
Requests from the client takes the MDS/BES and checks the client. MDS/BES is mostly in the middle of Client and Web-Servers/ Internet/ Sql-Servers or Application-Servers
I hope you understand my bad english.