In this paper, we design a context-aware architecture for dealing with intelligent application services in ubiquitous computing. The context-aware architecture is composed of middleware, context server, and client. The middleware component of our context-aware architecture plays an important role in recognizing a moving node with mobility by using a Bluetooth wireless communication technology as well as in executing an appropriate execution module according to the context acquired from a context server. The context server functions as a manager that efficiently stores into the database server context information, such as user's current status, physical environment, and resources of a computing system. To verify the usefulness of our architecture, we finally develop a context-aware application system base on it, which provides users with a music playing service in ubiquitous computing environment.