Fuse 6 is no longer supported
As of February 2025, Red Hat Fuse 6 is no longer supported. If you are using Fuse 6, please upgrade to Red Hat build of Apache Camel.Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
2.2. Sample OSGi Application
Example of bundle dependencies
Link kopierenLink in die Zwischenablage kopiert!
				Figure 2.2, “Sample OSGi Application” shows an overview of a sample OSGi application consisting of five bundles, which illustrates the basic bundle types discussed in the previous section. The application is driven by the 
hello-consumer bundle, which imports a HelloParis service from the hello-paris bundle and imports a HelloBoston service from the hello-boston bundle.
			Figure 2.2. Sample OSGi Application
The sample bundles
Link kopierenLink in die Zwischenablage kopiert!
				The sample OSGi application consists of the following bundles:
			
- time-util
- Fits the pattern of a library bundle. Thetime-utilbundle is a utility library that can createClockinstances that tell the time in a particular time zone.Thetime-utilbundle is implemented using classes from the JDK and thus has no external package dependencies.
- hello-paris
- Fits the pattern of an API bundle. Thehello-parisbundle consists of a single Java interface, which returns a greeting,getGreeting(), and gives the local time in Paris,getLocalTime().Thehello-parisbundle has the following external package dependency:org.fusesource.example.time org.fusesource.example.timeCopy to Clipboard Copied! Toggle word wrap Toggle overflow 
- hello-paris-impl
- Fits the pattern of a provider bundle. Thehello-paris-implbundle implements thehello-parisAPI bundle.Thehello-paris-implbundle has the following external package dependencies:org.fusesource.example.hello.paris org.fusesource.example.time org.fusesource.example.hello.paris org.fusesource.example.timeCopy to Clipboard Copied! Toggle word wrap Toggle overflow 
- hello-boston
- Fits the pattern of an API/provider combination bundle. Thehello-bostonbundle combines a Java interface and its implementation, where the Java interface returns a greeting,getGreeting(), and gives the local time in Boston,getLocalTime().Thehello-bostonbundle has the following external package dependency:org.fusesource.example.time org.fusesource.example.timeCopy to Clipboard Copied! Toggle word wrap Toggle overflow 
- hello-consumer
- Fits the pattern of a consumer bundle. Thehello-consumerbundle imports theHelloParisOSGi service and theHelloBostonOSGi service and then invokes on these services to report the local times in Paris and in Boston.Thehello-consumerbundle has the following external package dependencies:org.fusesource.example.hello.paris org.fusesource.example.hello.boston org.fusesource.example.time org.fusesource.example.hello.paris org.fusesource.example.hello.boston org.fusesource.example.timeCopy to Clipboard Copied! Toggle word wrap Toggle overflow 
