0

In a Karaf .kar file, should the blueprint xml file be inside the jar contained in the kar file OR should it be within the kar file itself.

Also, can a blueprint xml be inside a Karaf .kar file or must it be within the contained jar contained within the .kar?

Phil
  • 46,436
  • 33
  • 110
  • 175

1 Answers1

1

Karaf allows to deploy plain blueprint.xml files but this is not covered by any standard. The blueprint spec conformant way to deploy a blueprint.xml is to put it into a bundle in the path OSGI-INF/blueprint.

You put the blueprint file into the jar and the jar into the kar.

Phil
  • 46,436
  • 33
  • 110
  • 175
Christian Schneider
  • 19,420
  • 2
  • 39
  • 64
  • When you say " put it into a bundle" do you mean put it into a JAR which is inside the KAR file? I mean, Karaf allows deploying of JAR or KAR files, KAR files contain JAR's, so I'm trying to work out where I am allowed to place blueprint xml files. – Phil Mar 18 '15 at 07:12
  • You put the blueprint file into the jar and the jar into the kar. – Christian Schneider Mar 18 '15 at 10:18