Shared Objects Accessed by different SWFs

Hi Everyone,
Just wondering how I can make a shared object be able to be accessed by different SWFs on the same server.
Thanks.

Like this? SharedObject.getLocal("status", "/");

Similar Messages

  • Sharing object across 2 different web application

    Hello,
         I do not know if this is a right place to ask this kind of question...
         I have two different web applications running on 2 different tomcat servers.
         One of them creates one object ( say myComplexClassObject) which is serializable..
         and I want to share this object in another web applications.
         Both the apps are developed using JSP and servlets.
         Is there any way, I can make this object available in another application ?
         As the request object can not be used across 2 different contexts, I can not set it as attribute on request.
         I tried serializing myComplexClassObject in some test.dat. Problem going by this way is that
         how do I send this file to another application ?
         What I did is as follows....
         In the first app , I created the object and serialized it in one file test.dat. In the same app I read
         test.dat and send the content as query parameter to a JSP in another app. That JSP collects all the query parameters
         and constructs a big string out of it and then writes it to a file, test2.dat and tries to deserialize this.
         File sizes come out to be same. But it gives me StreamCorruptedException.
         Any idea, where I am doing wrong ? or any other way to share this object or to send the file to another app?
         I can not use FTP for some reasons. Size of the test.dat file is more than 10 KB.

    Some possible solutions:
    Use a webservice calls to pass the object,
    Use JAXB to convert the object to XML, pass the XMLover HTTP or a socket and use JAXB to convert the XML back into an object.
    Store the object as a blob in a database.
    Store the object in a Java aware database that can handle Java objects.
    Store the data in the object in a database.
    I am curious as to what information ot functionality is contained in this object that you feel the need to pass it between two servers.

  • Different subdomains, getting same Shared Object?

    Hi All,
    I need to share a shared object (SO) between different subdomains. Is this possible?
    What I see is that when flushing the SO from domain 1 it stores the SO within:
    ...AppData\....HU\www1.mysite.com
    And when flushing the SO from domain 2 it stores the SO within:
    ...AppData\....HU\www2.mysite.com
    Having this information it looks like it isn't possible...? Or is there an other way to achieve this?
    Thanks!

    http://www.adobe.com/devnet/flash/articles/saving_state_air_apps.html

  • Shared object and different application servers - how to resolve this issue

    Dear SDN Members,
    We are occuring a big problem. We create a shared object in a program and after we call in an another one. In central system architecture, it is working well. But on a distributed architecture (4 application servers), we have a dump some times. In fact, the read of the shared object can be occured in the AS 4 but the share object has been created in AS1.
    How to manage this problem to avoid this dump ?
    Dupplicate the shared object in the application servers ?
    Encapsulate different calls with RFC link to only one AS ?
    Any parameters on server or share objects ?
    Thanks a lot for your help,
    Points will be given to right or good answers.
    Br,
    Aurélien

    What is the dump you are getting ?
    AFAIK, "Shared Memory"(SHM) is an area defined in the app server. I am not sure if you can access SHM of a different app server (as in your case trying to access SHM of AS1 from AS4). [http://help.sap.com/abapdocu_70/en/ABENSHARED_MEMORY_GLOSRY.htm]
    In this case you can opt for "DataBase Clusters". Relevant ABAP statements: [IMPORT|http://help.sap.com/abapdocu_70/en/ABAPIMPORT_MEDIUM.htm#!ABAP_ALTERNATIVE_4@4@]/[EXPORT|http://help.sap.com/abapdocu_70/en/ABAPEXPORT_DATA_CLUSTER_MEDIUM.htm#!ABAP_ALTERNATIVE_4@4@] FROM/TO DATABASE.
    Hope this helps.
    BR,
    SUhas

  • JNI accessing shared object library (3GPP AMR codec) in linux

    Hi,
    We built a shared object (.so) library including the 3GPP AMR codec implementation. (NB: AMR codec is a speech encoder/decoder).
    When trying to access this library from a JNI app this gives incorrect results but when trying to use the same library with a simple C program it gives the expected results !
    We believe that the JNI environment makes some unexplained modification to the runtime environment that makes this library to not work correctly. Do you know what could explain this strange behaviour ?
    Used JSDK: 1.4.2_10
    platform: Fedora Core 4 2.6.11-1.1369_FC4
    Regards,
    Pascal

    Hi,
    Thank your for your answer!
    Well I don't know if I can enter in details here but here is what's happening:
    0) we built a shared object library (.so) including the 3GPP AMR codec and some functions calling the codec operations (decode, encode, etc.)
    1) in the C++ JNI wrapper we call the function Speech_Decode_Frame() of the 3GPP AMR codec with in input an array of Word16 (= type "short"),
    2) when we link the library created in 0) with a small .cpp program, the function Speech_Decode_Frame() returns the speech decoded correctly in a an array of Word16 as well,
    3) when we used the same library with a JNI application, the call to Speech_Decode_Frame() returns only a table of zeros --> incorrect result
    We're currently tracking down in the source code of the 3GPP AMR where the result array gets these 0.
    We'd like to understand what in the JNI runtime environment could make the library to behave differently.
    Regards,
    Pascal

  • Local Shared Objects and multiple SWFs: mutexes necessary?

    I will have multiple SWFs on a single web page, each reading
    and writing the same SharedObject, which may be up to 100K in size.
    Will I need to create some sort of mutex scheme to ensure that one
    SWF isn't writing while another is reading, or do all SWFs on a
    page essentially run as a single-threaded application?

    >1) I don't think a SharedObject.flush is synchronous.
    I believe it is, as long as you're not attempting to write
    more data than the user has set for the Local Storage limit.
    http://livedocs.adobe.com/flex/3/langref/flash/net/SharedObject.html#flush()
    You'll note that flush is described this way: "Immediately
    writes a locally persistent shared object to a local file", and if
    it returns "SharedObjectFlushStatus.FLUSHED" that means that "The
    shared object has been successfully written to a file on the local
    disk". So I'd say that the normal operation of flush() is
    synchronous. However, the SharedObjectFlushStatus.PENDING state
    means that we've exceeded the limit set by the user, and are
    waiting for them to allow or disallow it. I believe (strongly) that
    that's the only case in which a netStatus event is sent.
    Do you read this differently?
    As far as multiple SWFs running as cooperative or preemptive
    multitasking processes, I'd really like to know the answer, but it
    probably doesn't matter. The more I read and think about this, the
    more it seems to me that Adobe has to prevent simultaneous reads
    and writes to a single Shared Object from taking place, as one use
    of it that I've read about is to share data between SWFs. For
    example:
    http://www.devarticles.com/c/a/Flash/Communication-and-Security-with-the-Flash-Communicati on-Server/1/

  • Add ABAP program: validating package - error accessing shared objects-area

    When adding a new program or browsing the packages in eclipse i get an "error accessing shared objects-area".
    I can edit, save and run existing ABAP reports, however.
    There was a similar problem here, regarding database procedure proxies but the solution doesn't apply to my problem, i guess. The solution was about creating the shared memory area CL_RIS_SHM_AREA. I can't access the memory area and start the constructor, as it doesn't show up on the monitor.
    ADT 2.28
    Eclipse 4.3
    Netweaver 7.31 SP4 -> is this really compatible with ADT 2.28?
    Thanks in advance for helpful hints,
    Julian

    HI Julian,
    if the area doesn't show up in the monitor, please try to start the constructor in transaction SHMM on your own by selecting the icon 'Start Constructor' as shown in the screenshot.
    Choose CL_RIS_SHM_AREA as area, select 'Default Instance' and 'Dialog' as execution mode. Then press 'Create'. Either this works or the system will tell you the issue with the instance creation (e.g. insufficient shared objects memory - see the other solution description).
    Best regards, Sebastian

  • Accessing an object from a different server

    Hi,
    I am making a program that will access an object from a different server.
    I have a program that when I run calls a jsp page running on Server A which in turn should request an object A from Server B.
    I am relatively new to Java and jsp. What would my best course of action be.
    Thanks in advance,
    Brian

    Or RMI?OK, sounds good, I will look up some RMi on the site.
    Thanks, will prob have more questions for you later.

  • Are Cross Domain Flash Local Shared Objects (LSO aka Flash Cookie) possible

    Hi,
    I found several solutions for creating Flash LSOs from JavaScript (for example: http://www.nuff-respec.com/technology/cross-browser-cookies-with-flash )
    If Page (www.hostA.com/index.html) and the .swf file are from the same site, everything works fine.
    Now I'm trying to load the page form www.hostA.com/index.html, which includes www.hostB.com/flashcookie.swf (different sites). But then I cannot read or store the LSO.
    I have tried several configurations (crossdomain.xml,  Security.allowDomain("...") ), but nothing works.
    Is this kind of cross domain access to a LSO possible?
    Can a flash based advertisement delivered by a 3rd party save a LSO on my disc?
    Thanks
    -stephan

    I 100% agree!  We have an application that the Government requires information to be stored on the users computer as part of Multi-Factor-Authentication.  We originally wrote it as a browser application and when everyone and their brother started deleting browser cookies because of security concerns, we totally re-wrote it as a Flash application to take advantage of permanent storage.  This new "feature" in Flash Player is causing much concern because thousands of users will need to start answering lots of security questions every single time they use the application (ie: daily) and our staff is having to handle technical support questions that shouldn't exist.  Right now it's only IE that's causing the issue, but I'm sure every browser and Internet Security program will soon be adding this to their products.  There should at least be a way for the USER to white-list a specific Domain so Flash could exempt those sites from ANY external program trying to delete ALL Shared Objects/Local Storage/Flash Cookies.  The USER should be given that choice.  This would satisfy the extra privacy you are putting in there and still allow information to be stored from sites that require it.
    John

  • Confusion about shared objects...

    Hi...
    I'm building an application using JSP/Servlet technology and I've ecountered some behavior that is not that unexpected, but is something I can't seem to figure out how to get around.
    I've been using two reference manuals over the last year, to learn JSP/Servlet development and I'm not sure that either one of them, do a very good job of explaining how to avoid the problem I'm seeing. (Or maybe they do, but I'm just too dense to figure it out.)
    Both are O'Reilly manuals:
    Java Servlet Programming - Jason Humber with William Crawford
    Java Server Pages - Hans Bergsten
    Anyway, I've tried to model my application using a MVC approach.
    My controller servlet UserCtl.java is small and routes requests as a controller should.
    My business logic is in a bean. UserBean.java This object has properties that represent the fields from my UserMaster table and corresponding setter/gettter methods. It also has methods to retrieve an individual user record, insert a record, update a record, delete a record and retrieve a list of records.
    The scenario I'm experiencing is as follows:
    I bring up my application in the browser on two different PC's.
    I display the user list on each PC.
    Now...
    On each PC, I simultaneously click the Update User, selecting user 1 on pc 1 and user 2 on pc 2.
    My application then, creates a record in a lock file, for each user record. This seems to work properly, even during the simultaneous click.
    However...
    When the update form is subseqently displayed, I have a situation where the form on each of the 2 pc's contains the same data.
    I can verify that 2 different lock records were created, indicating that I did not click the same user by accident, however, the data in the form is clearly for only one of the users.
    I've read the sections over and over and I feel like I understand their comments on concurrency and how the condition I'm seeing could occur, however, I've tried many things to overcome this and nothing seems to work.
    Originally, I opened my JDBC database connection at the servlet level. I've subsequently tried doing it when I create the bean in the controller and subsequent to that, creating the connection object within the method that retrieves the user data inside the bean.
    I've tried moving all my code into functions, so that any bean variables would be localized.
    I've creating a bean from the JSP session bean object and then retrieving the record, and putting the bean back into the session object before moving to the update page.
    Note... I've also enclosed my record retrieval code within a synchronize block.
    I'm at a complete loss here. Nothing I do seems to work and I can consistently recreate this condition. Obviously, I can't move forward until I find out how to do this properly.
    I'm disappointed in the Java Server Pages book, because the author encapsulated/wrapped all of his database i/o into his own database management routines.
    This is a terrible practice for an author to perform. I understand the concept of why you would do that, however, it complicates learning the fundamentals first. I say show us how to do it the long way first, then show us how to improve on the implementation. Don't confuse an already complicated process with your own home-grown methodology.
    Anyway... I digress. Can anybody give me any pointers or recommend a good book or web based example, that can show me how to overcome the issue I am encountering? My implementation is a straightforward, simple, approach. I am trying to grasp how this stuff works, without adding in all the extra stuff like tag libraries and XSLT, etc.
    I just need to understand how to write a simple thread-safe application. I'll tackle the other stuff later. Oh... by the way... I have built the simple samples that overcome servlet class level counters that show the result differences between global variables at the servlet instance level versus reporting back localized variable values. I think that JDBC database access and/or bean creation, is more complex than that and that's where my problem is.
    Any comments, pointers, references to simple samples, will be greatly appreciated.
    Thanks,
    Brett

              You do not need a shared files system - that is just for
              convenience. You do need to have identical directory stuctures
              for all instances in the cluster.
              Mike.
              "Tomato Bug" <[email protected]> wrote:
              >
              >hi all,
              > I have a confusion with shared objects in cluster.
              > A cluster needs a shared file system to store
              > configuration
              >files and shared objects. Can I only put the shared things
              >in the
              >shared file system but not put them on the servers in
              >the cluster.
              > Thanks.
              >
              > Tomato.
              

  • One shared object among multiple applications

    How would I enable a shared object to be used by more than one game? I have tried doing SharedObject.getLocal("ID","/"), but they still seem to have seperate shared objects, both of these applications have seperate domains (com.domain.app).

    try it.  but i suspect those will look like different domains.
    you could use:
    com.mydomain.games/game117 for your game117's main swf
    and
    com.mydomain.games/game2245 for your game2245's main swf

  • Count shared objects created on server

    Hi Experts,
    I am working on a game projects right now. I have created game using Flex and FluorineFx(ASP.NET). In this I have used persistent remote shared object to share the common UI to two players. Now It can be heavy traffic on the server as there might be thousands of games running at a time. So to balance the load on the server, I want to count the shared objects created on the servers. If shared objects on the server exeeds the max limit then I  will switch the requests to create sharerd object on the other server.
    So for this, how can I count the shared objects created on the server. Also can I chech that the shared object is created or not on the server, I mean is there any methos which returns any flag based on the checking that shared object of perticular ID is exist or not.
    I would appreciate if I will get quick reply as it is quite urgent for me.
    Thanks in advance.

    Hi,
    Do you have the same user account to access the shared folder? The issue could due to different versions of SMB.
    Please refer to the thread below to troubleshoot the issue.
    Shared Drive keep asking Password !!
    https://social.technet.microsoft.com/Forums/windows/en-US/82bd137b-8022-47fe-be40-bcf6bc728b6c/shared-drive-keep-asking-password-?forum=w7itpronetworking
    Best Regards,
    Mandy
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Can Local Shared Objects Be Moved to a New Computer?

    We are awaiting the arrival of our new computer. My 8-year old son is concerned that when he plays his favorite Flash games on the new computer, the games won't remember his previous score or level in the game.
    I understand that this information is typically stored in Local Shared Objects. Therefore, my question:
    Can the LSOs on our existing [Windows XP] computer be moved to our new [Windows 7] computer? If so, do I store them in the same location in Windows 7 as they are stored in Windows XP?
    Thanks for your advice.
    The Daddy

    I think these data are stored in one of the following locations (in Windows XP):
    C:\Documents and Settings\[username]\Application Data\Adobe\Flash  Player\AssetCache
    and/or
    C:\Documents and Settings\[username]\Application Data\Macromedia\Flash  Player
    Easier than to type the full access path for these two folders would be to use the %APPDATA% environment variable; you would type the following into Windows Explorer's address bar:
    %appdata%\Adobe\Flash  Player\AssetCache
    and/or
    %appdata%\Macromedia\Flash  Player
    Now in Windows 7 these are in a slightly different place:
    C:\users\[username]\AppData\Roaming\Adobe\Flash Player\AssetCache
    and/or
    C:\users\[username]AppData\Roaming\Macromedia\Flash Player
    which would be, using the environment variable:
    %appdata%\Roaming\Adobe\Flash Player\AssetCache
    and/or
    %appdata%\Roaming\Macromedia\Flash Player
    What I would do is to copy the full contents of both folders from XP to 7, before installing Flash Player on the new machine.
    Let us know if this worked.

  • Error while loading shared libraries: librt.so.1: cannot open shared object

    error while loading shared libraries: librt.so.1: cannot open shared object
    I cant run my apache server v2.2.3.
    Can someone help me?
    thanks in advance

    That could be an accessibility issue. Check the user with whom you installed Apache server. Check the user has permissions to access the libraries.
    -Mahendra.

  • Exception handling is not working in GCC compile shared object

    Hello,
    I am facing very strange issue on Solaris x86_64 platform with C++ code compiled usging gcc.3.4.3.
    I have compiled shared object that load into web server process space while initialization. Whenever any exception generate in code base, it is not being caught by exception handler. Even though exception handlers are there. Same code is working fine since long time but on Solaris x86, Sparc arch, Linux platform
    With Dbx, I am getting following stack trace.
    Stack trace is
    dbx: internal error: reference through NULL pointer at line 973 in file symbol.cc
    [1] 0x11335(0x1, 0x1, 0x474e5543432b2b00, 0x59cb60, 0xfffffd7fffdff2b0, 0x11335), at 0x11335
    ---- hidden frames, use 'where -h' to see them all ----
    =>[4] __cxa_throw(obj = (nil), tinfo = (nil), dest = (nil), , line 75 in "eh_throw.cc"
    [5] OBWebGate_Authent(r = 0xfffffd7fff3fb300), line 86 in "apache.cpp"
    [6] ap_run_post_config(0x0, 0x0, 0x0, 0x0, 0x0, 0x0), at 0x444624
    [7] main(0x0, 0x0, 0x0, 0x0, 0x0, 0x0), at 0x42c39a
    I am using following link options.
    Compile option is
    /usr/sfw/bin/g++ -c -I/scratch/ashishas/view_storage/build/coreid1014/palantir/apache22/solaris-x86_64/include -m64 -fPIC -D_REENTRANT -Wall -g -o apache.o apache.cpp
    Link option is
    /usr/sfw/bin/g++ -shared -m64 -o apache.so apache.o -lsocket -lnsl -ldl -lpthread -lthread
    At line 86, we are just throwing simple exception which have catch handlers in place. Also we do have catch(...) handler as well.
    Surpursing things are..same issue didn't observe if we make it as executable.
    Issue only comes if this is shared object loaded on webserver. If this is plain shared object, opened by anyother exe, it works fine.
    Can someone help me out. This is completly blocking issue for us. Using Solaris Sun Studio compiler is no option as of now.

    shared object that load into web server process space
    ... same issue didn't observe if we make it as executable.When you "inject" your shared object into some other process a well-being of your exception handling depends on that other process.
    Mechanics of x64 stack traversing (unwind) performed when you throw the exception is quite complicated,
    particularly involving a "nearly-standartized" Unwind interface (say, Unwind_RaiseException).
    When we are talking about g++ on Solaris there are two implementations of unwind interface, one in libc and one in libgcc_s.so.
    When you g++-compile the executable you get it directly linked with libgcc_s.so and Unwind stuff resolves into libgccs.
    When g++-compiled shared object is loaded into non-g++-compiled executable's process _Unwind calls are most likely already resolved into Solaris libc.
    Thats why you might see the difference.
    Now, what exactly causes this difference can vary, I can only speculate.
    All that would not be a problem if _Unwind interface was completely standartized and properly implemented.
    However there are two issues currently:
    * gcc (libstdc++ in particular) happens to use additional non-standard _Unwind calls which are not present in Solaris libc
    naturally, implementation details of Unwind implementation in libc differs to that of libgccs, so when all the standard _Unwind
    routines are resolved into Solaris version and one non-standard _Unwind routine is resolved into gcc version you get a problem
    (most likely that is what happens with you)
    * libc Unwind sometimes is unable to decipher the code generated by gcc.
    However that is likely to happen with modern gcc (say, 4.4+) and not that likely with 3.4.3
    Btw, you can check your call frame to see where _Unwind calls come from:
    where -h -lIf you indeed stomped on "mixed _Unwind" problem then the only chance for you is to play with linker
    so it binds Unwind stuff from your library directly into libgccs.
    Not tried it myself though.
    regards,
    __Fedor.

Maybe you are looking for

  • Basic questions about login

    I got 2 questions regarding to login, 1. I'm on a 8i DB, when it is shutdown, I want to login again. for "sqlplus internal", it says connect to an idle DB. for "sqlplus sys/password", it says ORA-01034: ORACLE not available ORA-27101: shared memory r

  • Transport request organizing report based on package

    Can anyone suggest me from which tables i will get all the transport requests, package to which it belongs to, which date it has been created, in which date it has been trasported and modified and to which user id it belongs to.

  • Web Service to do Java PDK .setProperty() and .store()

    I had posted this in the EP Content Development group, but received no response. Sorry for the cross post but this is relatively urgent for me. I am working on a Portal Component in the PDK for .NET which will take values selected from a CheckBoxGrou

  • Applying BW Patch on Solution Manager

    Hello Experts, I have few doubts: 1. How to apply BW patch (BI 7.0)on Solution Manager(3.0 or higher) 2. If we apply BW patch on SM, how does it differentiate from BW system(Data Model, Reporting etc) 3. Are there any websites or pdf files for SM wit

  • Windows hidden files on a Mac

    Hi.. i have a question on windows hidden files on a mac.. I know i can see them temporarily through finder using "file visibilty", but does anyone have any idea on how to change the files attributes to be permanently visible ? Pls help !