FileDocCategorySizeDatePackage
Client.javaAPI DocJBoss 4.2.11945Fri Jul 13 20:55:26 BST 2007org.jboss.tutorial.blob.client

Client

public class Client extends Object
Comment
author
Bill Burke
version
$Revision: 57207 $

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

      InitialContext ctx = new InitialContext();
      LobTester test = (LobTester) ctx.lookup("LobTesterBean/remote");
      long blobId = test.create();
      HashMap map = test.findBlob(blobId);
      System.out.println("is hello in map: " + map.get("hello"));
      System.out.println(test.findClob(blobId));
      System.out.println("creating and getting a BlobEntity2 that uses byte[] and String instead of Clob/Blob");
      blobId = test.create2();
      BlobEntity2 entity = test.findBlob2(blobId);