Distributed objects on a LAN

I want to write an application that uses distributed objects over a Local Area Network, but the problem is that when a client makes an NSConnection to the server, the host argument has to be a registered internet domain name, which i don't have on my network. Is there a way i could make this work?
Thanks

Have you tried using the machine's Bonjour name (i.e., "nameofmachine.local.")?

Similar Messages

  • In Keynote '09 distribute objects horizontally/vertically is distributing objects beyond the slide. How do I make the left-most and right-most objects the limit of the distribution?

    I used to have the option of distributing objects so that they would overlap, but the current "distribute" tool is functioning as if overlapping isn't allowed. The result is that the objects move beyond the limits of the slide. Any suggestions?

    I know that's what *should* happen, but it just doesn't. I've made screen-grabs of the entire process:
    Like I said, this use to work just as you've described it. Is there a box I accidentally selected? I just really don't understand why the tool has changed the way it functions...

  • Distributed objects leak memory

    When passing this C struct
    NSString* nickname;
    unsigned age;
    } ConnectInfo;
    to this method of distributed object
    - (oneway void)connect:(in ConnectInfo*)ci
    nickname = \[ci->nickname retain]; // or copy - doesn't matter
    the NSString is reported leaked by `leaks` tool. There are as many strings leaked as many calls I did. Memory dump shows exactly this string object's contents. Allocation stack trace points inside NSInvocation/_NSWalkData, not into my code.
    Distributed object is running in separate Cocoa thread in same process. Both threads has auto-release pool established, and there's no warnings in log regarding autoreleasing. SDK is 10.4u, OS is 10.5.4, my platform is PowerPC.
    I tried all combinations of oneway, two-way, in, inout, bycopy, byref, retaining, copying, passing pointer, or reference (ConnectInfo&) to string - every time the string is leaked. If there are more strings in struct, they are also leaked. The only working method is to cast pointer to integer value, but this is a kind of hack.
    DO runtime is obviously doing a deep copy of plain C struct, and somehow forgets to release Obj-C objects it copied. Is this a DO bug, or am I doing something wrong?

    kasym wrote:
    DO runtime is obviously doing a deep copy of plain C struct, and somehow forgets to release Obj-C objects it copied.
    No, it isn't. It is doing a bitwise copy. It doesn't "forget" to release the Objective C object. That object is inside a C struct. Nothing happens automatically in C.
    Is this a DO bug, or am I doing something wrong?
    You are doing something wrong. When working in Cocoa, especially things like Distributed Objects, stick to Cocoa. Use an NSDictionary instead.

  • Distributing objects around a circle

    Hi everyone,
    I'm new here, so I'm sorry if I post it to a wrong section.
    I'm a begginer with Illustrator and I've got a problem with distributing objects around a circle in Illustrator cs6.
    What I'm trying to do is to have these acrhed lines (as per the top three curves you can see below) go around a circle, surrounding it (don't know if i explain myself good...). I was using both blend tool and rotate tool and it doesnt work for me the way I want it. All the time its sort of upside down at the bottom of the cirle and totaly twisted on the left and right... I guess im doing smth wrong, but I just can't find anything helpfull on web..
    Would appreciate it a lot if you could helo me!
    Thanks in advance and sorry for my English, its not my 1st language.

    Cat Nat,
    A completely different way, which may be (un)usable for your purpose is to create the circle with a Stroke Weight corresponding to the width of the arched lines and then in the Stroke palette/panel  apply Dashed line with Round Caps and suitable Dash and Gap values (you may try different values until you get it right).
    You may use the free Adjust Dashes script available here,
    http://park12.wakwak.com/~shp/lc/et/en_aics_script.html
    to get an even distribution/final adjustment.

  • Distributing objects around circle

    I am working on Mac OS 10.4.11 and Adobe CS3 ME.
    I know it's possible to evenly distribute objects in a line. But I would like to evenly distribute objects in a circle shape. Can that be done in Indesign or Illustrator?

    Yes, it can be done in either InDesign or Illustrator.
    I'm going to give you the steps in InDesign, but Illustrator is almost identical.
    First draw the shape that you want to distribute. Position it where you would want the top or 12 o'clock item.
    Now, switch to the Rotate tool. As you do, a rotation center point appears inside the bounding box of the original object.
    This center point needs to be moved to the center of the circle that you want to rotate the object around. (Or where the hands of the clock would originate from.)
    Hold the Option or Alt key and click where the roatation center point needs to be.
    A dialog box appears.
    Enter the angle of roation. This is usually an amount that is created by dividing 360. For instance, if you want 10 objects around the circle, you would enter the rotation amount of 36 degrees.
    If you wanted 12 objects, you would enter the rotation amount of 30 degrees. You figure out what you want.
    Use the Preview amount to see what it would look like. When you like what you have, click the Copy button (not the OK button).
    You will now have one new object in position. At this point you have "primed the pump" so to speak. InDesign now knows to make a copy at a certain rotation.
    Go to Object > Transform Again > Transform Again. The keyboard shortcut is Cmd-Opt-3 or Control-Alt-3.
    Each time you invoke the command, a new copy appears in position.
    This is the classic way to distribute objects in a circle.
    There are other ways to do it that would put the object around an actual circular object.
    But you might as well learn this one first.

  • Distributed transactions, distributed objects

    An observation and a conjecture about distributed transactions
    and distributed object references:
    Distributed non-service object references are persistent, and
    a transaction can, in principle, propagate to the distributed
    object through a method call from another partition.
    However, in order to make the transaction propagate to the
    object's partition the object must also have the
    isTransactional attribute set to TRUE. The Forté runtime
    system apparently uses the isTransactional property not only
    for rollback of a distributed object's state, but also to
    indicate whether it is desired that transactions propagate to
    the object's partition. Thus, the behavior of a distributed
    object reference with respect to distributed transactions can
    be controlled by the value of the isTransactional attribute
    in the same way that the behavior of an environment-visible
    service object with respect to distributed transactions can
    be controlled by the dialog duration.
    Comments?
    John Hodgson |Descartes Systems Group Inc.|Tel TBD
    Systems Engineer|120 Randall Drive |Fax TBD
    |Waterloo, Ontario |www.descartes.com
    |CANADA N2V 1C6 |[email protected]
    Get Your Private, Free Email at http://www.hotmail.com
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    http://transxtrail.sourceforge.net/

  • Distributing objects on a slide

    Here is a strange one. I want to evenly distribute many small graphic objects (stars, circles, etc.) on a slide. I have inserted a shape; copy and pasted multiple times, and then tried to use the Arrange: Distribute Objects to move them around. Rather than spreading them around on the slide, it scatters them far beyond onto the white sheet (I only found them when I went to 25% magnification.
    Am I missing something? Is there a way to have KN scatter the objects evenly- only on the viewable area of the slide?

    Distribute works by creating even spacing either horizontally or vertically among the selected items. It sounds like you may have had some object selected off of the slide.
    I'd suggest retrying the process in the following manner. First, make all the copies you want. Then, position at least one at the edges of area you want them distributed. Next, select all those copies one by one (don't use Select All). Now you can use the two Distribute menu items to evenly space them horizontally and vertically.
    Do note that this process won't really "scatter" items in a randomized way, it will only produce even spacing among the items.

  • Distributed objects

    Hi,
    I have a doubt while going through mastering ejb book. can any one clarify me abt this of exactly what happening
    internally.
    In the implicit middleware:
    " when a client call a distributed object, the client calls a stub which is a client-side proxy object which inturn
    calls over the network the skeleton, which is a server side proxy object then the request interceptor intercepts
    the requests from the clients and then performs the middleware the your distributed object needs".
    In other place i found the following information:
    " The client never invokes the method on the actual instance of the bean, rather the request is intercepted by
    the Ejb container and then delegated to the actual bean instance".
    So what i want to know is what is the actual elements reprsenting the skeleton, request interceptor and stub on client
    side.
    chetana_vir

    So what i want to know is what is the actual
    al elements reprsenting the skeleton, request
    interceptor and stub on client
    side.On the client side, the objects are the vendor-specific implementations of your Remote interface. (The Home acts as the "locator".) However, you don't ever really need to use anything beyond what your interface has provided. Don't worry about the stubs - they're hiding "under" the Remote interface.
    As for the server side, once again you never "see" the skeletons or the request interceptors - all you need to be concerned with is the code in your EJB. The vendor classes take care of accessing and maintaining the various instances of your EJB.
    Personally, having done "straight" RMI, I find this one of the most compelling "beauties" of EJBs. Just get the stuff in order, deploy it, and go!

  • Distributed Objects access control

    When vending a distributed object, I may want the object to be accessible:
    (1) on the internet
    (2) only on the local network
    (3) only on the same machine
    (4) only to the same user on the same machine
    (5) only to other threads in the same process
    Apple's documentation suggests that Cocoa's Distributed Objects are a good choice for any one of these scenarios, but offers no clear explanation of how to specify which of those behaviors is desired. Any pointers?

    Look at the documentation for Configuring a Connection. Use a plain NSPort for local-only communication. Use an NSSocketPort for network communication. A couple of pages after that section, there is another one on "Authenticating Connections".
    There isn't anything about Distributed Objects that differentiates any of the different possibilities. You can use your port type to differentiate local vs network and then you will have to write your own authentication scheme for the other possibilities.

  • Distributed Objects over the internet

    I'm hoping that someone can help me out here. I'm trying to get distributed objects to work on a game I'm developing. I can make it work if I run both the 'server' and the 'client' on the same machine, but when I try to set it up for use over a network, it crashes when trying to get the rootProxy.
    Here's the code for vending the object:
    id theServer;
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    MYMessageServer * server = [[MYMessageServer alloc] init];
    NSSocketPort * receivePort;
    NSConnection * theConnection;
    receivePort = nil;
    theConnection = nil;
    receivePort = [[NSSocketPort alloc] initWithTCPPort:1234];
    theConnection = [NSConnection connectionWithReceivePort:receivePort sendPort:nil];
    [theConnection setRootObject:server];
    [theConnection registerName:@"server"];
    theServer = [[theConnection rootProxy] retain];
    [[NSRunLoop currentRunLoop] configureAsServer];
    [[NSRunLoop currentRunLoop] run];
    [server release];
    [pool release];
    return 0;
    This runs fine and seems to vend the object without a problem.
    Here's the code for trying to access the vended object:
    NSSocketPort * sendPort;
    NSConnection * theConnection;
    sendPort = nil;
    theConnection = nil;
    sendPort = [[NSSocketPort alloc] initRemoteWithTCPPort:8081 host:@"192.168.0.5"];
    theConnection = [NSConnection connectionWithReceivePort:sendPort sendPort:nil];
    server = [[theConnection rootProxy] retain];
    if (nil == server) {
    NSLog(@"Error: Failed to connect to server.");
    } else {
    [server setProtocolForProxy:@protocol(MYMessageServerProtocol)];
    [server addMessageClient:self];
    [server broadcastMessageString:[NSString stringWithFormat:@"Connected: %@ %d\n", [[NSProcessInfo processInfo] processName], [[NSProcessInfo processInfo] processIdentifier]]];
    When I use the defaultConnection for the vending of the object and localhost for accessing it on the same machine, everything runs just fine. However, when i try to use the TCP and setup the connection through the network, it crashes on server = [[theConnection rootProxy] retain];
    If anyone can make suggestions or offer examples of how to set up this, I would be extremely grateful.
    Thanks.
    PS 'server' variable is declared in the object.h file.
    Mac Pro 4 GB Ram   Mac OS X (10.4.8)

    I've only tested this method locally, haven't had time to connect to another remote network to do further testing...
    *BETA SOFTWARE - Hamachi and the HamachiX GUI are BETA! Still undergoing testing, bugfixing, etc.*
    Look into Hamachi/HamachiX (Hamachi is a hosted VPN app - beta, and HamachiX is a GUI for it - also beta) If this is mission critical work, you may want to wait until it is out of beta..
    www.hamachi.cc
    http://forums.hamachi.cc/viewforum.php?f=16&sid=8e6c84f54d65b9d8974ca8e1da860932 (Hamachi MacOS X forum)
    ( - As with all BETA software... YMMV, use at your own risk, you break it you bought it, no blaming Jeff for loosing your data, stop use immediately if rash, shortness of breath, or annal leakage is observed.. talk to your Dr. about other supplements and medication you may already be taking. - )
    (I'd really like to see Apple license Hamachi - once it's out of beta of corse -and integrate it into the next version of ARD... seems slick.)
    I have 3 Macs right now on a Hamachi network, named **, and a password **. Once all 3 Macs are connected to the Hamachi network, I enter the 2 ARD client Macs Hamachi IPs 5..*. into ARD.
    So far, so good.
    Leo Laporte and Steve Gibson have discussed Hamachi and it's use on the Security Now! podcast.
    http://www.grc.com/securitynow.htm
    ep #18 (Titled "Hamachi" Rocks!) and #19 (Titled VPNs Three: Hamachi, iPig, and OpenVPN) specifically ....
    One thing not made clear at the Hamachi or HamachiX web sites is that HamachiX (GUI) also installs Hamachi (get to avoid the command line if you wish) if it isn't already installed.
    Good luck.
    Jeff
    PowerBook G4 550 512MB ram, 40GB HD, SuperDrive, PowerMac G5 2x2.3GHz - 2.5GB   Mac OS X (10.4.2)   250GB HD, Mac mini - 1GB Ram, Apple 20" LCD connected to mini+PM G5 via DVI Swit

  • Blend tool problems with distributing objects.

    Hi Everyone,
    First time here so I hope this is the appropriate forum locale for this specific question - of which I have not found a solution online or in these forums.
    I have dealt with this problem for quite some time and am sick of manually correcting blends so I am seeking help.
    Here is the situation:
    I draw a simple oval, copy it and move it somewhat diagonally across the page.  I then resize the oval slightly (thinner) but retain the same amount of anchor points.
    I then rotate the oval about 2 degrees.
    Next I apply a blend - hoping it will blend the two shapes evenly (like it did in pre CS versions) but the blended ovals get closer to each other on one side than the other - so it seems to be a weighting problem... so I checked out each of the blend options and even tried the various methods of making a blend (via panel, or pull down menu, hot keys, etc.)  Nothing works to get the shapes evenly spaced.  Distribution and alignment panel offers no help either and in some cases makes the objects distribute more unevenly.
    Summary:  If I make two IDENTICAL shapes/ovals, the blend works fine... but once I modify one of the ovals, before or after the blend is made, even in the slightest bit, the distribution spacing gets skewed/uneven.
    I don't think it is a bug since I've had this problem since early CS days.   Is anyone else having this problem?
    I hope it is an easy fix.  I am using a PC version of Illustrator, if that matters in this case.
    Thank you ahead of time for your consideration and help.

    I've tried all those options (distribute spacing, distribute objects, specified distance, specified steps, etc) without success... it wound up just being the 'ol visual issue described above and the manner in which I set up my illustration.
    So after I create a blend, I try the various options to get the objects to align / distribute correctly (to fix the visual issue), but after, say, applying "distribute spacing", the ovals arc slightly so that they are not aligned in a straight manner from end to end.
    I then try other alignment options and nothing seemed to correct the alignment from one oval to the next... thus I had to correct it manually.
    Anyways, I found that if I set up my illustration so as to do my oval blends on a horizontal or vertical axis (without transforming one side, but keeping them all the same - in a grid-like pattern) and then Free Transform the group of ovals afterwards to indicate perspective and the like -- that seems to be a reasonable solution.
    I also learned a new trick in this process / forum post.
    I won't be able to reply for a while... All is well now and I gotta get to work, so it's literally back to the drawing board for me.
    Thanks again!   =)

  • Distributing objects across a cluster

    We are moving to a clustered environment and are having problems with
              session data that is cached with the RMI user connection. In a Weblogic
              cluster a client request can be directed to any RMI server in the
              cluster. The session data is lost if the client is not directed to the
              original server or if this server goes down. I don't want to pin users
              to an RMI server because this doesn't support failover situations.
              Has anyone implemented a way to distribute objects across a Weblogic
              cluster? TIA.
              Todd
              

    I am in the processing of writing a caching server using RMI, same problem -
              also looking for a solution.
              Thanks
              Alan
              "John Mani" <[email protected]> wrote in message
              news:[email protected]..
              > Hi Todd
              >
              > This is our dilemna as well ..
              >
              > WebLogic does not support clustering of stateful RMI objects
              > "out-of-the-box".
              > It's up to the app-developer to design this.
              >
              > I'd be interested in knowing how other folks have approached this
              > problem as well.
              >
              > Also, how do other app-servers (WebSphere, Kiva etc) deal with this ?
              >
              > thanx
              > -john
              >
              > Todd Hayes wrote:
              > >
              > > We are moving to a clustered environment and are having problems with
              > > session data that is cached with the RMI user connection. In a Weblogic
              > > cluster a client request can be directed to any RMI server in the
              > > cluster. The session data is lost if the client is not directed to the
              > > original server or if this server goes down. I don't want to pin users
              > > to an RMI server because this doesn't support failover situations.
              > >
              > > Has anyone implemented a way to distribute objects across a Weblogic
              > > cluster? TIA.
              > >
              > > Todd
              

  • Aligning and Distributing objects in InDesign

    Hi,
    I am using InDesign CS4. But I am having a trouble aligning objects. I know that in illustrator it is possible to align objects to a main object. For example, lets say I have several same square shapes on my page. I can make any one of the squares as the main object for others to get aligned or distributed to.
    I wanted to do the same thing in InDesign but was never able to do that. I wonder if it is even possible to do that. InDesign doesn't seem to have that option. But it was such a handy tool.
    Can you help me with the trick?

    Thanks Peter Spier. I am sorry for the misleading information. You were right about the alignment and distribution tools. On my CS4, the Alignment option works with the locked object, but the Distribue Objects and Distribute with Set Space doesn't work with a locked object. I am trying to use the distribute with a set spacing around "the main object". In other words, it will make my work a lot easier if I first align an object at a certain point on the page and then use two other text frames on both sides of the object with an equal spacing (using the Distribute Spacing tool).
    I hope it makes a sence. Thanks.

  • Auto align & distribute objects in a grid?

    i love the align & distribute 'tools' i use them all the time.
    but it has always appeared thay they are only good for a single row of objects.
    is this correct or is it possible to select a 'grid' of objects and have them evenly aligned & distributed?

    Yup it's here Christoph..
    http://www.scriptsrus.talktalk.net/distLayers.htm

  • New in distributed object model

    Hi everyone,
    I'm rather new in RMI and distributed software in general, and have a question perhaps seems very clear for everyone, but I don't find clearly explained.
    When tutorials talk about invoking a remote method, do they mean the RMI client gets a remote method from a remote class and runs itself, or do they mean the RMI client only gets the return from a remote method execution in the server side ?
    I think so, but before following reading, I'd like to be sure.
    Thanks in advance. Ignasi Villagrasa.

    What they mean is that a client program finds - somehow - an object that is actually instantiated on a server, and calls a method of that object, resulting in the method being executed on the server.

