Integration between flex, java and mysql