Remote register object

The UnicastRemoteObject can register OBJECT by the export method. Is it feasible to register the object remotely to a seperate machine?
e.g.
Machine A register object A at Machine B
Machine C invoke RMI on Machine B and use object A
If it works, i can eliminate the RMI from Machine B to Machine A.
Otherwise, i need to invoke twice of RMI, C --> B then B --> A since we don't want to run C-->A directly.

The UnicastRemoteObject can register OBJECT by the
export method.No it can't. What it does is to export it from the current machine.
Is it feasible to register the object
remotely to a seperate machine?The question makes no sense as stated given the terminology error.
Machine A register object A at Machine B
Machine C invoke RMI on Machine B and use object ATo put it correctly, once a remote JVM B has acquired a remote reference to a remote object exported from A, it can pass it to another JVM in the same or another host, say C, and JVM C will then communiate directly with the original host from which A was exported when calling methods on A, without involving B in the exchange.

Similar Messages

  • ERROR - clsid-not-found(Object::Remote::CLIENT|(Object::Remote::PROTOCOL_LOCAL|PSQL::TrayAppSvr:: 00000001)CID_SafeArchive::FileArchiveCache))

    Hi,
    I have Windows 7 Professional (PT) installed with Adobe Master Colection CS 6. The error "clsid-not-found(Object::Remote::CLIENT|(Object::Remote::PROTOCOL_LOCAL|PSQL::TrayAppSvr: :00000001)CID_SafeArchive::FileArchiveCache))" start to show a week after using the computer.
    I don't know if the error it's from windows or from any software of the Adobe. How can i solve this problem?

    Well "Protector Suite QL" is some security tool and apparently it requires authentication procedures and blocks access to critical system routines. You need to fix that. Nothing to do with Adobe at all.
    Mylenium

  • Load balancing remote shared object?

    Has anyone had experience keeping the Remote Shared Object in
    sync between multiple FMS servers for load balancing purposes? I'm
    thinking in terms of being able to push an SO change to one and
    have the others stay in sync.

    I made it use localhost as the path to the .swf so you might
    want to change the net connection uri property to the application
    directory if you are testing on a webhosts domain.
    [/code]
    var my_nc:NetConnection = new NetConnection();
    my_nc.connect("rtmp:/myDomain/mySwf");
    my_so = SharedObject.getRemote("testSo", my_nc.uri, true);
    my_so.connect(my_nc);
    my_so.data.aString = "a testing string";
    /// making sure it's saved.
    //I can see it fine now
    trace(my_so.data.aString);
    var my_nc:NetConnection = new NetConnection();
    my_nc.connect("rtmp:/myDomain/mySWF");
    my_so = SharedObject.getRemote("testSo", my_nc.uri, true);
    my_so.connect(my_nc);
    trace(my_so.data.astring);
    [/code]

  • External transaction control and ability to find new registered objects

    Hello, We are using Toplink with external transaction control and have a process inserting a complex hierarchy of objects. During the process we either do a registerObject or deepmergeClone depending on if the instance is already in the db. With external transaction control the registerObject does not actually do the commit to db until the global transaction (Container) issues the commit. Unfortunately we end up doing creating multiple instances of same objects ( because the assumption that registerObject would have written the row to the db ) with the same keys and when the container issues the commit we end up with duplicate key violation. Is there a way to find out if an object with a particular key is already registered?

    This sounds like the kind of question that can only be answered with a whiteboard and a good review of your architecture.
    In general, there should be no problem registering objects multiple times. I.e.,
    x = some object
    x1 = uow.registerObject(x);
    Then x1==uow.registerObject(x), and x1==uow.registerObject(x1), etc. When you register an object with the UOW, based on PK it'll always return that same one.
    Do you have multiple units of work on the go? (that may explain this behavior).
    In any case, I think the real problem here is that you're somehow registering objects that are no longer cached. I.e., some object is serialized or rebuilt and then registered after it's gone from the cache. By default, TopLink determines if an object is new or existing (to determine INSERT vs UPDATE) by hitting the cache. You can change this default behavior in the Mapping Workbench, open the advanced property for "Identity" and change existence checking to "check database". Although, this can be a slow and tedious process to have to keep hitting the DB.
    A little trick I use sometimes is to take advantage of the "readObject" API that will read the object from the databaes if it's not already in cache, and just return it from cache if it is in cache. Check out the UOW primer at http://otn.oracle.com/products/ias/toplink/index.html for more info, but the jist is that I would do this if I were you:
    x = some object that you're not sure is cached and you want to register in UOW;
    x' = uow.readObject(x);
    IF the object was in cache, you'd get back a working copy, nice and fast. IF it's not in cache, you hit the database, it goes in cache, and you get your working copy. Now you don't have to change the existence checking option which could slow everything down.
    - Don

  • Access Remote DB Object using Public DB Link in Application Express -HTMLDB

    How to access and list remote database objects in HTMLDB - V2 (Application Express).
    I can query using Public DB Link with SQL.

    It is not possible. To create reports or forms on remote objects, create local views of the remote objects.
    Mike

  • Registering a child of registered object goes into endless recursion

    Hi
    Looks like we have found another bug in toplink.
    test scenario: object A have a indirection relation 1:1 with object B
    Lets register object A. Everything works fine. Lets register that cloneA1 again. It is fine again ( registration returns same object).
    Now lets ask cloneA1 for related object B : cloneA1.getB(). Works fine. And we know that it retirn registeres object cloneB1. Now - lets imagine that developer made a mistake (usual thing is this unperfect world) and trying to register cloneB1 again. Instead of silently returning same object instance cloneB1, toplink in going into some endless recursion which ends up with StackOverflowError:
    Received execption: java.lang.reflect.InvocationTargetException
    java.lang.reflect.InvocationTargetException: java.lang.StackOverflowError
    at oracle.toplink.publicinterface.Session.getDescriptor(Unknown Source)
    at oracle.toplink.publicinterface.Session.getDescriptor(Unknown Source)
    at oracle.toplink.internal.descriptors.ObjectBuilder.extractPrimaryKeyFromObject(Unknown
    Source)
    at oracle.toplink.internal.descriptors.ObjectBuilder.extractPrimaryKeyFromObject(Unknown
    Source)
    at oracle.toplink.internal.descriptors.ObjectBuilder.extractPrimaryKeyFromObject(Unknown
    Source)
    at oracle.toplink.internal.descriptors.ObjectBuilder.extractPrimaryKeyFromObject(Unknown
    Source)
    at oracle.toplink.internal.descriptors.ObjectBuilder.extractPrimaryKeyFromObject(Unknown
    Source)
    at oracle.toplink.internal.descriptors.ObjectBuilder.extractPrimaryKeyFromObject(Unknown
    Source)
    at oracle.toplink.internal.descriptors.ObjectBuilder.extractPrimaryKeyFromObject(Unknown
    Source)
    at oracle.toplink.internal.descriptors.ObjectBuilder.extractPrimaryKeyFromObject(Unknown
    Source)
    at oracle.toplink.internal.descriptors.ObjectBuilder.extractPrimaryKeyFromObject(Unknown
    Source)
    at oracle.toplink.internal.descriptors.ObjectBuilder.extractPrimaryKeyFromObject(Unknown

    The mapping of A and B is as follows:
    Both A and B are interfaces of concrete classes
    mapped with Interface Alias:
    Aimpl implements A
    Bimpl implements B
    The attribute mappings are:
    Bimpl.as is a OneToMany collection of A (bidirectional to Aimpl.b)
    and using Transparent Indirection with IndirectList
    Aimpl.b is the OneToOne "owner" B (bidirectional to Bimpl.as)
    Aimpl.b OneToOneMapping to switched to ProxyIndirection
    upon startup.
    Application code works exclusively with A and B and gets
    concrete instances from a factory.
    There's much more to the mapping, but that seems to be all
    the bits related to this problem.
    Thanks and best regards,
    John

  • Remote Shared Objects peerIDs

    Hello All, I would like to use a remote shared object to communicate to nearID. My knowledge of Server-Side ActionScript is not particularly great. Is there any tutorials or links out there that can give a demonstration how remote shared objects can obtain and distribure peerIDs? 
    Thank You

    Thank you Rajesh. Apologies for my late reply. Are you suggesting I do something like this? In the code below I have included a changeList array to describe the change properties of each member in a remote shared object. Furthermore, I have created so.data property to store attributes of the rso when a user changes one of the slots it triggers the syncEvent. Can someone please take a good close look at my code to see if you can identify any errors? thanks in advance.
    function syncExample(event:SyncEvent):void{
         my_rso.data.username1;
         my_rso.data.username2;
         my_rso.data.username3;
         my_rso.data.username4;
         my_rso.data.username5;
    for (var i = 0; i <changeList.length; i++){
    var changeList:Array = event.changeList;
    var info:Object;
    info = changeList[i];
    switch(info.code){
       case "success"
      lient_info = my_rso.data[info.name];
       case "change":
       client_info = my_rso.data[info.name];

  • How can I delete remote shared objects?

    Hello world...
    I have a problem...
    I need to unload an external .swf file or delete all the remote shared objects that it conteins...but I need to reload the same .swf file by pushing a button...
    Please help me...
    Emiliano.

    Hi,
    can you please give clear idea...
    It looks like when the namespace was deleted delete all objects under this namespace was systematically deleted.
    means all objects under namespace is already deleted before deleting namespace..right?
    If so then Now there are existing interface objects somewhere out there in the IR. Objects such as data types, message type, message mapping and interface mapping objects
    Try to clear your cache..using SXI_CACHE...
    Try to  re-create namespace and delete all objects related to your namespace and delete namespace again...( Not sure this wull help..but u can try)
    Nilesh

  • Specifying timeout for calls on remote CORBA objects

    When using a remote CORBA object from a Java client, we make use of a periodic heartbeat call to ensure the remote object is still available.
    If the process hosting the remote object dies, we get an exception back immediately after making the call which helps us to know that we need to re-connect.
    If, however, the network goes down (i.e. unplug the machine running the process hosting the remote object from the network), things get a little tricker. At this point, you end up relying on the underlying socket timeouts to control how soon you'll get back an exception.
    We're using both C++/TAO/ACE clients and Java clients. For the C++ clients, we noticed that the timeout value varied significantly based on operating system. For example, on Windows XP Home, it took 75 seconds to get an exception, but on Windows 2000 Pro, it only took 5 seconds.
    The solution for the C++ clients was to make use of a policy override in the ORB, specifying a 5 second timeout. This resulted in a uniform timeout regardless of underlying operating system.
    Now, we have to solve the same problem for the Java clients and I'm wondering if there is a similar mechanism for Sun's built-in ORB. Any ideas?

    here's what I found out. The ORB provided by Sun doesn't appear to provide a policy manager or any other way to specify object request timeouts.
    We've ended up using JacORB instead, which very easily plugs into the JDK. With JacORB, we're able to specify an object request timeout using the code below:
    long objtimeout = 5; // sets a 5 second timeout
    PolicyManager policyManager = PolicyManagerHelper.narrow(
    orb.resolve_initial_references("ORBPolicyManager"));
    Policy p = new org.jacorb.orb.policies.RelativeRoundtripTimeoutPolicy(objtimeout * 10000000);
    policyManager.set_policy_overrides(new Policy[]{ p },
    SetOverrideType.ADD_OVERRIDE);

  • Registered objects with Unit of work

    Hi,
    I am using the following code for persisting some data to the database. I register the following objects with the UOW obtained. If there is any exception with the business rules method(shown below) , the code uow.commit() is never invoked.
    My question here is what happens the registered objects in that uow if commit is never invoked.
    Any help will be appreciated.
    Thanks
    Priya
    node=(DeviceNode) uow.registerObject(node);
    station=(Station)uow.registerObject(station);
    user=(User)uow.registerObject(user);
    //Call a method to do some businees rules check
    startWork(node,station,user);
    uow.commit;

    It depends on how you set things up. If you are managing the connection directly via Toplink (no pooling or containers or transactions), then if you dont commit, it doesnt save. If you are using JTS, registering the object will save it to the database barring any unchecked exceptions.
    Zev.

  • Register Object OM17

    Hi people,
    When I go to check the Live Cache consistency, tcode /SAPAPO/OM17, whit one object type, the system request me the acces key for the register object.
    /SAPAPO/OM_SYNC_LC_DB
    What can i do? It´s normal to request this key here?
    Any idea?
    More thanks.
    Edited by: Ruben Torres on Jul 28, 2010 10:46 AM

    Hi Natalia
    ->What is the version of your system?
    It´s SCM 7.0 (Release 701 support package 05)
    ->Did you create the SAP message where this issue was reported?
    No
    ->It will be helpful to know what object type you selected in //om17.
    Everyone that I´ve selected I get the register object
    More thanks!
    Any suggestion?
    Edited by: Ruben Torres on Aug 27, 2010 3:55 PM
    Edited by: Ruben Torres on Aug 30, 2010 11:00 AM
    Edited by: Ruben Torres on Aug 30, 2010 3:35 PM

  • Snap shot remote shared object question

    HI I'd like to take a snapshot of video from a webcam and
    then store that snapshot either as a file or as an object in a
    remote shared object anybody know how that can be accomplished? I
    also need to know how to store a picture in a remote shared object
    ...the picture in this case is being brought into flash using
    loadMovie.

    If you're using loadMovie, you need to extract an image from
    the recorded flv file. FFMPEG does this quite nicely.
    About the use of the sharedObject, you can use it to
    store/sync the location of the image file, but you couldn't store
    the image itself in the SO (well... you could, but you'd have to
    break it down to pixel data and that would make for an awfully big
    SO).

  • Understanding remote shared objects

    Hi Fellow users, I am using a remote shared object in my Flash Media Server project for the first time. My purpose of using a rso is to update data in real-time accross multiple clients.
    Ok, I like to store a list of users who are connected to my application. And when a client disconnects I want the object updated to all other clients connected and the online status list is revised.
    I dont know what the best approach is for this... Is it possible to use the onSync event?  And put the clients in an array and when their properties are changed the server is dispatched and updated. Or, would you recommend other alternatives?
    Interested to hear your thoughts and opinions guys.
    Thanks

    Thank you Rajesh. Apologies for my late reply. Are you suggesting I do something like this? In the code below I have included a changeList array to describe the change properties of each member in a remote shared object. Furthermore, I have created so.data property to store attributes of the rso when a user changes one of the slots it triggers the syncEvent. Can someone please take a good close look at my code to see if you can identify any errors? thanks in advance.
    function syncExample(event:SyncEvent):void{
         my_rso.data.username1;
         my_rso.data.username2;
         my_rso.data.username3;
         my_rso.data.username4;
         my_rso.data.username5;
    for (var i = 0; i <changeList.length; i++){
    var changeList:Array = event.changeList;
    var info:Object;
    info = changeList[i];
    switch(info.code){
       case "success"
      lient_info = my_rso.data[info.name];
       case "change":
       client_info = my_rso.data[info.name];

  • RTMPS remote shared object response failure

    Hi i have a chat application written in Flex/Flash (AS3) with a PHP/mysql backend and i am using Adobe® Flash® Media Server 4.5.2
    The application is working OK in the night with under 200 rtmps connections but during the day with max 400 rtmps connections i get a strange error
    when i am trying to connect to the remote shared object.
    For example i have this portion of code:
    test_so is my shared object
    conn is my connection with the fms server
    test_so = SharedObject.getRemote("test_so","rtmps://uri to my application instance",false);
    test_so.addEventListener(SyncEvent.SYNC,mySyncFunction);
    test_so.connect(conn);
    The shared object synchronization is starting, when i receive the first data with the test_so shared object i get a failure that does not raise any event on the flash part.
    For example if my received data content length is 40Kb long i receive only 28Kb and the transfer is aborted but the rtmps connection is not closed.
    Using some web debugging software (charles and fiddler) i can see when the error appear:
    [https://application instance uri] (content-type: application/x-fcs)
    /open
    - 1
    /idle
    - ID
       - 0 (1 B)
       - 3 (9.95 KB)
       - 6 (28KB) <-- Failure SSL peer shut down incorrectly (Response code 200) (content length is almost 40KB but i only get 28KB then transfer is ended) (NetStatusEvent does not fire any error in flash)
       - 7 (1 B)
       - ... the rtmps connection continue but the flash will never receive any SyncEvent.SYNC because of the error on chunk 6
    /send
    - ID
       - 1
       - 2
       - 4
       - 5
    Here is a screeshot from charles during debug:
    This error appear random but for a lot of clients.
    In the FMS logs i do not see any errors.
    The server is a XEN VPS with 4 cores and 8GB of ram.
    The CPU and ram usage is constant, there are no spikes when the error appear.
    The bandwidth usage is more then double when the error appear.
    The remote shared object is a little big (over 40K) and maybe combined with the bandwidth problems can raise this error.
    I can also reproduce this error when there is little traffic on the server using a bandwidth limiter on client side and setting the limit at 64kb. (i need to put the limit at 128kb for the application to work and to not see that error)
    Maybe someone had the same problem.

    Hi i have a chat application written in Flex/Flash (AS3) with a PHP/mysql backend and i am using Adobe® Flash® Media Server 4.5.2
    The application is working OK in the night with under 200 rtmps connections but during the day with max 400 rtmps connections i get a strange error
    when i am trying to connect to the remote shared object.
    For example i have this portion of code:
    test_so is my shared object
    conn is my connection with the fms server
    test_so = SharedObject.getRemote("test_so","rtmps://uri to my application instance",false);
    test_so.addEventListener(SyncEvent.SYNC,mySyncFunction);
    test_so.connect(conn);
    The shared object synchronization is starting, when i receive the first data with the test_so shared object i get a failure that does not raise any event on the flash part.
    For example if my received data content length is 40Kb long i receive only 28Kb and the transfer is aborted but the rtmps connection is not closed.
    Using some web debugging software (charles and fiddler) i can see when the error appear:
    [https://application instance uri] (content-type: application/x-fcs)
    /open
    - 1
    /idle
    - ID
       - 0 (1 B)
       - 3 (9.95 KB)
       - 6 (28KB) <-- Failure SSL peer shut down incorrectly (Response code 200) (content length is almost 40KB but i only get 28KB then transfer is ended) (NetStatusEvent does not fire any error in flash)
       - 7 (1 B)
       - ... the rtmps connection continue but the flash will never receive any SyncEvent.SYNC because of the error on chunk 6
    /send
    - ID
       - 1
       - 2
       - 4
       - 5
    Here is a screeshot from charles during debug:
    This error appear random but for a lot of clients.
    In the FMS logs i do not see any errors.
    The server is a XEN VPS with 4 cores and 8GB of ram.
    The CPU and ram usage is constant, there are no spikes when the error appear.
    The bandwidth usage is more then double when the error appear.
    The remote shared object is a little big (over 40K) and maybe combined with the bandwidth problems can raise this error.
    I can also reproduce this error when there is little traffic on the server using a bandwidth limiter on client side and setting the limit at 64kb. (i need to put the limit at 128kb for the application to work and to not see that error)
    Maybe someone had the same problem.

  • Losing Connection to Remote Shared Object

    Hello,
    For some reason, and at random intervals, I lose connection to my Remote Shared Object. When it first loads, the data loads up A-ok. However, after 5 minutes, I lose connection to the FMS entirely and a error isn't thrown up at all.
    At the same time I have another net connection to a live stream, it never loses connection. I'm looking for some direction, and ideas on what could be the issue. See below:
    import com.ambient.classes.AmbientUserData;
    [Bindable]public var Branding_so:SharedObject;
         public function init():void
                  Application.application.lblLoading.text = "Initializing, Please Wait...";
                  AmbientUserData.AmbientServer1();
                  AmbientUserData.nc.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
                  AmbientUserData.AmbientServer2();           
         public function netStatusHandler(e:NetStatusEvent):void
                 //mx.controls.Alert.show(e.info.code + tFlag);
                 switch (e.info.code)
                         case "NetConnection.Connect.Success":
                        Application.application.lblLoading.text = "Connected.";
                        initRSO();                                                  
                        break;
                        case "NetStream.Play.StreamNotFound":
                        break;
                        case "NetConnection.Connect.Closed":
                        mx.controls.Alert.show('Connection Lost');
                        break;
                        case "NetConnection.Call.Failed":
                        mx.controls.Alert.show('Connection Failed.');
                        break;
         public function initRSO():void
              Application.application.lblLoading.text = "Loading Server Side Components...";    
              // Colors Tab
              Branding_so = SharedObject.getRemote("bgColor1",  AmbientUserData.nc.uri, true); // 1
              Branding_so = SharedObject.getRemote("bgColor2",  AmbientUserData.nc.uri, true); // 2
              Branding_so = SharedObject.getRemote("txtColor",  AmbientUserData.nc.uri, true); // 3
              Branding_so = SharedObject.getRemote("layoutID",  AmbientUserData.nc.uri, true); // 4
              Branding_so.addEventListener(SyncEvent.SYNC,rsoHandler);         
              Branding_so.connect(AmbientUserData.nc);     
              Application.application.lblLoading.text = "Complete.";        
    public function rsoHandler(e:SyncEvent):void
              Application.application.controlAmbientControl.currentState = Branding_so.data.layoutID;
              Application.application.setStyle("backgroundGradientColors", [Branding_so.data.bgColor1, Branding_so.data.bgColor2]);
              Application.application.setStyle("color", Branding_so.data.txtColor);

    Hi
    has this only started happening? if you open the rdp session on the secondary screen and then maximise it does the same happen?
    Any errors in your log files? 
    maybe this helps:
    http://superuser.com/questions/744808/why-did-remote-desktop-performance-drop-when-switching-from-windows-server-2012r
    Hope this helps. Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

Maybe you are looking for

  • Report on Workflow Programs

    Report on Worflow Programs that are struck in Process displaying at what stage they are struck

  • RFC Adapter

    Hi I am using RFC adapter, I am facing java.lang.outOfMemory Exception whenever payload size increases. Important point: In XI everything is successful.                  But in R-3 I am facing the problem. Please guide me, how to solve this issue. Pi

  • Preview vs. Adobe Reader / Acrobat Pro?

    I am making a PDF from Pages.  When I open the PDF in Preview it looks identical to the Pages file.  When I open it in Adobe Reader or Acrobat Pro it looks as if the colors have been shifted from RGB to CMYK; they don't quite match, they all look sli

  • How to synchronize two NI9215 DAQmx cards?

    Hi there, I'm using two NI9215 DAQmx cards (4ch simultaneous sampling analog inputs) in a chassis type cDAQ-9174. Since I need to aquire 8 channels simultaneously I've two NI9215 cards. My question is how do I configure these cards to be synchonized?

  • Install OEM 10.2.0.1 and upgrade to 10.2.0.3

    Dear all, I want to install the latest version of OEM 10.2.0.3 on Linux RedHat 4. However, after downloading the OEM 10.2.0.3 and reading the release note, I realized that the download is just the 10.2.0.3 upgrade patchset. I have to do a fresh base