Why does RMI client needs to specify codebase

Anyone,
I'm trying out a dynamic class loading tutorial.
my question is why does the client need to define
java.rmi.server.codebase.
I can understand why the server needs it, as it is downloading classes
it does not have information about. But why does the client need to specify the codebase

The client has to annotate the codebase property if it is calling remote methods with parameters, whose subtypes are not defined in the server. This way server has a change to dynamically locate and load those classes from specified codebase.

Similar Messages

  • Help !!! why does the client need to specify codebase

    Anyone,
    I'm trying out a dynamic class loading tutorial.
    my question is why does the client need to define
    java.rmi.server.codebase.
    I can understand why the server needs it, as it is downloading classes
    it does not have information about. But why does the client need to specify the codebase

    Lets say you have a Remote interface with a method:
    void compute(Task task);
    Now, the clients of this remote interface want supply
    a zillion of custom tasks to be executed on the
    server, but how the hell the server knows where to get
    the actual classes for those tasks?You fool. its for the server to hand the client the reference to a stub, or to specify FOR the client where the stubs are, so that the CLIENT can get a reference to them, to make the call.
    This is where the
    client codebase comes to the scene. Client codebase......you mean codebase info that is sent TO the client, so it can find the classes.
    A client annotates
    it and it gets written to the manifest part of any
    serializable object (Task implentation) being passed
    over then net so the server could find and download
    the actual class of the object.
    Rubbish.
    I hope I made myself clear. as mud.
    You might want to check
    out this link also:
    http://java.sun.com/products/jdk/1.2/docs/guide/rmi/cod
    base.htmlI read this and i still dont see anything about CLIENT codebase. I see stuff about codebase, and the server trying to make the client aware of where it can get the relevant classes.
    What a fool you are. Dont bother replying. I have had enough of your autocratic rubbish.
    >

  • Why does Sun Studio need NetBeans?

    Hi!
    Why does Sun Studio need a NetBeans installation for running successfully? If I am not too wrong, I believe Sun Studio has the same relation to the NetBeans project as Star Office has to OpenOffice.org?
    Now, coming to the solution. I am using Sun Studio 12 on Solaris:
    amit@opensolaris:~$ sunstudio --netbeanshome /export/home/amit/netbeans-6.5beta/bin/
    Validating NetBeans IDE at: "/export/home/amit/netbeans-6.5beta/bin/"
    Sun Studio is unable to find a supported version of the NetBeans IDE at the specified location.
    Sun Studio requires a NetBeans IDE version 5.5.1 with NetBeans C/C++ Development Pack version 5.5.1
    installed. Sun Studio looks for a valid NetBeans IDE installation in the following order:
    1) Location specified with --netbeanshome command line option
    2) At /opt/netbeans-5.5.1 location, if exists
    3) At /opt/SUNWspro/../netbeans-5.5.1 location, if exists
    4) At /opt/SUNWspro/../../netbeans-5.5.1 location, if exists
    Please run the System Preparation Tool (prepare_system), if available, to set up your environment.
    As is apparent, I have a NetBeans 6.5 Beta build.
    What is the solution?
    Thanks,
    Amit

    The realtionship from SunStudio to NetBEans is more than a line from A to B.
    Ideally SunStudio releases would track NetBeans releases.
    However, NetBeans evolves at a rather fast pace. At the same time SunStudio
    also contains compilers which have their own products to coordinate with ...
    OS releases, new SPARC chips and Sun system releases.
    These releases never coincide so SunStudio tends to lag in it's dependencies
    on NetBeans and as a result ships with it's own copy.
    We used to actually build our own, sometimes tweaked, NetBeans for SunStudio.
    Weve made some progress in that we just pick released NetBeans bits and re-ship them.
    We're working on the ability for SunStudio to use NetBeanses which are already
    installed.
    To make older SunStudios use newer NetBeans is a tougher proposition but
    we're dedicating grey cells to that matter as well.
    If you really want a NB 6.5 based SunStudio wait a bit. We'll be releasing
    SunStudio SX based on NB 6.5 shortly.

  • Does my client need to have Adobe Story to review my script?

    In one of the Adobe video's, Paul Trani shows how we can share a script.  I can only presume that whoever gets the script, must have Adobe Story installed to be able to review the script. What does my client need to be able to review my script.
    Thanks,
    Kuhnen

    Partially, yes. When you share your script with your client, he/she can access it in Adobe Story. But for that installation is not necessary, he/ she can access it through the web application (https://story.adobe.com). What your client requires is - an account with Adobe Story and an internet connection.
    You can also export your script in one of the formats available and send it across.
    Hope it helps

  • Why does my iphone need wifi to update

    Why does my iphone need wifi to download and install new software update!?
    While other iphones can do that with their cellular internet

    This is your phone's operating temp range:
    Operating ambient temperature: 32° to 95° F (0° to 35° C)
    You exceed that range & you'll get that warning...you do nothing, & your phone will shut down to prevent damage. Easy to exceed that range while your phone is navigating & exposed to sun or another heat source.
    It is what it is.

  • Why does ipad 2 need a sim card?

    Why does ipad 2 need a sim card? it doesn't have a phone function.

    Andreas - Gothenburg wrote:
    Why does ipad 2 need a sim card? it doesn't have a phone function.
    If you want to use the 3G cellular data service - you need a sim card. If you just plan on using WiFi, then it doesn't matter.
    The 3G cellular service allows you to connect the iPad to the internet in areas where WiFi is not available. You do not have to install the sim card in order to use the iPad as long as you just use WiFi. You can always purchase the service later if you don't want it right now.

  • Why does some video need to be rendered in FCE 4 before I can work on it?

    I've been trying to get a handle on FCE 4 because it's very different than iMovie '08. I have a bunch of content in iMovie that I'd like to mess with in FCE 4, so I exported from iMovie as FCE XML and imported in FCE. There is some video that I re-encoded to Quicktime from ASF and it seems to need to be rendered before it will show up in the Canvas in FCE 4. FCE shows this content as DV/DVCPRO - NTSC under "Compressor" in the browser. Other stuff that was taken off my Sony HDR-SR7 is available in FCE 4 without any problems. This shows up as Apple Intermediate Coded in the browser.
    What's the deal with rendering anyway? Why does FCE need to "render" video to add things like effects when iMovie can add effects, etc at will with no "rendering" required?

    FCE can do certain effects on the fly without rendering. Some more elaborate transitions, like 3D wipes, require too much processor time to do them in real time. My understanding is that Macs with greater on-board processing power do more of these effects in real time, while slower machines must render.
    iMovie can do these effects on the fly because it's working with far less information. Think of iMovie works in the DV format while FCE works in the DV/DVCPRO-NTSC format. It's too subtle a name difference but the reality is quite different. It's like editing still pictures in compressed, lossy JPEG format vs. uncompressed TIFF format. Think about how long it takes your computer to open a photo of say, 8x10" 300 dpi in TIFF vs. that same file in JPEG. Well, that's what FCE has to do. It's working in the video equivalent of TIFF -- 30 frames per second. So there's a greater demand on your processor by a factor of 10. You can see this in action in Quicktime. Save a raw video import 720x480 in .dv and then in DV/DVCPRO-NTSC format and then play it back. The .dv will probably play smoothly while the DV/DVCPRO-NTSC (.mov) will hang up on play-back. It's just too much for your process to display all of those full resolution images so rapidly. And if you look at the two images side-by-side (particularly titles) you'll see how sharp and clear the .mov file is compared to the compressed .dv file.
    Hope this helps.

  • Why does Livecycle Designer need to lock scripting on objects with children that are fragments??

    Can someone tell me why Livecycle need to lock scripting on objects with children that are fragments??
    I mean, just because I have a fragment (which you can't edit the script for), why does Livecycle need me to NOT edit say the initialise event on the Main form.
    Yes, I can remove my fragments, edit and reinsert.  Also if the event already has a script, I can edit the xml.  But neither of these are terribly convenient.
    Couldn't there be a better way?

    The purpose of the fragment is to create re-usable or standard components. In most cases the fragment is not created by the same person designing the form and they do not want the from designer to modify any part of the fragment (it is a separate XDP file). There may be code in that fragment that relies on the structure that exists. If you have the rights you can always edit the fragment and when your PDF is created the changes will be picked up.
    If you want to be able to modify the fragment while it is in Design mode sounds to me like you want to add a component to the object library. This will allow you to have a reusable piece of a form that you can modify on a form by form basis. To do this simply build the piece that you want. Lasso the entire form and drag it onto the Custom library. When you release it a dialog will pop up allowing you to name your component. Now on any form design you can drag your new component onto the canvas and all methods/properties and code will come with that component (allowing you to modify it for that form as you see fit).
    Note that you can create your own libraries to hold your components if you see fit. Also if you put your libraries on a shared drive, you can share components between Designers.
    Paul

  • Why does iPod say needs to cool down?

    Why does my iPod say needs to cool down?

    Unless you are in a very hot place it usually means a hardware problem
    Try the following to rule out a software problem.:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:       
    iOS: How to back up           
    - Restore to factory settings/new iOS device.
    If still problem Make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar

  • Why does RMI server sets its connection address?

    I use RMI for several years now and it is really great. But what I did not understand all this time: why the server has to inject its own address to a client. I only see disadvantages of this behavior and this is a big pitfall to all newbies using RMI (two nics, different networks connecting to one server).
    So my question is, what is the reason for this kind of design? Do I miss some essential security/network point?
    Probably a proper callback mechanism might be one reason, but what else?
    I don't need answers like it is all documented and it is easy. As I said I am used to it, but I believe it is not as easy as it sounds and it is hard to understand for a lot of people. I want to give you one example: We are developing and servicing products which are operated in closed private networks. For service and diagnostics we have to connect to these networks via VPN connections. In such cases it is hard to connect to the system applications because all the RMI servers insists on their own address/name which might be know only to the local network.
    Thanks in advance for your attention
    Thomas

    dannyyates wrote:
    The registry and the server could be on different machines, so the client would know the address of the registry in order to lookup the remote object, but the registry would have to tell the client where the server is. That is, after all, the whole point of the registry!Ok I got this,
    Also, there are facilities to give the client a different address to the servers actual address. This is used in cases where, for example, the server is behind a NAT firewall. The server will only be aware of its internal address, but clients beyond the firewall will need to use the server's external address to reach it, so the objects returned from the registry will need to have the server's external address embedded in them even if the server and the registry are running on the same machine.Ok, so you have to set this to a reachable address for all clients. But in general the client already knows this since it reached the server already. So I don't see the point the server should have to change this afterward.
    However I still think only the first point is not enough to have so much hassle in all other environments. Do you know a way to override the registry or possibly the client registration to ignore what the server does say to it as the "real" address?

  • Why does the system need two average costs - 'Average' and 'Average Rates'?

    Hello Gurus!
    The documentation does give definitions for 'Average' and 'Average Rates' cost types, but at a very basic level.
    http://docs.oracle.com/cd/A60725_05/html/comnls/us/cst/settask.htm
    I would like to know why the system needs two costs? How are they calculated and how are they used?
    Thanks!

    Hello,
    I can suggest you a workaround that will help you keep only the 64-bit version of Photoshop.
    Visit "Uninstall a Program" in Windows 7 Control Panel and uninstall Photoshop completely.
    Visit this page and download trial version of Photoshop.
    Run the installer manually and choose the 64-bit version only (uncheck 32-bit version).
    Launch the product and specify your Adobe ID credentials.
    The product will switch to non-trial (i.e. full) mode when it recognizes your Adobe ID.
    Regards,
    Amit Batra
    Engineering Manager,
    Amit Batra

  • Why is Oracle Client needed?

    Hi
    May I know why do I need to install Oracle client in another desktop, whereby other desktop without installing Oracle Client and PeopleSoft Client, they also can access into the URL.

    Do you mean by reading manual guide or go for the course?I don't know your background, but abviously not Peoplesoft. I don't know where you are from and the comany you are working for. I don;t know what the company you are working for is expecting from you, but they must understand that you need much more help than asking on a forum for learning. Do they realize that ? Could be very uncomfortable situation for you doing something one something you don't know...
    Without Oracle client, you cannot access to the database. Without acces to the database, you cannot run sql (if you do customization - new or modification of existing). Without access to the database, you cannot run DMS (import/export/update/delete...).
    Nicolas.

  • Why does the battery need to be recharged so often?

    My iPod is brand new and need recharging every other day.
    Why and how does this happen?

    bill248 wrote:
    Thanks for the answer.
    I have been using it every day. Would the battery need to be replaced?
    No.

  • Why does the smc need resetting?

    Does anyone know why the SMC on my Intel_Mac needs to be reset every couple of days?
    It's on a UPS so one would assume that fluctuations in the power supply could be ruled out.
    Is there a firmware up grade for this problem?

    OK, two questions:
    1. What year and size iMac do you have?
    2. What version of OS X is installed?
    Frequent causes of this problem are traced to peripherals (printers, external hard drives, USB Hubs etc..) that are connected. I would trouble shoot by disconnecting all of your devices and then plugging each one in one by one and test until you either eliminate all of the peripherals as the problem or find the culprit.
    I was also able to locate his article that may help too: http://www.cnet.com/news/how-to-tackle-waking-a-stubbornly-sleeping-mac/

  • Does a client need Acrobat 9 Pro, to use a form created with the program?

    Do you need to have Adobe Acrobat 9 Pro, in order to use and/or view forms and portfolios created with Adobe Acrobat 9 Pro?
    If so, is there a free version that I can direct clients to download, so that they will be able to use and or view documents I am creating with Acrobat 9 Pro?

    Will the user be able to save the form with the data he/she entered?
    That depends upon if the file is specially Reader enabled. For some forms Acrobat Standard or higher is needed to file and save form data.

Maybe you are looking for