Binary object storage in VAST

VA Smalltalk is a "100% VisualAge compatible" IDE that includes the original VisualAge technology and the popular VA Assist and WidgetKit add-ons.

Moderators: Eric Clayberg, wembley, tc, Diane Engles, solveig

Binary object storage in VAST

Postby mmahesh_k » Tue Mar 04, 2008 8:28 am

Do VAST have Binary object storage feature like BOSS in VisualWorks? Please let me know.

Thanks,
MK
mmahesh_k
 
Posts: 9
Joined: Wed Nov 14, 2007 10:11 am

Re: Binary object storage in VAST

Postby jtuchel » Tue Mar 04, 2008 9:01 am

MK

in VA Smalltalk there is ObjectDumper which provides quite the same functionality.

Joachim
jtuchel
[|]
 
Posts: 245
Joined: Fri Oct 05, 2007 1:05 am
Location: Ludwigsburg, Germany

Re: Binary object storage in VAST

Postby mmahesh_k » Tue Mar 04, 2008 11:08 am

Is it possible to dump the service object or container at packaging time?
My requirement is i want the Wsdls to be deployed at packaging time and dumped as a file. So that on each time i load the application, i want my the service object to be loaded from the dumped file. I have written code to dump the service object or container, but i am getting exception.

Please someone help on this.

| dumper targetObject stream factory aServiceCollection aService |

factory := ( SstWSContainer createContainerNamed: 'container' ) handlerFactory.
aServiceCollection := factory container deploy: 'wsdl link').
aService := aServiceCollection first.
targetObject := aService sstContainer.
(stream := CfsWriteFileStream open: 'c:\dumpObject.bos') isCfsError
ifTrue: [
self error: stream printString].
stream isBytes: true.
dumper := ObjectDumper new.
dumper unload: targetObject intoStream: stream.
stream close.
dumper hasErrorOccurred
ifTrue: [self error: dumper currentErrorString].
mmahesh_k
 
Posts: 9
Joined: Wed Nov 14, 2007 10:11 am

Re: Binary object storage in VAST

Postby marten » Wed Mar 05, 2008 12:31 pm

mmahesh_k wrote:I have written code to dump the service object or container, but i am getting exception.


Perhaps it would be useful to let us know the exception or the walkback to give a meaningful answer ?

Marten
Marten Feldtmann, Principal Smalltalk User, Private
SkypeMe callto://marten.feldtmann
marten
[|]
 
Posts: 641
Joined: Sat Oct 14, 2006 7:10 am
Location: Hamburg - Germany


Return to VA Smalltalk 7.0, 7.5 & 8.0

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest