Dynamic access to available distributed objects.

What I want is a method called, say, PingAllServices().
This method will attempt to communicate with every service
object "visible" to it. Is Forte capable of providing me
with a list of service objects (remote and local) "visible" to me?
I would also need the ability to attempt to "connect" to this
service object.
The advantages are:
1) Won't have to change code if I change my partition scheme.
2) I only have one version of the method which can be invoked
from any partition.
3) Service objects are not hard coded.
(Avoids bugs where someone has added a service object,
but not updated the method)
4) Perfect for "warm starting" all of my partitions in
a connected environment/failover scenario
5) Startup order of partitions is not an issue. (I could
code to "wait" for all "visible" service objects to
become available).
Mark Sundsten
Unified Information, Inc.
425-814-4012

For simple reflection, I find Statement and Expression of package java.beans handy, but it does have its limitations. Try it:
public class CrappyBean {
    private int value;
    public void setValue(int value) {
        this.value = value;
    public int getValue() {
        return value;
import java.beans.Statement;
import java.beans.Expression;
public class StatementUse {
    public static void main(String[] args) throws Exception {
        CrappyBean object = new CrappyBean();
        Statement setter = new Statement(object, "setValue", new Object[]{17});
        Expression getter = new Expression(object, "getValue", null);
        setter.execute();
        System.out.println(getter.getValue());
}

Similar Messages

  • 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.

  • 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.

  • 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 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

  • 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...

  • Dynamic Configuration of custom Context Objects: is it possible?

    Guys,
    is it possible to use Dynamic Configuration for custom Context Objects as we normally do to technical context objects?
    Also, is it possible to use a context object in receiver determination, even if it is not assigned to a message interface?
    My case: I need to use condition at receiver determination but I dont want to read a field from payload. Instead, I want to write that context object with dynamic configuration and use it at receiver determination runtime.
    I want to do this in order to avoid having to extend the payload's message type because of this extra field for condition (actually, its not that I dont want to, its that I cant. The message type is defined by 3rd party and cant be changed). If it is possible to keep that information at header instead of payload, it'd be great.
    Kind regards and thanks in advance,
    Henrique.

    Hi,
    >>>>>Just a last comment: do you need to deploy any code for the adapter on SDM or just the "fake adapter metadata file" is enough?
    no SDM
    just the metadata file as per my blog
    glad this is what you wanted
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Accessing list of DISPLAY objects in a table component.

    Hi there,
    I am using a class that extends ObjectListDataProvider to populate a JSF table component.
    I need to access the list of objects that are actually displayed currently in the table. The table uses pagination so there are other table elements not displayed and I do not want those.
    Can someone help me?
    thanks

    Hello,
    I've been working with this method and it works good with pagination as far as you do not start to sort the table... it starts to append new rows at the end.
    The only workaround I've found so far is to call clearSort() before getting the ids... but that is just partially nice...
    So, maybe I'm doing something wrong or maybe there is a bug that could be fixed in 1.2?
    Regards,
    Rob

  • 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.

  • BPM SMQ2 in sysfail Access using a 'ZERO' object reference is not possible

    Hi ,
    I am working on a IDOC to SOAP synchronous scenario
    So I am using a BPM....
    I have written a operation mapping outside BPM
    1) Request MM creates the SOAP rquest
    2) Response is a ABAP mapping where i am checking the response from webserice and then generating an email using ABAP code.
    now when i am running this scneario works fine and the mail gets generated...
    however i get a green flag in moni  and in SMQ2 in sysfail Access using a 'ZERO' object reference is not possible
    PS : Also  the response coming from the webserice has a custom header which does not match with the response ABAP mapping source MT
    however if I work on the same thing using Proxy to SOAP sync there is no sysfail message and it works fine
    Is this a bug in the system ...i am using PI 7.1

    Hi,
    Try to implement SAP note 1164228 or apply package SAPKB71007 to resolve your issue.

  • How does Apex access and manage db objects in other schemas?

    I'm looking for a description of how Apex accesses and manages database objects in other schemas.
    I'm sure I've seen such a description somewhere earlier but am unable to find it again...

    Hi Rene,
    When you are connected to sqlworkshop, it is basically connected to the sceham owner of the workspace. If you execute the query
    select sys_context( 'userenv', 'current_schema' ), user,  username from user_users;you would see the schema and user(currently connected) and schema owner through which you have logged in. The user will have all the privileges granted to schema owner. So basically you get connected through APEX_PUBLIC_USER and it has all the privileges of the schema owner.
    In order to run scripts in another schema you would need grants on other schema same like you are connected to user A through sqlplus and wants to create objects in schema B. For example lets say you want to create a table in schema B and you have create table privileges in scehma B , you can execute command create table B.emp as select * from A.emp;
    I hope this answers your question.
    Regards,
    Manish

  • 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&eacute; 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/

  • Dynamic access policy ACL not beeing applied to user

    Hi all
    I have just configured my ASA for ssl vpn
    I have created a dynamic access policy with an ACL in it.
    The user connects fine, and I can see on the logs that the DAP policy has applied to the user
    However when I click on monitoring, it says no acl is applied to this session, and the client cannot get anywhere
    why would this be?
    cheers
    Carl

    When you go to dynamic access policies in ASDM is your NoVPN ACL at the top of the list (highest ACL priority)?  These get processed in order and if your user is in both groups the first will be taken and the rest ignored.
    Also, is your default policy at that bottom of this list deny access?

  • 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.

Maybe you are looking for

  • Ios 8 on my ipod wont work it says connect to itunes wont let me use my ipod

    i download  the ios8 but when it got done downloading it restarted and it shows connect to itunes and i dont know what to do. plus idont know how to connect to itunes

  • IPad Video app mixes Movies and Home Video Kinds

    In iTunes I have videos that are of 'Video Kind' Movie and also 'Video Kind' Home Video.  These show up nicely on the AppleTV, segregated according to their "Kind".  On my iPad Air, however, the Video app mixes them all together under its heading of

  • Question on "How to Handle Inv management Scenarios in BW" docuemnt.

    Hi all, I read the document "How to Handle inventory management scenarios in BW" and I did not understood what a snapshot scenario is?  Can anyone tell me what is the difference between snapshop and non-cumulative scenario's. thanks, Sabrina.

  • How to configure Connection pooling in 10g AS for OCI client

    Oracle Version: 10.1.3.1 Operating System: HP UX B.11.23 64 bit OS Hello everyone, In my connection pools setting of 10g Application server Control my application currently uses JDBC thin client. I need to move to OCI driver. My application uses JDBC

  • Data display

    Hi, When user runs the report R5800073 (Ver WAL0001) for the document number 338405,he will get the csv output,In the CSV output, there is one column problem details2 in which data is appearing in the second line instead of appearing in the current l