The two versions need not be related. Take for example the case of an HTTP server service. I implement my own HTTP server in the bundle com.example.service.http. Since this bundle is new, I mark it as version 1.0.
Bundle-SymbolicName: com.example.service.http Bundle-Version: 1.0.0 This bundle also exports packages for the J2EE Servlet API version 2.3. Export-Package: javax.servlet; version="2.3.0" When an importer comes along looking for the Servlet 2.3 API, they don't need to worry about which bundle is providing it. Import-Package: javax.servlet; version="2.3.0" Hope that helps. Jeremy On 3/13/07, Trustin Lee <[EMAIL PROTECTED]> wrote:
Hi OSGi community, I'm reading OSGi tutorials in EclipseZone, and have a question about the version numbers in a manifest file. What is the difference between the 'Bundle-Version' and the 'version' attribute in 'Export-Package'? Can each version number of the exported packages have different version numbers and are they also considered irrelevant from the Bundle-Version? If so, should I specify the version number of the package I want to access along with the version of the bundle? It sounds very awkward to me. Thanks, Trustin -- what we call human nature is actually human habit -- http://gleamynode.net/ -- PGP Key ID: 0x0255ECA6 _______________________________________________ OSGi Developer Mail List [email protected] http://www2.osgi.org/mailman/listinfo/osgi-dev
_______________________________________________ OSGi Developer Mail List [email protected] http://www2.osgi.org/mailman/listinfo/osgi-dev
