Binding an object to a remote registry. Can it be done?

I am having problems vending an object to a remote registry. Most of the examples that I have seen vend the object to a local registry which is not really what I need to do.
I was trying to do:
<PRE>
Remote myObject = ...
Registry r = LocateRegistry.getRegistry("someMachineOnTheNetwork");
r.bind("rmi://mymachine/objectName", myObject);
</PRE>
This fails every time with an AccessException. It seems that the RMI registry only allows binding of objects that are local to it (I don't know of a way of enabling permissions for this. Seems reasonable to expect that not everyone should have the ability to register objects on any registry, but there must be a workaround.
Any ideas?

considering the security reasons the rules of the game is that registry must be in the same host as the probram doing the binding.
So what is LocateRegistry for in that case? Basically it is to be noted that a getRegistry call does not actually make a connection to the remote host. It simply creates a local reference to the remote registry and will succeed even if no registry is running on the remote host. Therefore, a subsequent method invocation to a remote registry returned as a result of this method may fail.
I hope I answered your question.

Similar Messages

  • Possibility for a workaround for binding a service in a remote registry

    Hi,
    I know that I�m not allowed to bind a local service in a remote registry because of security matters(everybody could unbind any service he wants).
    But is there a way to make this thing possible with a workaround?
    The problem is I have a main component(my Client) and one can add new components to that component. This adding should happen with RMI. But how can I let my client dynamically know where to look for the new services(components), that means at what IP ?
    I know that there is something like a Jini-like discovery for RMI:
    http://www.javaworld.com/javaworld/jw-11-2001/jw-1121-jinirmi.html
    but I�m afraid if I do it this way, I cannot use my codebase setting like I do now.
    Anybody good ideas for a problem like that?
    THX

    Hi,
    The tutorial I mentioned in the thread above works great!
    So if anybody wants a location neutral RMI-lookup, please use this tutorial!
    Even the codebase settings work with that tutorial!

  • Remote registry: OpenRemoteBaseKey not working

    Hi
    I'm trying to read a remote registry key. I have the Remote Registry service running on on the target machine, and I can read the key using `reg query`. In all honesty, this is good enough for my purposes.
    PS C:\> reg query "\\remote-machine\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer" /v VersionHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer    Version    REG_SZ    9.11.9600.17420
    However, I'm curious to know why I can't do this with Powershell and OpenRemoteBaseKey. I've tried the following steps
    from here:
    PS C:\> $remote = "remote-machine"PS C:\> $type = [Microsoft.Win32.RegistryHive]::LocalMachine
    PS C:\> $reg = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey($type, $remote )
    PS C:\> $regpath = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer"
    PS C:\> $productkey = $reg.OpenSubKey($regpath)
    PS C:\> $productkey.getvalue("Version")
    You cannot call a method on a null-valued expression.
    At line:1 char:1
    + $productkey.getvalue("Version")
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull
    Inspecting the values produced, $productkey is null, and $reg appears to be empty:
    PS C:\> $reg
    Name Property
    PS C:\> $reg.GetType()
    IsPublic IsSerial Name BaseType
    True False RegistryKey System.MarshalByRefObject
    PS C:\>
    So, why would `reg query` work, while `OpenRemoteBaseKey()` does not? I can use `reg query` well enough in my scripts, but I'd prefer something a little more Powershell-y.
    Cheers

    When you update IE, it does not necessarily update the 'Version' value in the registry.
    -- Bill Stewart [Bill_Stewart]
    Okay. Are you referring to what is stated in the following paragraph from the same page you linked before?
    Internet Explorer 3.x does not add the version value to the registry. Instead, it adds a "build" value to the same registry key and updates the "IVer" string value to "103." For backward compatibility, Internet Explorer 4.0 and later versions change or add the build value. For Internet Explorer 3.x, the build value is a string that contains the four-character build number. (For example, "1300" is the build value for Internet Explorer 3.02). For Internet Explorer 4.0 and later versions, the build value is a string that contains a five-character value, followed by a period and four more characters, in the following format:
    If so, I think it does not apply after IE4. In which case, as all the machines on my domain are Windows 7 or Server 2008 installs, I don't think it's likely that they have such an old version installed.

  • Creating and Binding View Objects dynamically : Oracle Jdeveloper 11g

    Hello,
    We are trying to create and bind view objects dynamically to adf data visualization components.
    The view object is a result of multiple tables.
    We are using Oracle JDeveloper 11g Technical Preview. ( can't upgrade to TP2 or TP3 now).
    We have found this : http://radio.weblogs.com/0118231/stories/2003/07/15/creatingUpdateableMultientityViewObjectDefinitionsDynamically.html on our search for the same.
    The sample application however, is in 10g , hence required migration.
    Also, it was a standalone application with the TestClient.java having a main() method.
    Our requirement is for Web Application; we use Adf+jsf .
    Guidance of any sort is very much appreciated.
    Thanks in advance.
    -Anil Golla

    Hi,
    there also exist a forum for JDeveloper 11: JDeveloper and OC4J 11g Technology Preview
    What you are trying todo is not trivial because you need to not only dynamically create the VO, you would also dynamically need to create the binding meta data for it (assuming you use ADF). Not sure if the API to modify the binding is public, so posting it on the JDeveloper 11 forum bears a glimpse of hope for an answer
    In JDeveloper 10.1.3 you can't do this
    Frank

  • Properly binding an object to a custom component.

    I am apparently not doing this. What am I missing to properly
    bind an
    object from a repeater looping over an array of object to the
    custom
    component called in the repeater?
    <mx:Repeater
    id="dayCells"
    dataProvider="{days}"
    startingIndex="{weekRows.currentItem}"
    count="7">
    <mx:GridItem
    width="14%"
    borderColor="black"
    borderThickness="1"
    borderStyle="solid">
    <mx:Label
    text="{dayCells.currentItem.formatedDate}" />
    <ian:dayFormat2
    drawData="{dayCells.currentItem as drawDay}"
    test="{dayCells.currentItem.formatedDate}" />
    </mx:GridItem>
    </mx:Repeater>
    {days} is an array of drawDate.as objects returned with a
    remoteObject.
    I can correctly bind properties of these drawDate objects in
    the
    lable and the test property of the dayFormat2
    customComponent. But I
    can NOT correctly bind the entire object over to dayFormat2.
    What am I
    missing?
    My current version of dayFormat2.mxml, I have tried several
    alternatives
    for this file.
    ?xml version="1.0" encoding="utf-8"?>
    <mx:VBox xmlns:mx="
    http://www.adobe.com/2006/mxml"
    width="100%">
    <mx:Script>
    <![CDATA[
    import drawDay;
    //Define public variables
    [Bindable]
    public var drawData:drawDay;
    [Bindable]
    public var test:String;
    ]]>
    </mx:Script>
    <mx:DateFormatter id="dayNum" formatString="DD" />
    <mx:HBox
    backgroundColor="0x002649"
    width="100%"
    horizontalAlign="right">
    <mx:Label
    text="{test}"
    color="white" />
    <mx:HBox
    backgroundColor="0xAF1E2D"
    horizontalAlign="center">
    <mx:Label
    text="{dayNum.format(drawData.date)}"
    color="white" />
    </mx:HBox>
    </mx:HBox>
    <mx:Label text="foobar" />
    </mx:VBox>
    The first label bound to the test String works correctly. The
    second
    label bound to the drawData drawDay object date property does
    not work
    correctly.
    What is the proper way to bind this object?

    I have struggled with this all day and made no headway. The
    only
    strange thing I get is with this line:
    <mx:Label text="{dayCells.currentItem.toString()}" />
    outputs [object Object]
    Not the expected string from this drawDay.as function.
    // toString()
    public function toString():String
    return "Date: " + formatedDate;
    Ian Skinner wrote:
    > I am apparently not doing this. What am I missing to
    properly bind an
    > object from a repeater looping over an array of object
    to the custom
    > component called in the repeater?
    >
    > <mx:Repeater
    > id="dayCells"
    > dataProvider="{days}"
    > startingIndex="{weekRows.currentItem}"
    > count="7">
    > <mx:GridItem
    > width="14%"
    > borderColor="black"
    > borderThickness="1"
    > borderStyle="solid">
    > <mx:Label
    > text="{dayCells.currentItem.formatedDate}" />
    > <ian:dayFormat2
    > drawData="{dayCells.currentItem as drawDay}"
    > test="{dayCells.currentItem.formatedDate}" />
    > </mx:GridItem>
    > </mx:Repeater>
    >
    > {days} is an array of drawDate.as objects returned with
    a remoteObject.
    > I can correctly bind properties of these drawDate
    objects in the lable
    > and the test property of the dayFormat2 customComponent.
    But I can NOT
    > correctly bind the entire object over to dayFormat2.
    What am I missing?
    >
    > My current version of dayFormat2.mxml, I have tried
    several alternatives
    > for this file.
    >
    > ?xml version="1.0" encoding="utf-8"?>
    > <mx:VBox xmlns:mx="
    http://www.adobe.com/2006/mxml"
    width="100%">
    > <mx:Script>
    > <![CDATA[
    > import drawDay;
    >
    > //Define public variables
    > [Bindable]
    > public var drawData:drawDay;
    >
    > [Bindable]
    > public var test:String;
    > ]]>
    > </mx:Script>
    >
    > <mx:DateFormatter id="dayNum" formatString="DD" />
    >
    > <mx:HBox
    > backgroundColor="0x002649"
    > width="100%"
    > horizontalAlign="right">
    > <mx:Label
    > text="{test}"
    > color="white" />
    > <mx:HBox
    > backgroundColor="0xAF1E2D"
    > horizontalAlign="center">
    > <mx:Label
    > text="{dayNum.format(drawData.date)}"
    > color="white" />
    > </mx:HBox>
    > </mx:HBox>
    >
    > <mx:Label text="foobar" />
    > </mx:VBox>
    >
    > The first label bound to the test String works
    correctly. The second
    > label bound to the drawData drawDay object date property
    does not work
    > correctly.
    >
    > What is the proper way to bind this object?

  • Only One domain controller, Remote Registry service keeps DISABLING itself. Where in the registry could this be set?

    This is killing my remote management. I have 4 server 2012R2 domain controllers.  Only one of them is being affected with this problem.  Almost everytime I check, the remote registry service is disabled again.  It seems like there is a corrupt
    group policy preference that keeps on attacking during a policy refresh, but I can't imagine setting a group policy to disable this service.  It is needed for our remote management.  Also the IP Tunnel service is also disabling.  Another strange
    artifact is that when I set a Windows Firewall policy to add an exception for remote administration in a group policy to my Admin workstation, it seemed to set a firewall rule in other computers to block remote administration.  I can not figure out where
    else this strange Windows Firewall rule Blocking remote administration could have come from.  These may be related or they may not, but they are occuring on the same domain controller.  I am able to set the RemoteRegistry service to enabled and to
    start it (which I have done too many times now), but it constantly is being changed back to disabled.  I am searching the registry to find any invalid entries or artifacts that may be affecting these two annoying effects, but I cannot find anything yet.
     Any ideas?  I need to know what policies will disable the remoteregistry service OR the IPTunelling service, or where in the registry this could be set to enact this during a policy refresh.  Of course, any other ideas are welcome, I have spent
    several days troubleshooting this, and need to conquer this by tomorrow if possible, thank you. James

    Hi,
    Please type
    services.msc in RUN to open Services panel, navigate to the Remote Registry service. Then open its Properties and set
    Startup type: Automatic. Then please check if this issue still exist.
    In addition, please refer to mlippold’s suggestion (the last reply) in following thread and configure relevant
    value in RemoteRegistry registry key, then check if can help you to solve this issue.
    For registry items, please back up all registry items before all operations. That will help us to avoid some unexpected issue.
    Remote
    Registry Service stops automatically if we do not use it above 10 minutes
    By the way, did you open Event Viewer and check if find any relevant errors?
    If any update, please feel free to let me know.
    Hope this helps.
    Best regards,
    Justin Gu
    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 Support, contact [email protected]

  • Cannot start remote registry windows 8.1 x64 enterprise

    I am trying to install EMC 2010 sp3 on Windows 8.1 Enterprise x64 but the install fails; cannot start remote registry due to credentials. I have tried the credentials that RPC is using, Network Services, but it doesn't work. Have tried other credentials
    with same error.

    Hi,
    Please check if you have installed .net framework 3.5.
    The reference is below:
    http://social.technet.microsoft.com/Forums/exchange/en-US/aeeedf06-9d9f-4186-9ba9-28c2a2fbaa88/exchange-2010-sp3-installing-on-windows-81server-2012r2?forum=exchange2010
    Meanwhile, about this issue, better to post to the forum for Exchange:
    http://social.technet.microsoft.com/Forums/exchange/en-US/home?forum=exchange2010
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    Karen Hu
    TechNet Community Support

  • Using JNDI to bind any object

    Hi,
    I intend to bind a few objects in JNDI context so that they can later be just looked up and then used.
    I can use code like this:
    =========
    Hashtable env = new Hashtable();
    env.put(Context.PROVIDER_URL, SOME_PROVIDER_URL);
    env.put(Context.SECURITY_PRINCIPAL, "user");
    env.put(Context.SECURITY_CREDENTIAL, "passwd");
    Context ctx = new InitialContext(env);
    context.bind("name", object);
    =========
    This object can later be looked up. So far so good. However, this will bind the object in the same VM "only".
    Is there any way of calling something like:
    ====
    someOC4JClass.getNamingService().bind("name", object);
    ===
    so that the underlying naming service takes care of making this object available across JVMs?
    Any help/pointers will be highly appreciated.
    Thanks,
    Ravi

    Ravi -- Currently OC4J's internal JNDI is not a global JNDI shared by all OC4Js. One way to approach this problem would be to bind the objects in some global / common JNDI like OID.
    Thanks -- Jeff

  • Binding ActionScript object to webservice

    Hi,
    Can someone please provide me with simple example as to how
    to bind an ActionScript object to the webservice.
    The Scenario is I have an actionscript class. I have the
    webservice in the mail mxml. I want to create an object of the
    class and want to bind that object to the webservice rather than
    binding each of the property.
    Thanks in advance.

    Do not bind directly to a webService result. Use a result
    handler, and assign the result to a bindable variable. Bind to
    that.
    To intercept binding events in AS code, use a ChangeWatcher.
    Tracy

  • Conflict start: You tried to bind an object under the name abc.Scheduler

    I have deployed my application on the WLS which is configured for clustred with 2 managed server and one admin server in the same machine. I see the below error on both of the managedServer consoles. can any one please help me resolving this issue.
    <Conflict start: You tried to bind an object under the name abc.Scheduler in the JNDI tree. The object from -2433108061996587758S:192.168.0.61:[7014,7014,-1,-1,-1,-1,-1]:SingleDomainClusterTake2:ManagedServer1 is non-clusterable, and you have tried to bind more than once from two or more servers. Such objects can only be deployed from one server.>
    Regards
    Suresh.

    Hi Jay,
    Below is the code snippet where I am binding the Schedular Object to a JNDI abc.Schedular and I got the above error message when I trying to deploy the application in clustered environment.
    Code Snippet where binding the Schedular Object
    private static final String JNDI_NAME = "abc/Scheduler";
    Hashtable ht=new Hashtable ();
    InitialContext context = new InitialContext();
    scheduler = new Scheduler();
    scheduler.setStorage(new DatabaseSchedulerStorage());
    context.bind(JNDI_NAME, scheduler);
    Code Snippet for looking up the schedular object
    protected Scheduler getScheduler() throws NamingException {
    if (scheduler != null) {
    return scheduler;
    Scheduler s=null;
    if(workaround){
    s=((ThreadManager)SchedulingServlet.getThreadManager()).getScheduler();
    }else{
    InitialContext context = new InitialContext();
    s = (Scheduler) context.lookup("reactor/Scheduler");
    if (s.getStorage() == null) {
    s.setStorage(new DatabaseSchedulerStorage());
    scheduler=s;
    return scheduler;
    I have added "ht.put(WLContext.REPLICATE_BINDINGS, "false");" to get rid of the conflict error but I what this object to be clustrable and you please let me know how do I make this object clustrable.
    I am using quartz schedular.
    Regards
    Suresh.

  • How to bind an object to JNDI tree in iAS?

    Hi all,
    When I try to bind a string object to jndi tree, the following exception
    occurs:
    javax.naming.NamingException: Unable to get object instance from reference.
    Roo
    t exception is javax.naming.NamingException: Can't bind instance of class
    java.lang.String
    at com.netscape.server.jndi.RootContext.bindCtx(Unknown Source)
    at com.netscape.server.jndi.RootContext.rebind(Unknown Source)
    at com.netscape.server.jndi.RootContext.rebind(Unknown Source)
    at javax.naming.InitialContext.rebind(InitialContext.java:385)
    at jsp.APPS.bmx.test2._jspService(test2.java:76)
    at jsp.APPS.bmx.test2.service(test2.java:42)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
    Source)
    The code fragment is:
    Context ctx = new InitialContext();
    String str = "hell,every one!";
    ctx.rebind("abc", str);
    Can anyone give some help? Thanks in advance.
    Johnson

    To bind an object into the JNDI tree check the documentation here:
    http://e-docs.bea.com/wls/docs81/jndi/jndi.html#475702
    If this is to be used by all your applications that you deploy on the server check out the startup/shutdown class documentation here:
    http://edocs.bea.com/wls/docs81/ConsoleHelp/startup_shutdown.html
    Cheers
    IV

  • Server 2012 Win 8.1 GPO Remote Registry Service & Group Policy Trace

    I'm trying to enable the Remote Registry Service via GPO (Computer > Preferences > Control Panel > Services).
    I set the following (and left the other config items at default):
    Startup: Automatic
    Service  name: RemoteRegistry
    Service action: Start service
    This only results in a message in the event log and a message when running "gpupdate /force" both saying
        "Windows failed to apply the Group Policy Services settings. Group Policy Services settings might have its own log file. Please click on the "More information" link."
    HA! When was the last time one of those links helped anyone?
    So I tried to enable "Computer > Policies > Administrative Templates > System > Group Policy > Logging and tracing > Configure Services preference logging and tracing" and set
    Event logging Informational, Warnings and Errors
    Tracing On
    User trace c:\Trace\User.log
    Computer trace c:\Trace\Computer.log
    Planning trace c:\Trace\Planning.log
    Maximum size of trace file (KB) 1024
    I made the C:\Trace folder.
    And NOTHING.
    So the GPO doesn't log anything meaningful to the Event Viewer (and tells you to look somewhere that says it can't help you), The same thing is in the "Operational" GPO log, Group Policy Result and GPRESULT /h <filename> give you the same
    meaningless poop.
    Is there any way to start the flippin' service with the GPO, and is there a way to get any kind of meaningful logging?

    Hi,
    >>
    Is there any way to start the flippin' service with the GPO, and is there a way to get any kind of meaningful logging?
    If we want to get verbose information about group policy processing, we can try to enable logging in the Gpsvc.log file.
    Regarding how to enable logging in the Gpsvc.log file, the following blog can be referred to for more information.
    How to enable GPO logging on windows 7 /2008 r2 ?
    http://blogs.technet.com/b/csstwplatform/archive/2010/11/09/how-to-enable-gpo-logging-on-windows-7-2008-r2.aspx
    In addition, regarding group policy debug logging, the following article can be referred to for more information.
    Group Policy Debug Log Settings
    http://social.technet.microsoft.com/wiki/contents/articles/4506.group-policy-debug-log-settings.aspx
    Best regards,
    Frank Shen

  • Loading 32 bit remote registry in Windows 2008/ 2008 R2

    Would anyone know how to force remote registry to run as 32bit in 2008/R2?
    This is something you could do in a rare case where you needed to access only 32 bit performance counters remotely in 2003, but in the newer OS versions the work around isn't working because the required regsvc.dll is no longer present in the SYSWOW64 directory.
    I understand this is probably an odd request, but I am really coming up blank on all fronts. I'm just looking for whether it's even going to be possible anymore.
    Jason R. Hall MCSE, MCSD, MCPD.NET 2.0

    Hi Jason,
    Please have a look at this article:
    Reading 32-bit counters on a 64-bit machine
    http://blogs.msdn.com/b/edglas/archive/2006/09/06/reading-32-bit-counters-on-a-64-bit-machine.aspx
    Hope it helps.
    Regards,
    Bruce
    This posting is provided "AS IS" with no warranties, and confers no rights. 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.

  • Remote Disc Can't recognize Blank disc, but it does recognize other discs. I am trying to burn something from my itunes on my mac mini to a blank disc on my windows computer. What could be wrong?

    Remote Disc Can't recognize Blank disc, but it does recognize other discs. I am trying to burn something from my itunes on my mac mini to a blank disc on my windows computer. What could be wrong?
    I can see other discs such as music and stuff so I know I have installed it correctly but how come I can't see the blank disc that I need to burn?

    You can't burn discs remotely, you can only read data discs remotely (i.e. you cannot play movie DVDs either).
    Either copy the files to the remote computer or get an external drive.

  • I have updated to ios 7 and Microsoft outlook web access for work emails no longer works nor my remote access can you help

    I have updated to ios 7 and Microsoft outlook web access for work emails no longer works nor my remote access can you help

    This happened to me as well. I read somewhere else that resetting the network settings (General, Reset, Reset Network Settings) would help and it partially did. I get half (the folders) of the Web Access screen rather than a blank screen. I tried tihs a few more times and got the right half (the messages) on occasion but never the whole web page.

Maybe you are looking for