[Spark] Re: [osflash] Spark - Java server designed for Flash

Luke Hubbard (luke at codegent.com) king.selassie at gmail.com
Mon Jun 6 06:00:30 PDT 2005


Hi Ethan, 

> Your project is very interesting.  We are using openAMF with hibernate
> with some problems.   When you talk of compatibility with hibernate
> objects, do you mean avoiding the serialization issue with circular
> structure?  If so, how do you accomplish that, with FileBeanInfo?

I have reused the main AMF classes from OpenAMF but rewrote the
gateway, and service invocation to work withing spring and have
extended the serializer quite a bit. The problem with hibernate and
remoting is that objects are all interlinked and if you return a
single object you can end up returning the whole object tree. What the
serializer now does is check to see if referenced objects being
serialized are attached to a hibernate session. If they are instead of
writing the object it replaces it with a reference to the hibernate
object (which is really just its classname and id). These references
are stores in the session and can be resolved using a special remote
object service. This also works for other objects which implement the
remote object interface. Im also planning on adding support for advise
objects which would wrap responses from remoting calls. The advise
object would tell the serializer which types of objects to serialise
and may set a limit on the depth. This could also be achieved using
AOP.

> Remoting is a big part of our project, and we could possibly help with
> spark development.

I would love that. I've gotta finish up with the day job (today thats
working with jboss) then I can back to my spark work tonight, renaming
the packages and getting things ready for svn. Once its up I will
email out an announcement and tell people about the mailing list. Once
we have a little community setup on the list I think its time for a
bit of a brain storm about future development directions.

Regards,
Luke

PS. I've just copied the spark list in with this reply as I know how
useful email archives can be when you are looking for answers on how
things work. Hope you done mind.

> thanks,
> ethan
> 
> Luke Hubbard (luke at codegent.com) wrote:
> 
> >Sorry if this is a double post, but it didnt seem to come throught and
> >my 2nd test message did. So im trying again..
> >
> >Hi,
> >
> >I have been working on a Java server called Spark for a good few
> >months on and off. It started as some additions / changes to OpenAMF I
> >made last year for a client project to improve security and fix
> >problems using hibernate and remoting. From there it has grown into
> >what I hope will be be a great server-side framework for flash RIAs.
> >It is built on spring, has remoting (with added support for hibernate,
> >remote objects/collections, js objects) and is designed to be easy for
> >flash developers to pickup and use with xml config and the ability to
> >code remoting services in JavaScript (same as AS1), Java, and soon
> >even Groovy.
> >
> >Quick outline of design goals, features, and dependancies on a page in the wiki:
> >http://www.osflash.org/doku.php?id=spark
> >
> >I would like very much to host it at osflash (seems the perfect home)
> >if someone could give setup svn etc for me. We have a client project
> >based on it going live over the weekend. If all goes well I will tidy
> >up the code and add to svn next week.
> >
> >Regards,
> >Luke
> >
> >_______________________________________________
> >osflash mailing list
> >osflash at osflash.org
> >http://osflash.org/mailman/listinfo/osflash_osflash.org
> >
> >
> 
>



More information about the spark mailing list