A stateless virtual machine using an application middleware in a cloud computing environment for realizing a stateless condition for an application in an application middleware environment, which is mapped into a storage device of a computer in the form of files, wherein the mapped files comprise an operating system image file stored in a physical system disc of the storage device of the computer, an application data image file stored in a physical data disc of the storage device of the computer, and an application middleware, wherein the operating system image file corresponds to the operating system, the application data image file corresponds to the application program data and stores an application containing application code and application data, which are application execution code and application log, and specifically comprises: the application data image file for storing the application; the operating system image file for storing the operating system; and the application middleware corresponding to the application, wherein the application middleware is composed of a middleware core and a middleware configuration, wherein the middleware core is used for performing a basic service of the middleware, and the middleware configuration is used for configuring a configuration required for the middleware itself and a configuration of the application and determines start parameters of the application; characterized in that the middleware core of the application middleware is stored in the OS image file, the middleware configuration of the application middleware is stored in the application data image file, and the middleware core and the middleware configuration are associated so as to realize that the middleware core specifies a corresponding middleware configuration, wherein a layer of configuration information concerning the middleware configuration containing position information of the middleware configuration is added into the middleware core to provide the association between the middleware core and the middleware configuration. the application data image file for storing the application; the operating system image file for storing the operating system; and the application middleware corresponding to the application, wherein the application middleware is composed of a middleware core and a middleware configuration, wherein the middleware core is used for performing a basic service of the middleware, and the middleware configuration is used for configuring a configuration required for the middleware itself and a configuration of the application and determines start parameters of the application; characterized in that the middleware core of the application middleware is stored in the OS image file, the middleware configuration of the application middleware is stored in the application data image file, and the middleware core and the middleware configuration are associated so as to realize that the middleware core specifies a corresponding middleware configuration, wherein a layer of configuration information concerning the middleware configuration containing position information of the middleware configuration is added into the middleware core to provide the association between the middleware core and the middleware configuration.