Return-Path: X-Original-To: apmail-uima-user-archive@www.apache.org Delivered-To: apmail-uima-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 39B19425B for ; Wed, 15 Jun 2011 20:08:52 +0000 (UTC) Received: (qmail 69109 invoked by uid 500); 15 Jun 2011 20:08:52 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 69052 invoked by uid 500); 15 Jun 2011 20:08:51 -0000 Mailing-List: contact user-help@uima.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@uima.apache.org Delivered-To: mailing list user@uima.apache.org Received: (qmail 69044 invoked by uid 99); 15 Jun 2011 20:08:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jun 2011 20:08:51 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dubbels@us.ibm.com designates 32.97.110.149 as permitted sender) Received: from [32.97.110.149] (HELO e31.co.us.ibm.com) (32.97.110.149) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jun 2011 20:08:41 +0000 Received: from d03relay02.boulder.ibm.com (d03relay02.boulder.ibm.com [9.17.195.227]) by e31.co.us.ibm.com (8.14.4/8.13.1) with ESMTP id p5FJpOuY025438 for ; Wed, 15 Jun 2011 13:51:24 -0600 Received: from d03av05.boulder.ibm.com (d03av05.boulder.ibm.com [9.17.195.85]) by d03relay02.boulder.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id p5FK7qqw084798 for ; Wed, 15 Jun 2011 14:08:00 -0600 Received: from d03av05.boulder.ibm.com (loopback [127.0.0.1]) by d03av05.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p5FK7puQ021811 for ; Wed, 15 Jun 2011 14:07:51 -0600 Received: from d27ml101.rchland.ibm.com (d27ml101.rchland.ibm.com [9.10.229.40]) by d03av05.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id p5FK7pE2021775 for ; Wed, 15 Jun 2011 14:07:51 -0600 To: user@uima.apache.org MIME-Version: 1.0 Subject: XmiCasSerialization, XmiCasDeserialization and XmiSerializationSharedData X-KeepSent: 3CEA9541:E3067393-862578B0:006DCC0A; type=4; name=$KeepSent X-Mailer: Lotus Notes Release 8.0.2FP3 SHF32 December 02, 2009 Message-ID: From: Joel Dubbels Date: Wed, 15 Jun 2011 15:07:49 -0500 X-MIMETrack: Serialize by Router on d27ml101/27/M/IBM(Release 8.5.2FP2|March 10, 2011) at 06/15/2011 03:07:50 PM, Serialize complete at 06/15/2011 03:07:50 PM Content-Type: multipart/alternative; boundary="=_alternative 006E96B5862578B0_=" X-Virus-Checked: Checked by ClamAV on apache.org --=_alternative 006E96B5862578B0_= Content-Type: text/plain; charset="US-ASCII" New user question about serialization. I would like to serialize my CAS to disk and then later on, with a new program/invocation/whatever, I'd like to deserialize the CAS and work with it. When I do just normal serialization/deserialization I appear to be losing a lot of types from the typesystem (provided I am doing lenient deserialization), which results in a very empty CAS. I want exactly the same CAS as what I serialized out.. It looked like I was able to successfully serialize/deserialize when I used an XmiSerializationSharedData object between serialize/deserialize. However, if I want to do the deserialization in an different program/invocation/whatever from where I did the serialization, how do I preserve the XmiSerializationSharedData object that allows me to pick up all the types that I originally serialized out. Ie. do I have to somehow preserve/serialize the shareddata object (which seems silly and also not doable because it is not a serializable object). I'm sure there must be a straightforward way to do this. Anyone have an answer, or better yet, a good example? Thanks. Joel Dubbels Watson Solution Development Healthcare and Life Sciences Solution Development Phone: 507-253-1165 Internet:dubbels@us.ibm.com --=_alternative 006E96B5862578B0_=--