How would I save an object to disk separately and load it when needed?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How would I save an object to disk separately and load it when needed?

Frank Church-3
I am practicing the seaside.gemstone.com tutorial and I want to know
how to save just the object definitions and their data to a seperate
file, then load it again, or even into a different image and run the
website again.

It sounds like very newbie question, but I would be very much obliged.

/vfclists
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: How would I save an object to disk separately and load it when needed?

Paul DeBruicker
Hi Frank,


I've worked through that tutorial.  Look to chapter 14 for how to save
the object definitions.  The tool that does that is called Monticello.
 To backup Gemstone itself you can just make a backup of the
extent0.dbf file by clicking the Admin.... button in the GemTools
Launcher window and then selecting Backup Repository.  It will create
a backup of the data and object definitions in I think
/opt/gemstone/product/seaside/data/backups/ folder.  I'm not sure how
to just save the object data separately from the definitions.   The
backup file can be loaded into another image on another machine and
you should be able to pick up where you left off.  Also, for Gemstone
specific questions you should join the Beta mailing list for Gemstone
here: http://seaside.gemstone.com/mailman/listinfo/beta

I've cc'd your question to that list and imagine that someone there
will correct me if I've misled you or improve my answer as I'm sure
its not complete.

Good luck

Paul



On Tue, Jun 9, 2009 at 11:12 AM, Frank Church<[hidden email]> wrote:

> I am practicing the seaside.gemstone.com tutorial and I want to know
> how to save just the object definitions and their data to a seperate
> file, then load it again, or even into a different image and run the
> website again.
>
> It sounds like very newbie question, but I would be very much obliged.
>
> /vfclists
> _______________________________________________
> Beginners mailing list
> [hidden email]
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: How would I save an object to disk separately and load it when needed?

stephane ducasse
pay attention Monticello only save "programs" (class method  
definition) not objects (instance of classes).

Stef

On Jun 10, 2009, at 12:27 AM, Paul DeBruicker wrote:

> Hi Frank,
>
>
> I've worked through that tutorial.  Look to chapter 14 for how to save
> the object definitions.  The tool that does that is called Monticello.
> To backup Gemstone itself you can just make a backup of the
> extent0.dbf file by clicking the Admin.... button in the GemTools
> Launcher window and then selecting Backup Repository.  It will create
> a backup of the data and object definitions in I think
> /opt/gemstone/product/seaside/data/backups/ folder.  I'm not sure how
> to just save the object data separately from the definitions.   The
> backup file can be loaded into another image on another machine and
> you should be able to pick up where you left off.  Also, for Gemstone
> specific questions you should join the Beta mailing list for Gemstone
> here: http://seaside.gemstone.com/mailman/listinfo/beta
>
> I've cc'd your question to that list and imagine that someone there
> will correct me if I've misled you or improve my answer as I'm sure
> its not complete.
>
> Good luck
>
> Paul
>
>
>
> On Tue, Jun 9, 2009 at 11:12 AM, Frank  
> Church<[hidden email]> wrote:
>> I am practicing the seaside.gemstone.com tutorial and I want to know
>> how to save just the object definitions and their data to a seperate
>> file, then load it again, or even into a different image and run the
>> website again.
>>
>> It sounds like very newbie question, but I would be very much  
>> obliged.
>>
>> /vfclists
>> _______________________________________________
>> Beginners mailing list
>> [hidden email]
>> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>>
> _______________________________________________
> Beginners mailing list
> [hidden email]
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners