A Design Pattern for Service Injection and Composition of Web Services for Unstructured Peer-to-Peer Computing Systems with SOA

  • Vishnuvardhan Mannava
  • T. Ramesh
  • Mohammed A. R. Quadri
Part of the Advances in Intelligent Systems and Computing book series (volume 167)


Adaptability in software is the main fascinating concern for which today’s software architects are really interested in providing the autonomic computing. Different programming paradigms have been introduced for enhancing the dynamic behavior of the programs. Few among them are the Aspect oriented programming (AOP) and Feature oriented programming (FOP) with both of them having the ability to modularize the crosscutting concerns, where the former is dependent on aspects ,advice and lateral one on the collaboration design and refinements. In order to provide remedy for the service failures that occurs at the servers of the respective service providers, there is a need to introduce the self-reconfiguration planes to be applied autonomically without the interruption of the administrator to solve the problem manually. In this paper we will Propose an Service Injection Design Pattern for Unstructured Peer-to-Peer networks, which is designed with Aspect-oriented design patterns .We propose this pattern which is an amalgamation of the Strategy Design Pattern, Worker Object Aspect-Oriented Design Pattern, and Check-List Design Pattern these can be used to design the Self-Adaptive Systems. The main concept here is that when a client requests for a complex service then Service Composition should be down to fulfill the request. With the help of strategy pattern we can choose a service that can do the task of two or more services at a single click. With the Web Service Description Language (WSDL) which is an XML file that can be requested from all the Web Services providing peers (as HTTP GET). This file contains the all the description about the service, means the input and output parameters of that service and its location details. When a client requests for a service that is not loaded currently in the memory will be injected as Aspectual Feature Module code. Here we will be using the Service Oriented Architecture (SOA) with Web Services in Java to Implement the Design Pattern. The pattern is described using a java-like notation for the classes and interfaces. A simple UML class and Sequence diagrams are depicted.


Autonomic system Design Patterns Aspect-Oriented Programming Design Pattern Feature-Oriented Programming (FOP) Aspect-Oriented Programming (AOP) JXTA Service Oriented Architecture (SOA) Web Services Web Service Description Language (WSDL) 


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.


  1. 1.
    Dobson, S., Sterritt, R., Nixon, P., Hinchey, M.: Fulfilling the Vision of Autonomic Computing, vol. 43, pp. 35–41. IEEE Computer Society (2010), doi:doi:10.1109/MC.2010.14Google Scholar
  2. 2.
    JXTA Java Standard Edition v2.5: Programmers Guide, © 2002-2007 Sun Microsystems, Inc. (September 10, 2007) Google Scholar
  3. 3.
    Gamma, E., Helm, R., Johnson, R., Vlissides, J.: Design Patterns: Elements of Reusable Object-Oriented Software. Addison-Wesley (1995)Google Scholar
  4. 4.
    Kuhlemann, M., Rosenmuller, M., Apel, S., Leich, T.: On the Duality of Aspect-Oriented and Feature-Oriented Design Patterns. In: Proceedings of the 6th Workshop on Aspects, Components, and Patterns for Infrastructure Software. ACM, New York (2007), doi:10.1145/1233901.1233906Google Scholar
  5. 5.
    Hannemann, J., Kiczales, G.: Design Pattern Implementation in Java and AspectJ. In: Proceedings of the International Conference on Object-Oriented Programming, Systems, Languages, and Applications (OOPSLA), pp. 16–17 (2002), doi:10.1145/583854.582436Google Scholar
  6. 6.
    Tarr, P., Ossher, H., Harrison, W., Sutton, J.S.M.: N Degrees of Separation: Multi-Dimensional Separation of Concerns. In: Proceedings of the International Conference on Software Engineering (ICSE), pp. 107–119. 10.1145/302405.302457 (1999)Google Scholar
  7. 7.
    Laddad, R.: AspectJ in Action, 2nd edn., ch. 12. Manning (2010)Google Scholar
  8. 8.
    Prasad Vasireddy, V.S., Mannava, V., Ramesh, T.: A Novel Autonomic Design Pattern for Invocation of Services. In: Wyld, D.C., Wozniak, M., Chaki, N., Meghanathan, N., Nagamalai, D. (eds.) CNSA 2011. CCIS, vol. 196, pp. 545–551. Springer, Heidelberg (2011), doi:10.1007/978-3-642-22540-6_53CrossRefGoogle Scholar
  9. 9.
    Apel, S., Leich, T., Saake, G.: Aspectual Feature Modules. IEEE Transactions on Software Engineering 34(2) (2008), doi:10.1109/TSE.2007.70770Google Scholar
  10. 10.
    Ferscha, A., Hechinger, M., Mayrhofer, R., Chtcherbina, E., Franz, M., dos Santos Rocha, M., Zeidler, A.: Bridging the gap with P2P patterns. In: Proceedings of the Workshop on Smart Object Systems, In conjunction with the Seventh International Conference on Ubiquitous Computing (2005)Google Scholar
  11. 11.
    Ramirez, A.J., Betty, H.C., Cheng: Design Patterns for Developing Dynamically Adaptive Systems. In: Proceedings of the 2010 ICSE Workshop on Software Engineering for Adaptive and Self-Managing Systems. ACM, New York (2010), doi:10.1145/1808984.1808990Google Scholar
  12. 12.
    Batory, D., Sarvela, J.N., Rauschmayer, A.: Scaling Step-Wise Refinement. IEEE Transactions on Software Engineering 30(6), 187–197 (2003), doi:10.1109/ICSE.2003.1201199Google Scholar

Copyright information

© Springer-Verlag GmbH Berlin Heidelberg 2012

Authors and Affiliations

  • Vishnuvardhan Mannava
    • 1
  • T. Ramesh
    • 2
  • Mohammed A. R. Quadri
    • 1
  1. 1.Department of Computer Science and EngineeringK.L. UniversityVaddeswaramIndia
  2. 2.Department of Computer Science and EngineeringNational Institute of TechnologyWarangalIndia

Personalised recommendations