It is a little confusing about how i described the problem.

the scenario is a java-bean named Foo.java is a simple bean that
consume a Facade EJB-SLSB, this Foo.java is registered on the
flex-config as a named="FooSrv", remote-object with stateful-class.

We all basically know that when there are no references on an object
it is directly thrown into a trash-bin for GC to collect but when i
tried to call unloadMovie() where basically destroys the flex-app
together with the reference to the FooSrv-remoteObject, and calling
the controller-javabean to invalidate session using
flashgateway.getSession,

It do log-me out remove some initialized stuff for session-and-jaas
handling but the problem is that the reference of the flex-app to the
FooSrv isn't garbage collected,

------------

this is not a problem when I make the FooSrv flex-config into a
stateless-class, it naturally release-references lock but having like
13 instances on a method-invocation giving a lot processing and eating
too much traffic on the network isn't good.

I also tried using a local-server-state-session-type bean with a bunch
of ThreadLocals for this, and it worked, but there is a larger
problem, coz re-coding and redesigning would eat too much time,
developing only the cool-flex-presentation over presentation layer.

is there something like 
fooSrvInstance = null;
to release the reference from the flex-app and unloadMovie() this
would kill it?

I'm using one stage where i load and unload flash-movies and flex-app
at the same time, the application is quite cool but on the
backend-it-hurts.





------------------------ Yahoo! Groups Sponsor --------------------~--> 
1.2 million kids a year are victims of human trafficking. Stop slavery.
http://us.click.yahoo.com/.QUssC/izNLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to