After a lot of looking and not finding an newbie-friendly explanation/example
of setting up a bundle fragment to solve this problem, I managed to patch
together a fragment (pasted below) from an online posting about version
numbers in OSGI that installs ok, but it hasn't solved my problem. Am I
doing something obviously wrong or leaving something out?

Thanks,
Bill


pom.xml========
<?xml version="1.0" encoding="UTF-8" ?> 
<project xmlns="http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
  <modelVersion>4.0.0</modelVersion> 
  <parent>
    <groupId>org.apache.servicemix.examples</groupId> 
    <artifactId>examples</artifactId> 
    <version>4.3.0</version> 
    <relativePath>../camel-blueprint-jdbc</relativePath>
  </parent>
  <dependencies>
    <dependency>
      <groupId>postgresql</groupId>
      <artifactId>postgresql</artifactId>
      <version>8.2-504.jdbc3</version>
    </dependency>
  </dependencies>
  <groupId>camel-blueprint-jdbc</groupId> 
  <artifactId>postgresql-bundle-frag</artifactId> 
  <version>0.9.10</version> 
  <packaging>jar</packaging> 
  <name>Camel Blueprint Postgresql Fragment Bundle</name> 
  <description>Shows how to create a fragment bundle that causes additional
packages from the JVM environment to be exported. After starting this
bundle, the OSGi console detail view of the system bundle
(/system/console/bundles/0) should list two com.example packages as being
exported. Those packages are just dummy examples, the list of exported
packages will obviously need to be adapted to create your own fragment
bundle.</description> 
    <build>
      <plugins>
        <plugin>
 
          <groupId>org.apache.maven.plugins</groupId> 
          <artifactId>maven-jar-plugin</artifactId> 
          <configuration>
            <archive>
              <index>true</index> 
              <manifest>
                <addClasspath>false</addClasspath> 
              </manifest>
              <manifestEntries>
                <Bundle-Version>0.9.10</Bundle-Version> 
               
<Bundle-Description>${project.description}</Bundle-Description> 
                <Bundle-Name>${project.name}</Bundle-Name> 
                <Bundle-DocURL>http://www.apache.org/</Bundle-DocURL> 
                <Bundle-ManifestVersion>2</Bundle-ManifestVersion> 
                <Bundle-Vendor>Apache Software Foundation</Bundle-Vendor> 
               
<Fragment-Host>org.apache.servicemix.examples.camel</Fragment-Host> 
               
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName> 
                <Import-Package>org.postgresql</Import-Package>
                <Export-Package>org.postgresql;
version=8.2.504</Export-Package> 
              </manifestEntries>
            </archive>
          </configuration>
        </plugin>
      </plugins>
    </build>
</project>

--
View this message in context: 
http://servicemix.396122.n5.nabble.com/Blueprint-postgresql-camel-jdbc-newbie-question-tp4994862p5011360.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to