Maybe you are looking for

  • Error loading...lvdaq.dll initialising dll error

    when I tried to put the Ai Acquire waveforms.vi from the NI measurement/Data acquisition/analog input folder in the functionspalette to into my blockdiagram I get the attached error message. When I do it logged in with administrator rights there is n

  • Japanese menus to English ones?

    Help.  I want to change the menus so that they display in English, not Japanese.  Is there a way to do this? Adobe Acrobat 9 Pro ver 9.2.0 is installed on my PC, but all the menus are in Japanese.  Some help as to where this setting is located would

  • "ORA-28578: protocol error..." before calling an external procedure

    Hello, Oracle reports this error Error report: SQL Error: ORA-29856: error occurred in the execution of ODCIINDEXCREATE routine ORA-28578: protocol error during callback from an external procedure 29856. 00000 - "error occurred in the execution of OD

  • Oracle.bpm_template_12.1.3.jar is missing in 12c JDev installation.

    Hi, To install BPM in 12c I am using following commands. CD %ORACLE_HOME%\soa\common\bin set QS_TEMPLATES=%ORACLE_HOME%\soa\common\templates\wls\oracle.bpm_template_12.1.3.jar qs_config.cmd The issue is I could not found oracle.bpm_template_12.1.3.ja

  • ITunes 5.0.1 installation -- iTunes and Classic don't work

    I was downloading the latest updates a few days ago, which included iTunes 5.0.1. Unfortunately, my computer crashed as the iTunes file was downloading. After restarting, I downloaded iTunes 5.0.1 again. Now, my iTunes just bounces once when I click