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

Similar Messages

  • Same preparedstatement object for different queries.. ?

    Actually I m getting same preparedstatement object for many queries in a for loop..In this scenario its not working properly..Suppose like dis..
    connection con.setAutoCommit(false);
    PreparedStatement prepStmt = con.prepareStatement(
    "UPDATE DEPT SET MGRNO=? WHERE DEPTNO=?");
    prepStmt.setString(1,mgrnum1);
    prepStmt.setString(2,deptnum1);
    prepStmt.addBatch();
    PreparedStatement prepStmt = con.prepareStatement(
    "UPDATE EMP SET EMPNO=? WHERE DEPTNO=?");
    prepStmt.setString(1,empno1);
    prepStmt.setString(2,deptnum2);
    prepStmt.addBatch();
    Whether we can take same preparedstatement object for different query..??Its not giving any error but its not updating all the records but only the last one...
    Any solution..

    kriti123 wrote:
    Actually I m getting same preparedstatement object for many queries in a for loop..In this scenario its not working properly..Suppose like dis..
    Ignore all of the above.
    You are using a batch.
    There is a specific idiom for that. You create the statement once and then keep calling the appropriate methods on it to load and then execute the batch, and check errors.
    When done you close it. If you need commit you are going to need to deal in blocks.
    If you have a large volume of data then database import tools are very likely to be substantially faster.

  • Shared Object quirk

    Hi all,
    I made a slot machine. It's simple enough: hit the spin
    button, the reel movieclips play, and a random number is created to
    decide what the winner is. People will win hats, shirts, buffet
    vouchers, etc., and I have to limit the quantities for each, and I
    have to be able to report how many of each were spun after the
    event is done. For this, I've created a local shared object that
    stores each individual spin and also totals for each prize. I used
    the shared object so we can shut the machine down and move it to
    other parts of the city as we move around...and because it's a
    standalone machine with no VMWare or database access.
    The problem: I want to use another movie (which accesses the
    same shared object) to display the data in report format. If I
    spin, and then close the movie, and open the other one, there's
    nothing. What I have to do is spin and close the movie three times
    before there is anything showing up in the other movie. The problem
    is that I have several prizes unaccounted for.
    I'm thinking that either I start the local shared object in
    the wrong place, or am flushing it in the wrong place. Any advice
    would be greatly appreciated.
    Code is attached.

    Hi again,
    If someone can point me in the right direction as to where to
    look, I would greatly appreciate your help...Thanks!
    <pre>
    //start up the local shared object
    mySO=SharedObject.getLocal("spins","/");
    if(mySO.data.spinCount==null){
    mySO.data.spinCount="Spin Results";
    if(mySO.data.prizeTotals==null){
    mySO.data.prizeTotals="Prizes Used";
    mySO.flush();
    //done starting up the local shared object
    //Store data locally
    function sendDataToLocal(spinResult){
    mySO=SharedObject.getLocal("spins","/");
    inputOut=spinResult;
    theTime = new Date();
    spinTime= (theTime.getYear()+1900)+" .
    "+(theTime.getMonth()+1)+" . "+theTime.getDate()+",
    "+theTime.getHours()+":"+theTime.getMinutes();
    mySO.data.spinCount+="\n"+spinTime+":
    "+inputOut+"\n----------------------";
    mytempPrize=prize1+" Used= "+used1+"\n"+prize2+" Used=
    "+used2+"\n"+prize3+" Used= "+used3+"\n"+prize4+" Used=
    "+used4+"\n"+prize5+" Used= "+used5+"\n"+prize6+" Used=
    "+used6+"\n"+prize7+" Used= "+used7+"\n"+prize8+" Used=
    "+used8+"\n"+prize9+" Used= "+used9+"\n"+prize10+" Used=
    "+used10+"\nTotal Spins:
    "+(used1+used2+used3+used4+used5+used6+used7+used8+used9+used10)+"\n";
    mySO.data.prizeTotals=mytempPrize;
    trace(mytempPrize);
    mySO.flush();
    inputOut="";
    //Done storing data locally
    </pre>

  • Dynamic Shared Object - Is This Possible?

    What I want in my app is to have 2 tilelists and an array collection of items which will populate the first tilelist and these objects can be dragged between both tilelists. Then the user can click a save button which will save the statuses of both tilelists so the items that are present/not present in each tilelist when the app is closed will still be there when the app is restarted.
    The problem is I want my array collection to be populated dynamically from mysql data on a server.
    I have no problem getting dynamic data from a mysql database into an array colllection via http request and I have no problem getting the shared object to work IF the array collection is defined within the app the usual way but I'm having trouble getting these 2 things to work together. 
    Can anybody tell me if it is indeed possible to have a dynamically populated array collection stored as a shared object on the user's system and would anyone be willing to help me out if I post my code so far? Cheers.

    Hi Greg. The way I usually post code is by clicking the small arrows above and then clicking syntax highlighting and then xml. The problem is this seems to remove all of the quotation marks ("") from my code which is what is causing the errors you mentioned. I've posted it below just by simply copying and pasting. I hope that works better. Cheers for your help:-
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication 
    xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="newsService.send(); initprofile1NewsAndSportSO()">
    <mx:Script><![CDATA[
     import mx.rpc.events.ResultEvent; 
    import mx.collections.*; 
    import flash.net.SharedObject; 
    public var profile1NewsAndSportSO:SharedObject; 
    Bindable] 
    private var profile1NewsAndSportaddLinksFullAC:ArrayCollection; 
    Bindable] 
    private var profile1NewsAndSportaddLinksAC:ArrayCollection; 
    private function newsResultHandler(event:ResultEvent):void{
    profile1NewsAndSportaddLinksFullAC=newsService.lastResult.newscategory.news
    as ArrayCollection;profile1NewsAndSportaddLinksAC=newsService.lastResult.newscategory.news
    as ArrayCollection;}
    // private var profile1NewsAndSportaddLinksFullAC:ArrayCollection = new ArrayCollection([
    // {label:"BBC News"},
    // {label:"ITV"},
    // {label:"Sky News"}
    // ]); // private var profile1NewsAndSportaddLinksAC:ArrayCollection = new ArrayCollection([
    // {label:"BBC News"},
    // {label:"ITV"},
    // {label:"Sky News"}
     private function profile1NewsAndSportReset():void{resetprofile1NewsAndSportAC();
    profile1NewsAndSportAddLinksTilelist.dataProvider = profile1NewsAndSportaddLinksAC;
    profile1NewsAndSportLinkChoice.dataProvider =
    new ArrayCollection([]);}
    private function resetprofile1NewsAndSportAC():void{profile1NewsAndSportaddLinksAC.removeAll();
    for each(var obj:Object in profile1NewsAndSportaddLinksFullAC){profile1NewsAndSportaddLinksAC.addItem(obj);
    private function initprofile1NewsAndSportSO():void{profile1NewsAndSportSO = SharedObject.getLocal(
    "profile1NewsAndSport"); 
    if(profile1NewsAndSportSO.size > 0){ 
    if(profile1NewsAndSportSO.data.profile1NewsAndSportaddList){ 
    if(profile1NewsAndSportSO.data.profile1NewsAndSportaddList != "empty"){ 
    var profile1NewsAndSportaddList:Array = profile1NewsAndSportSO.data.profile1NewsAndSportaddList.split(","); 
    var profile1NewsAndSporttempAC1:ArrayCollection = new ArrayCollection(); 
    for each(var str:String in profile1NewsAndSportaddList){ 
    for each(var obj1:Object in profile1NewsAndSportaddLinksAC){ 
    if(str == obj1.label){profile1NewsAndSporttempAC1.addItem(obj1);
    continue;}
    if(profile1NewsAndSporttempAC1.length > 0){profile1NewsAndSportAddLinksTilelist.dataProvider = profile1NewsAndSporttempAC1;
    if(profile1NewsAndSportSO.data.profile1NewsAndSportchoiceList){ 
    var profile1NewsAndSportchoiceList:Array = profile1NewsAndSportSO.data.profile1NewsAndSportchoiceList.split(","); 
    var profile1NewsAndSporttempAC2:ArrayCollection = new ArrayCollection(); 
    for each(var str2:String in profile1NewsAndSportchoiceList){ 
    for each(var obj2:Object in profile1NewsAndSportaddLinksAC){ 
    if(str2 == obj2.label){profile1NewsAndSporttempAC2.addItem(obj2);
    continue;}
    if(profile1NewsAndSporttempAC2.length > 0){profile1NewsAndSportLinkChoice.dataProvider = profile1NewsAndSporttempAC2;
    else{profile1NewsAndSportReset();
    private function saveprofile1NewsAndSport(event:MouseEvent):void{ 
    var profile1NewsAndSportaddList:String = ""; 
    if(profile1NewsAndSportAddLinksTilelist.dataProvider){ 
    if(ArrayCollection(profile1NewsAndSportAddLinksTilelist.dataProvider).length > 0){ 
    for each(var obj1:Object inprofile1NewsAndSportAddLinksTilelist.dataProvider){
    profile1NewsAndSportaddList += obj1.label +
    else{profile1NewsAndSportaddList =
    "empty";}
    profile1NewsAndSportSO.data.profile1NewsAndSportaddList = profile1NewsAndSportaddList;
    var profile1NewsAndSportchoiceList:String = ""; 
    for each(var obj2:Object inprofile1NewsAndSportLinkChoice.dataProvider){
    profile1NewsAndSportchoiceList += obj2.label +
    profile1NewsAndSportSO.data.profile1NewsAndSportchoiceList = profile1NewsAndSportchoiceList;
    profile1NewsAndSportSO.flush();
    ]]>
    </mx:Script>
     <mx:HTTPService id="newsService" resultFormat="object" result="newsResultHandler(event)" url="http://www.coolvisiontest.com/getnews.php"/> 
    <mx:TileList id="profile1NewsAndSportLinkChoice" fontWeight="bold" dragEnabled="true" dragMoveEnabled="true" dropEnabled="true" height="166" width="650" top="5" left="521" columnCount="5" rowHeight="145" columnWidth="125" backgroundColor="#000000" color="#FFFFFF">
     <mx:itemRenderer>
     <mx:Component>
     <mx:Canvas width="125" height="129" backgroundColor="#000000">
     <mx:Image source="{'http://www.coolvisiontest.com/interfaceimages/images/'+ data.icon}" top="5" horizontalCenter="0"/>
     <mx:Label text="{data.label}" bottom="1" horizontalCenter="0"/>
     </mx:Canvas>  
    </mx:Component>
     </mx:itemRenderer>  
    </mx:TileList>
     <mx:TileList id="profile1NewsAndSportAddLinksTilelist" fontWeight="bold" dragEnabled="true" dragMoveEnabled="true" dropEnabled="true" height="166" width="385" top="5" left="128" columnCount="3" rowHeight="145" columnWidth="125" backgroundColor="#000000" color="#FFFFFF">
     <mx:itemRenderer>
     <mx:Component>
     <mx:Canvas width="125" height="129" backgroundColor="#000000">
     <mx:Image source="{'http://www.coolvisiontest.com/interfaceimages/images/'+ data.icon}" top="5" horizontalCenter="0"/>
     <mx:Label text="{data.label}" bottom="1" horizontalCenter="0"/>
     </mx:Canvas>  
    </mx:Component>
     </mx:itemRenderer>  
    </mx:TileList>
     <mx:Button click="profile1NewsAndSportReset()" id="reset" label="Reset" y="5" height="25" x="5"/>
     <mx:Button click="saveprofile1NewsAndSport(event)" id="save" label="Save Changes" x="5" y="38" width="113" height="25.5"/>
     </mx:WindowedApplication>

  • 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

  • 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", "/");

  • On entering first frame, get shared object values, enter into variables

    Hi,
    I am trying to create an AS3 Fla to score a quiz's results. The quiz is a separate swf that stores its results to a shared object ("G1"), and both the quiz swf and this new scoring swf would reside on the same website.
    I've tried scripting the AS3 in the new scoring Fla but I keep getting error messages.
    So far, here's what I have that doesn't work. I would appreciate any help.
    addEventListener(Event.ENTER_FRAME,myFunction);
    function myFunction(event:Event) {
        var so:SharedObject = SharedObject.getLocal("G1", "/"); // using "/" as a local path should work to pick up the SO created by the quiz swf
        var read1:Number = so.data.value1
        var read2:Number = so.data.value2
        var read3:Number = so.data.value3
        var read4:Number = so.data.value4
    scoreBtn1.addEventListener(MouseEvent.CLICK, onMouseClickEvent);
    //scoreBtn1 would be clicked to test if value from SO can be displayed in text box T1
    // then make the callback
    function onMouseClickEvent(event:Event)
    T1.text = String (read1); //testing to check if a value from the SO can be displayed in a dynamic text box instance named T1
    stop()
    The goal is to open the scoring swf, populate some variables with the values from the SO, then (not yet tried in the script) apply some if/else conditions to show specific results based on scores.
    This doesn't work, and since I'm a beginner using AS3, it's probably both awkward and incorrect.
    Kind Regards,

    Well I'm not sure all what is going on. But I'm pretty sure that you don't want to use the enter frame event. What that really means it so something at the frame rate of your file. So I don't think you want to try and read the SO 24 times a second (or what-have-you).
    Also in this example you have all your variable declared inside the function definition. So that means 24 times a second you are creating the variables and then deleting them—and the variables are only available from inside the function.
    I'm guessing that you could do something like this:
        var so:SharedObject = SharedObject.getLocal("G1", "/"); // using "/" as a local path should work to pick up the SO created by the quiz swf
        var read1:Number = so.data.value1
        var read2:Number = so.data.value2
        var read3:Number = so.data.value3
        var read4:Number = so.data.value4

  • Sharing same entity object with multiple viewobject problem.

    Dear All,
    I have a common entity entity object, that i am using in 4 different vo(only the where clause is different),
    I have created 4 af:table from corrosponding vos, when i am inserting some records in any of the vo then all the vo is showing the same records.. even through each vo is having separate where clause,
    But when i do this with separate eo for each vo then it works fine..
    Here i just want to do with the single eo being shared by different vo of same kind.. except where clause, Also i want to know why this issue is comming on insert? is it normal expected behaviour ? If yes then how to overcome this problem..? Pls provide any good suggestions if you have..
    Thanks & Regards.
    Santosh.

    Hi Sacha,
    Thanks.. i read it and found following
    You can globally disable this feature by setting the jbo.viewlink.consistent to the value false in your configuration. Conversely, you could globally enable this >feature by setting jbo.viewlink.consistent to the value true, but Oracle does not recommend doing this. Doing so would force view link consistency to be set >on for view objects with secondary entity usages that are not marked as a reference which presently do not support the view link consistency feature well.Now i am thinking to set it false.. but as doc says but Oracle does not recommend doing this. Doing so would force view link consistency to be set on for view objects with secondary entity usages that are not marked as a reference which presently do not support the view link consistency feature well,
    With what option should i go...?
    go with separate eo and vo..?
    Regards,
    Santosh.

  • How to Get property values from Shared Object in client's load event - Very urgent

    I am using shared object to share data between two users. First user connect to shared object and set some value in shared object. Please consider that second user has not connected with the shared object yet.
    Now when second user connects to the server and try to get that property set by first user, he could get shared object but could not get properties of Shared object set by first user. I observed few times that Second user can get these properties within "Sync" event between two users. But I would like to get these values for Second user in any stage (i.e. in load event etc.). Whenever Second user tries to get the property of Shared object, the object will reset the actual property value and then return reset value.
    Anyone faced such issue while using shared object between two users. If so, I would appreciate if you could let me know your suggestions for following questions:
    1) Is there any way to get all the properties of shared object before sync event called, as I want to get it immediately when second user connect to the application and perform next task based on the values stored in shared object.
    2) Is it possible for second user to check whether any property has been set by first user? So that second user can use the property instead of reset it.
    Any kind of help would be greatly appreciated.
    Thank You.

    I am using shared object to share data between two users. First user connect to shared object and set some value in shared object. Please consider that second user has not connected with the shared object yet.
    Now when second user connects to the server and try to get that property set by first user, he could get shared object but could not get properties of Shared object set by first user. I observed few times that Second user can get these properties within "Sync" event between two users. But I would like to get these values for Second user in any stage (i.e. in load event etc.). Whenever Second user tries to get the property of Shared object, the object will reset the actual property value and then return reset value.
    Anyone faced such issue while using shared object between two users. If so, I would appreciate if you could let me know your suggestions for following questions:
    1) Is there any way to get all the properties of shared object before sync event called, as I want to get it immediately when second user connect to the application and perform next task based on the values stored in shared object.
    2) Is it possible for second user to check whether any property has been set by first user? So that second user can use the property instead of reset it.
    Any kind of help would be greatly appreciated.
    Thank You.

  • I can't get home sharing to turn on on my computers. I have a PC running windows XP that has a large library on it that I want to access from a newer windows 7 PC. I have turned home sharing on in both, same apple ID. I just will not come up. Any ideas?

    I can't get home sharing to turn on on my computers. I have a PC running windows XP that has a large library on it that I want to access from a newer windows 7 PC. I have turned home sharing on in both, same apple ID. I just will not come up. Any ideas?

    Ugh, disregard.. it magically started working -_-

  • I rented a movie. I want to see it using different user on same mac for security reason. How can I do this? Home Sharing fails to do this, so far.

    I rented a movie. I want to see it using different user on same mac for security reason. How can I do this? Home Sharing fails to do this, so far.

    Copy the movie from the current library to the correct library.
    iDevices can only sync to one library at a time.

  • Sharing objects in the same package (context)

    Hi,
    I need a small example or API invocations which shows object sharing beetween two applets in the same package.
    Thanks.

    Look at the JavaPurse sample. You'll see the record, ParameterFile, and CyclicFile are shared objects in the same context.

  • How to get same order of appearance of photos in Iphoto album and album shown to IOS devices after sharing?

    How to get same order of appearance of photos in Iphoto album and album shown to IOS devices after sharing?

    Hello Leonie!
    I use Iphoto sharing with my family on their ios devises.  And it works. 
    The only problem is that, now, I try to organize the photos in a meaningful way (not chronologically) before Iphoto Sharing (Icloud)
    But on the ios devices the photos is arranged chronologically.
    Is there a solution?
    MBP 2009
    Iphoto 9.5.1
    IPAD 3
    7.1.1
    best regards Joakim

  • Different client connect server but get same IP??

    i am doing a server for multiplayer game. when the client connect to server, server need to keep it IP. but why my server always get same IP for every connected client? my code is as below
    public class CommServer {
        private Vector clients = new Vector();  // a list of all connected clients
        ServerSocket server;   // the server
        private static int INTPORT=9999;
    public static void main(String args[]) {
            CommServer myCS = new CommServer(INTPORT);
       public CommServer(int port) {
            startServer(port);
       private void startServer(int port) {       
            try {
                // --- create a new server
                server = new ServerSocket(port);
                 // --- while the server is active...     
                while(true) {
                    // --- listen for new client connections
                    Socket socket = server.accept();
                    CSClient client = new CSClient(this, socket);
                    writeActivity(client.getIP() + " connected to the server.");
                    // --- start the client thread
                    client.start();
            } catch(IOException ioe) {
                writeActivity("Server Error...Stopping Server");
                // kill this server
                killServer();
    public class CSClient extends Thread {
        private Thread thrThis;         // client thread
        private Socket socket;          // socket for connection
        private CommServer server;
       protected BufferedReader in;    // captures incoming messages
        protected PrintWriter out;      // sends outgoing messages
    public CSClient(CommServer server, Socket socket) {
            this.server = server;
            this.socket = socket;
            this.ip = socket.getInetAddress().getHostAddress();
            // --- initialize the reader and writer
            try {
                in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
                out = new PrintWriter(socket.getOutputStream(), true);
            } catch(IOException ioe) {
                          killClient();
    public String getIP() {
            return ip;
        }please help.. thanks

    hi, thanks for reply.
    yes, i am trying to connect from different macnine
    that have different IP address.
    how to check if it asign same external IP toclient?
    can it be configure to assign different IP?what he means is, if you run your server at location
    A, and all your clients from location B, with the
    internet in between, and a single router/switch
    serving internet connections to the clients at the B
    location, then the server at the A location will see
    the external IP of the site B router, not the
    individual IPs of the clients behind the router
    (since those IPs are only for internal network usage
    behind the router)
    in short, do you test with multiple clients from one
    internet connection? then it would be logical that
    they present the same IP to the server. The best (and
    most realistic) way to test would be with multiple
    clients from multiple locations / internet connectionsok.thanks.
    so is it possible for me to get the client machine ip but not the IP for the router? because i will hav multiple user from same location access the server at the same time.

  • Why two different users from same login group not able to access the database object(stored procedure)?

    I have SQL login group as "SC_NT\group_name" in server. There are multiple users using this login group to access database objects. User "A" can able to access db object(stored_procedure_1) from .net application. But when user "B"
    tried to access same db object(stored_procedure_1), its showing like
    Error: The EXECUTE permission was denied on the object 'stored_procedure_1', database 'test',schema 'dbo'. 
    Both the users are using windows authentication for access the objects. Could you suggest me the way to resolve this?
    Venkat

    Thanks for your response
    Erland Sommarskog....
    my stored procedure "stored_procedure_1"
    does not has any granted permissions to execute. But still user A
    able to execute the sp from UI, where user B not able to do it.  If any permission provided for a particular object, then only it will display in the above query whatever u have given.  
    Any other possibilities??
    Venkat G

Maybe you are looking for

  • Bad performance while opening BSP pages from EP

    Hi, We are accessing different transaction like Lead, Oppt, Quotations and Accounts and Contacts from EP. What we have observed is that these applications take very long time (more than 10 sec) just to load the page completly. We are also ensuring th

  • Index not displayed in Navigator (Version 1.5.4)

    Hi, I have few indexes in a schema which were created by Sql Tuning Advisor; hence their names are system generated (in dba_indexes, generated = 'Y' for indexes not displayed). Accordingly to 364055.1 this seems to be an expected behavior (at least f

  • Reports for Audit

    Dear All, Please tell me list of reports which are useful for audit purpose. Or Any other way where we find list of reports which are useful only for audit purpose. Regards, Mahesh Wagh

  • IMessage sign in problem

    I am not not able to sign in iMessage as well as FaceTime,,,my iPod touch4 always says "could no sign in.Please check your network connection and try again" guys please help me out ,,,thank you!!

  • Backlight on But no Words on display

    Ok I will be honest, I dropped my iPod... but not very high (knee height) and it was in a hard shell case. Once it hit the floor the iPod wouldn't turn on with just pushing the center button. So I tried to reset it. The screen lights up and the hard