BlazeDS, Flex, and Java - Can I treat a RemoteObject like an instance of the Java class? -
i'm sorry if question bit obvious, i'm new blazeds , can't seem find answer. i'm running java on blazeds server flex front-end. i'd able instantiate java class once, have flex use setters , getters play data in java class (in sense, treating remoteobject if instance of class). far i've read seems way blazeds works, every time call java method flex, calls java constructors again, resetting input setter methods. there way have server hold instance of java class between method calls? thanks!
you seem have misunderstanding of how works.
objects in flex client , objects on server independent. in normal circumstances, flash player/a flex app talks remote service using either webserice, httpservice, or remoteobject. remoteobject supports amf , flash remoting blazeds, livecycle data services, coldfusion, , ton of other server side software.
when make remote calls server, request no different standard web page call. exists in "isolation" , knows nothing other call. in traditional html development use session cookies keep track of server sessions in 'stateless' client. same can true flex calls. if server sets cookies on client; flash player include cookies in each request; matching service call server side session.
whether object created each call depends on remote call does.
the benefit amf / remoteobject offers can translate server side objects (java classes) client side objects (actionscript classes). used passing of data between 2 different entities. people make value objects/data transfer objects this; classes can have same exact functionality. not same object exists in both flex , java.
does help?
Comments
Post a Comment