Abstract:The technique of aspect oriented programming(AOP) is introduced.The middleware code is successfully encapsulated into a number of aspects by using AspectJ and Jini,which not only realize middleware transparency but also greatly simplify the development process of the application software.