In recent years' usage of web applications has increased. Therefore, it has become increasingly important how these applications are designed and developed. The microservice architecture addresses the needs of modern business applications with a large number of users and iterative development. The architecture focuses on decomposing applications into small autonomous services which are deployed and managed independently. However, developing true microservices in Java EE is not possible with the currently available tools. In this thesis we designed and implemented a framework for developing microservices with stock Java EE technologies. The framework allows us to select the required Java EE components, which are then bootstrapped and packaged into an executable archive that has no external dependencies. It also greatly simplifies deploying and scaling developed microservices into various PaaS and other cloud environments. The key contribution of this thesis is an original framework for developing microservices using Java EE. It is the first such framework for the Java platform and enables easy and rapid development of microservices.