Where is the Stub created? In registry or in Client's machine?

Hii..
I hav some doubts abt RMI..
The part after t client getting t remote ref(stub obj) of t client s perfectly clear 2 me.
My doubt s abt t previous part � ie. How t client gets t stub obj.
I ll tell my concept abt this� plzz correct me if I m wrong.. :
Suppose Rmiregistry n server(which extends from UnicastRemoteObj)runs on t same m/c
Client runs on another m/c
1. Wen server s up, it exports itself 2 a particular port n listens 2 t port for incoming client connections.. (this port s chosen arbitrary@runtime)
2. Rmiregistry listens 2 port 1099 on t same machine..
3. Server registers a public name wit registry n pass t a Remote obj(server obj) as t second param in t bind/rebind call
4. Rmiregistry itself s a remote object.. For accessing any remote object we need a stub.. t Naming class act as t stub for rmiregistry
5. Now t situation s client needs 2 get an obj of stub 2 contact t server, or at least it shud know 2 which arbitrary port t server s listening 2
6. so it looks up t rmiregistry for t public name, t rmiregistry creates an object of stub and returns t stub object 2 t client..(is it right?)
7. For creating an obj of stub, rmiregistry must know 2 which port t server is listening(so t server might hav given t info 2 registry while binding.. right??)
8. since rmiregistry itself is a remote object t newly created stub object itself is passed in a serialized manner(registry marshals t stub obj) 2 t client using t rmi protocol itself.
9. now t client demarshalls t passed stub obj 2 get t stub
10. finally t client uses t stub 2 directly communicate wit t server(ie. 2 connect 2 t listening port of t server)
11. now t commn b/w client n server takes place directly without t intervention of t rmiregistry�
This s my Concept abt t whole scenario in 1.4(in 1.5 no need 4 stub or skeletons) plzz correct me if I m wrong@any of these points..
If my concept is right, then I hav a few q�
Consider an application Calc
� remote interface : Calc(which extends Remote)
� server which implements t Calc i/f : CalcImlp(which extends UnicastRemoteObject)
� client : CalcClient
In CalcImpl�s main(),
Naming.bind(�calc�, new CalcImpl())
In CalcClient,
Remote r=(Calc)Naming.lookup(�rmi://host:1099/calc�);
My doubt is that t server s passing an obj of CalcImpl 2 t registry in Bind fn and wat t client s getting wit lookup fn s actually an obj of CalcImp_Stub which t rmic generated. So does t rmiregistry uses Reflection 2 get t name of CalcImpl n then add a �_Stub� 2 t name it got and searches for that class??
I hav been checking so many books 2 check whether my concept s right or wrong..
But I didn�t any info from anywhere.. all of those docs say how 2 do it� None of them say what s happening inside�
Plzz help me...

Please don't use this sort of SMS speak "thnx 2 u" when asking a question. If you haven't sufficient respect to spell it all out, why should we make the effort to reply?
I've not tried to read through all that butchered English, but in brief:
Stubs can be created at compile time, or with Java 5 they can be dynamically created on the client in communication with the server.
In the former case, they can either be distributed with the client application or downloaded from a specific URL. It is up to you to specify the URL and make it available. It is not the job of the registry.
In the latter case you won't need to do anything special.
If you want a good book which covers this in detail, I recommend the William Grosso RMI book. This is pre-Java 5, but covers the internals of the RMI mechanism in a lot of detail. Hopefully a new edition will be issued to cover Java 5.
Dave.

Similar Messages

  • Where is the directory created?

    I have create a directory with the following command:
    create or replace directory '/tmp/';
    Where this directory created?

    See correct syntax there:
    http://www.mcs.csueastbay.edu/support/oracle/doc/10.2/server.102/b14200/statements_5007.htm
    The statement creates a database object, not a operating system object/folder. The database directory object is not validated, it is just object pointing to some operating system folder, does this folder exist or not does not matter for database, it creates the database object only.
    You must create in operating system the folder yourself. This command doens't create the OS folder.

  • Where are the stubs files?

    i have searched all over the adobe website for the C++ stubs files. all the hits have references to them but no links to download them. does anyone have a link to the stubs files?

    As others have mentioned, the collection settings are saved within the catalog. However, with Smart Collections, you can export the Smart Collection Settings from one catalog and import them into another.

  • Where do the Crystal 2008 SP1 runtime files reside on a machine?

    Crystal XI runtime files could be located in the C:\Program Files\Common Files\Business Objects\3.0\bin folder
    Where are the Crystal 2008 SP1 runtime files located?
    Thank you

    They are in: C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86
    Each version will be a new location so that Side by side installs do not over write other major version dll's.
    Thank you
    Don

  • Where is the backup created when istalling ios5?

    I did like many of you the installation of operating system 5. I believe iTunes created a backup during this process. Where is that backup? I cannot restore from iTunes using such backup. iTunes does not have a backup on that day.
    Thanks.

    If you are referring to an update from iOS 4 to iOS5, your itunes would have made a back up of your iOS devices content - music, apps, etc.  But, once you update to a new OS like iOS5 you can't go back to the old OS. (At least not easily)  You might do a search on the forums to see if other users were able to do that on past OS...if that is what you are asking. ???

  • Where is the option "create update rule" in BW 7.3?

    Hi, all.
    We have updated our BI sandbox to BW 7.3. After installing cube 0PT_C01 from the BCT, I realized that infosource 0HR_PT_3 is not linked to the cube. So I was trying to manually create the update rule. But that "create update rule" option is nowhere to be found. Can you please advise?
    Thanks,
    Jonathan.

    Hi jonathan,
    you are implementing time and labour 0PT_C01.
    for that we have only 2 standard data sources
    1 is 0HR_PT_1
    2 is 0HR_PT_2
    in addition to the above data sources we can also use 0HR_PT_3 data source for the info provider 0PT_C01.
    PL check the below link
    http://help.sap.com/saphelp_nw04/helpdata/en/18/3a8337fb02735ce10000009b38f8cf/content.htm
    regards
    venuscm

  • Problem with the cfg-wizard - Service Registry and SLD Client

    Hi,
    I try to complete the initial activity for configuring the Registering Services Registry instance in SLD (http:
    localhost:port\nwa\cfg-wizard)  but when i start the wizard i found this error:
    Error: Getting WBEMClient failed: com.sap.sldserv.exception.SldServiceRuntimeException: Destination SLD_Client not found. Destinations are defined in the Destination service.. Please check that destination SLD_Client is maintained correctly.
    I don't know what is that error. Anyone can help us?
    regard.

    Hi ,
    I am facing an issue while running  SLD configuration wizard in SAp NW 7.3.
    Find the error message below.
    com.sap.sldserv.exception.SldServiceRuntimeException: Getting WBEMClient failed: com.sap.sldserv.exception.SldServiceRuntimeException: Destination SLD_Client not found. Destinations are defined in the Destination service.. Please check that destination SLD_Client is maintained correctly.
    Can anyone guide on this issue.
    ~Viswanathan

  • Where are the "keep both files" located when restoring in time machine?

    I just tried to restore my mac hd using time machine and selected "keep both" instead of replace. Now my mac hd has much less remaining memory and I would like to delete the duplicate files but I can't find them! Anyone know how to find them? Thanks

    Hi, thanks for responding. I was trying to restore the whole mac hd not just a file, I thought it would be similar to windows but it isn't. I had 576G remaining on my mac hd now I have 147G. I can't find anything that shows mac hd 1 or original or anything obvious. I had updated a program that seemed to go wrong so I wanted to go back prior to that update. Even after the so called "restore" it didn't go back, it seems to be the same except a chunk of my 1TB internal drive is now full of a copy of the hard drive and I can't find it to delete it and get back my space. Also, I did try a proper system restore using the install disc but the most recent restore point was May 2013! I thought backing up on Time machine meant you could go back to any back up point. Any ideas on how to find the copy of the internal hard drive that is hiding somewhere on my computer? Thanks

  • Not able to download all the stubs using the WSDL provided for Contact.

    Hi All,
    I am using wsdl2java to download stubs from the wsdl for contact using axis.
    But i am not able to download all the files from the wsdl.
    I am not able to see ListofContactData.java file in the stubs created,but i a can see in the that in wsdl.
    Anybody can help me in this issue.
    Thanks & Regards
    Amith B N

    Hi Guys..
    please post the solution clearly. I have the same problem and have to complete the development in short span..
    Please mates.. Hope u ppl will help on time.. if possible.. send me the document.
    refer my build.xml which i used for Version 1.0 in the below link.
    Re: wsdl v2.0 vs V1.0
    My mail id : [email protected]
    Regards
    Balaji Tr.

  • How to view the File created against the Transport Request in ASCII format

    Hi all,
    We have a requirement where in the file created against the Transport reauest and its content should be viewed in ASCII format.
    Experts do you have answer for this.
    Is thers any method to work out.
    Thanks in advance.
    Every usefull answers will be awarded points.*********

    Hi Anji Reddy,
    Thanks for your reply.
    Let me clear my querry.
    when we create a program in se38 and save it in a zxxxx package then it will create a transport request. The Content of TR i mean is not the Program name or the object list in the TR. The content i mean here is the abap code written in the program. which will be stored as a file in the server. when we open this file it will give the SAP format. Which i want to view in ASCII format.

  • Where did the "automate contact sheet" go on cs4???

    help!
    i want to download images from a folder automatically into pages for printing purposes. where did the automate>create contact sheet part go on cs4?
    help!
    thanks!

    http://blogs.adobe.com/jnack/2009/04/a_few_useful_reminders.html

  • FND function to create .csv data file on client machine?

    Hello All,
    I am trying to create a concurrent request which when run by the user's creates a .csv file with data. I created a procedure in the database which run's when they run the conc.request.
    However is there any FND function or anyother function available that creates the data file on the client machine (either in their 'C:\') or in a share drive etc?
    Currently through the procedure, I am able to write the .csv data file to a unix directory to which users do not have access.
    Thanks,
    Chiru

    Chiru,
    Several options for you to consider are :
    1. If you want to have the csv on client machine: Make the program to create the csv in server with a constant name, eg : test.csv and create a dos command in client's machine that is could FTP to server, rename the existing csv file in client's machine and get test.csv from server.
    2. If you want to do in share drive : As long as the share drive exists in PC that can be used for FTP, you can create unix host script that can FTP the file to the windows server. For instance, create a generic unix host script that accepts parameter such as filename, and server destination, destination folder, unix login ,password, etc. This program will run in a request set after your concurrent program. If you search google I'm sure you will find samples of unix script that does this kind of thing.
    3. As per what Kevin said ,another options is to send the csv file using email to the recipients.
    HTH

  • Where are the client stubs generated

    I am using weblogic 8, so i understand that the client stub is generated by the container when the my ejbs are deployed.
    But where is this jar file created.
    Is there a tool which i can use to generate the .jar file once my ejb is delployed.
    Thank you
    Rahul

    (Found something on this for weblogic 6 ..maybe this holds true for weblogic 8) ..still cant figure out exactly where it creates the stub.. might have to try it out and search BEA_HOME
    WebLogic Server supports the use of ejb-client.jar files.
    The ejb-client.jar contains the home and remote interfaces, the primary key class (as applicable), and the files they reference. WebLogic Server does not add files referenced in your classpath to ejb-client.jar. This enables WebLogic Server to add necessary custom classes to the ejb-client.jar without adding generic classes such as java.lang.String.
    For example, the ShoppingCart remote interface might have a method that returns an Item class. Because this remote interface references this class, and it is located in the ejb-jar file, it will be included in the client jar.
    You configure the creation of an ejb-client.jar file in the bean's ejb-jar.xml deployment descriptor file.When you compile the bean with ejbc, WebLogic Server creates the ejb-client.jar.
    To specify an ejb-client.jar:
    1. Compile the bean's Java classes into a directory, using the javac compiler from the command line.
    2. Add the EJB XML deployment descriptor files to the compiled unit using the guidelines in WebLogic Server EJB Deployment Files.
    3. Edit the ejb-client-jar deployment descriptor in the bean's ejb-jar.xml file, as follows, to specify support for ejb-client.jar:
    <ejb-client-jar>ShoppingCartClient.jar</ejb-client-jar>
    4. Generate the container classes that are used to access the bean using weblogic.ejbc and create the ejb-client.jar using the following command:
    $ java weblogic.ejbc <ShoppingCart.jar>
    Container classes include both the internal representation of the EJB that WebLogic Server uses, as well as implementation of the external interfaces (home, local, and/or remote) that clients use.
    External clients can include the ejb-client.jar in their classpath. Web applications would include the ejb-client.jar in their /lib directory.
    Note: WebLogic Server classloading behavior varies, depending on whether or not the client is stand-alone. Stand-alone clients with access to the ejb-client.jar can load the necessary classes over the network. However, for security reasons, programmatic clients running in a server instance cannot load classes over the network.

  • Where can I find the reference for modifying registry key for acrobat reader

    I am a Web Developer and I need to limit the option the user may choose in acrobat reader plugin.
    I doubt if there is option to configure in Windows Registry on HKCU\Software\Adobe\Acrobat Reader\9.0\PrefsDialog.
    Anyone know where I can find the reference for those registry key?
    I have downloaded sdk91_v2_win.zip file but I cannot find any reference.

    Refer to this:
    Direct Download Links for Adobe Software
    Mylenium

  • How do I create a PDF with a resolution of 300 or 600? Where is the control in X Pro?

    How do I create a PDF with a resolution of 300 or 600? Where is the control in X Pro?

    You change the PDF Maker conversion settings or PDF printer conversion settings.
    PDF Maker Conversion Settings.
    Open any office application, click on "Acrobat" in ribbon.
    Click on "Preferences".
    Click on "Advanced Settings".
    Now, you can change the resolution as per your requirement.
    PDF Printer Conversion Settings.
    Click on File -> Print
    Select "Adobe PDF Printer".
    Click on "Printer Properties".
    For more details, please refer to http://help.adobe.com/en_US/acrobat/pro/using/WS58a04a822e3e50102bd615109794195ff-7f0f.w.h tml
    Let me know, if you need more information.
    Regards,
    Deepak

Maybe you are looking for