Saving temporary data to be sharted by all extensions

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

eyal
Posts: 35
Joined: 29 Nov 2009, 11:18

Saving temporary data to be sharted by all extensions

Postby eyal » 18 Jan 2010, 09:07

Hi.
How can SFS hold a temporary data which must be shared by all of the extensions of the same zone without using a database?
Thanks,
Eyal.
User avatar
Lapo
Site Admin
Posts: 23007
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 18 Jan 2010, 11:00

How about objects in memory?
Or files?
Lapo
--
gotoAndPlay()
...addicted to flash games
eyal
Posts: 35
Joined: 29 Nov 2009, 11:18

Postby eyal » 18 Jan 2010, 11:16

How can I share object that lives in the memory? Can ii use static variables?
User avatar
Lapo
Site Admin
Posts: 23007
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 18 Jan 2010, 11:22

What language do you use on the server side?
Lapo

--

gotoAndPlay()

...addicted to flash games
eyal
Posts: 35
Joined: 29 Nov 2009, 11:18

Postby eyal » 18 Jan 2010, 11:46

I'm using Java
User avatar
Lapo
Site Admin
Posts: 23007
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 18 Jan 2010, 13:36

A singleton would be a good option.
Singletons, however require some extra care because they need to be seen globally by all Extensions which are loaded in separated class loaders.

You can read more details here:
viewtopic.php?t=6395
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “Server Side Extension Development”

Who is online

Users browsing this forum: No registered users and 18 guests