Download PDF (external access)

3rd International Conference on Evaluation of Novel Approaches to Software Engineering, Date: 2008/05/04 - 2008/05/07, Location: PORTUGAL, Funchal

Publication date: 2010-01-01
Volume: 69 Pages: 75 - 90
ISSN: 3642148182, 978-3-642-14818-7
Publisher: Springer-Verlag; Berlin Heidelberg

EVALUATION OF NOVEL APPROACHES TO SOFTWARE ENGINEERING

Author:

De Labey, Sven
Boydens, Jeroen ; Steegmans, Eric

Keywords:

service-oriented architecture, language concepts, Science & Technology, Technology, Computer Science, Information Systems, Computer Science, Software Engineering, Computer Science, Theory & Methods, Computer Science, Service-Oriented Architecture, Language Concepts

Abstract:

The Open Services Gateway initiative (OSGi) is a platform for running service-oriented Java applications. OSGi provides a central service registry to allow application components (so-called bundles) to share functionality. From the viewpoint of programming language development, OSGi leaves a lot of room for improvement. Its service query language, for instance, bypasses important compile-time guarantees and it works only for service metadata that never changes during the lifetime of a service. A second problem is that the event notification system requires programmers to write a considerable amount of boilerplate logic for reacting to service events. This obfuscates the business logic, which in turn decreases code comprehension and increases the odds for introducings bugs when implementing client-service interactions. This paper evaluates OSGi as a platform for programming client-service interactions in Java. After focusing on problems that relate to OSGi’s integrated service query language and its event notification system, we propose a solution based on a programming language extension. We also show how this extension is transformed to regular Java code so as to maintain interoperability with the OSGi specification.