Permalink
Browse files

updated blobstore karaf

  • Loading branch information...
1 parent 0a6e088 commit fc4f8a49127ee5e41ffc4d7d3e452bbdae72f66f Adrian Cole committed May 2, 2012
@@ -28,7 +28,7 @@
<groupId>org.jclouds.examples</groupId>
<artifactId>blobstore-karaf-shell</artifactId>
- <version>1.0.0</version>
+ <version>1.0-SNAPSHOT</version>
<name>blobstore-karaf-shell</name>
<packaging>bundle</packaging>
<description>jclouds karaf example that uses a blobstore from the karaf shell</description>
@@ -100,18 +100,18 @@
<dependency>
<groupId>org.apache.karaf.shell</groupId>
<artifactId>org.apache.karaf.shell.console</artifactId>
- <version>2.2.0</version>
+ <version>2.2.5</version>
</dependency>
<dependency>
<groupId>org.jclouds</groupId>
<artifactId>jclouds-blobstore</artifactId>
- <version>1.5.0-alpha.1</version>
+ <version>1.5.0-alpha.6</version>
</dependency>
<dependency>
<groupId>org.jclouds</groupId>
<artifactId>jclouds-allblobstore</artifactId>
- <version>1.5.0-alpha.1</version>
+ <version>1.5.0-alpha.6</version>
</dependency>
</dependencies>
@@ -92,7 +92,7 @@ public void write(String bucket, String blobName, Object object) {
context = new BlobStoreContextFactory().createContext(provider, accessKeyId, secretKey);
if (context != null) {
BlobStore blobStore = context.getBlobStore();
- Blob blob = blobStore.newBlob(blobName);
+ Blob blob = blobStore.blobBuilder(blobName).build();
ByteArrayOutputStream baos = new ByteArrayOutputStream();
ObjectOutputStream oos = null;

0 comments on commit fc4f8a4

Please sign in to comment.