Adding OSGi metatype descriptions to a Liberty feature project
You can add OSGi metatype descriptions to a Liberty feature that was created with the WebSphere Application Server Developer Tools by creating a metatype XML file. You can package that file in an OSGi bundle project.
Procedure
Results
What to do next
You can add information to the metatype XML file. To describe your configuration by using the
OSGi metatype service, package the metatype XML file in the OSGI-INF/metatype
folder of one of your OSGi bundle projects, not in the Liberty feature project. For best results, put
the metatype XML file in the same OSGi bundle as the code that receives and processes the
configuration values, such as the associated ManagedService
implementation. For
more information, see Describing configuration by using the OSGi Metatype service and Localizing the configuration metadata.