Dynamic stub downloading question.

It turned out that I've been killing time over and over again when setting up dynamic stubs downloading for RMI implementations.
Wouldn't be it simple if RMI isolates developer from all those steps by
a) creating stubs on the fly when the remote object gets bound and
b) upload them to the client as a part of Naming.lookup() call?
No need to rmic, http-/ftp-/file--server, additional security, etc. Can somebody explain me this or I am missing something here??
Thanks.

It turned out that I've been killing time No, you havent been killing time.
over and
over again when setting up dynamic stubs downloading
for RMI implementations.
Wouldn't be it simple if RMI isolates developer from
all those steps by
a) creating stubs on the fly when the remote object
gets boundDo you know what this will ultimately mean? It means that some PROCESS, either the registry or something else, will NEED TO LOOK AT THE OBJECT THAT IT HAS ACCEPTED TO BE BOUND, OR IS JUST ABOUT TO ACCEPT TO BE BOUND and then check to see if it REALLY does extend the proper superclasses (UnicastRemoteObject for plain RMI, or PortableRemoteObject for all those RMI-IIOP lovers out there), THEN check if the service object REALLY DOES implement the remote interface TO THE LETTER, ........THEN check to see if the proper exceptions are going to be thrown if something goes wrong!!
(i'm panting right now.....)
That's simply madness. Do you have any idea how often an object can be:
1: Bound to the registry
2. REBOUND under a different name
3. Removed and later REBOUND
?????? Its sick. The JVM/registry overhead will hit the roof!!!
ok, lets go on....
and
b) upload them to the client as a part of
Naming.lookup() call?What?? IS IT FOR THE CLIENT TO TRY AND CONNECT TO THE SERVER USING STUBS IT ALREADY HAS .......or is it for the server to somehow keep TABS on its client and SEND the stubs to it, just so it can talk to the server???????
Doesnt make sense at all.
>
No need to rmic, http-/ftp-/file--server, additional
security, etc. Can somebody explain me this or I am
missing something here?Oh, buddy: you ARE missing something.

Similar Messages

  • IIOP dynamic stub downloading

    Hi,
    While working with EJB's (1.1 to 2.0) on different projects, I've never been able to setup dynamic downloading of EJB IIOP stubs. I had to include the stubs in the client's classpath everytime.
    I am now wondering :
    Is dynamic stub downloading possible with RMI-IIOP ?
    Is it a server specific issue (working with weblogic 6.1/7.0) ?
    Any experience or comments welcome...
    Ian

    Is dynamic stub downloading possible with RMI-IIOP ?I doubt it : RMI-IIOP ensures compatibility with plain-IIOP servers. Those server might not be written in Java at all, and have no idea what stub code you might want.
    I had to include the stubs in the client's classpath everytime.Not only that, but that's also the reason why you can't genuinely downcast a stub obtained through IIOP : you have to narrow() it (see javax.rmi.PortableRemoteObject), since the stub instance was instantiated by the client ORB (I mean, RMI-IIOP engine) on the grounds of the client-side information only, which doesn't know the server-side subtype.

  • Dynamic implementation download for return values from EJB

    I try the following exemplary scenario regarding dynamic implementation download. Let's say there is a statless EJB deployed (e.g. OrderHandler) with a method getSomeOrder() returning Order object; where Order is actually an interface extending java.io.Serializable. For Order there is implementation class OrderImpl. Within the getSomeOrder() the EJB creates a new OrderImpl, populates it and returns as interface. The client looks up OrderHandler and calls getSomeOrder() method. Then, on Order a dummy: String getName() method is called.
    Now, the problem is various behavior with implementation dynamic download. I receive different behavior from 2 clients (1st being launched from within LAN with the server, 2nd from outside server's LAN). When I put OrderImpl in clients' classpaths, obviously they both work the same. When I leave only Order interface (!!the very goal of the test - dynamic impl. download!!), only the 1st client still works. I measured times in milis, and it looks that the OrderImpl is really downloaded, as the first getSomeOrder() call lasts around 10 times as long as further calls.
    The 2nd client hangs a while on the getSomeOrder() call and then throws UnmarshallException, stating that it has failed to unmarshal the returned object, which basically means no implementation got downloaded.
    Can anyone help?

    You can try putting the Impl classes on a webserver.
    while starting the server set the property
    -Djava.rmi.server.codebase=http://mywebserver:8080
    While running the client if the impl classes are not available in the classpath, it would download it from the webserver

  • Dynamic Component Creation Question

    I have a process that looks up fields names from a database. I then loop through and create HtmlInputText components dynamically. The question I have is how do I create a value binding to these components? I have been trying to think of a way to create a separate class that can be applied to each field name I retrieve from the database. But I just can't think of a good solution for this. I assume people have had to do this before.
    Thanks

    Let it bind to a List<String> or Map<String, String>. To get/set elements in a List you can use the brace notation, e.g. #{list[0]} for the 1st element (list.get(0)). For map you can use the key name as propertyname, e.g. #{map.key} for the entry associated with key "key" (map.get("key")).

  • Dynamic Class Downloading difficulty

    Hi RMI Specialists,
    I am experiencing a possible dynamic class loading issue when attempting to separate the client & server codes across 2 separate Windows (XP & 2000) systems. This exercise (from ch13 of Oreilly�s Learning Java) is made up
    of the following interfaces and classes:
    On the Server side:
    package LearningJavaServer;
    import java.rmi.*;
    import java.util.*;
    public interface RemoteServer extends Remote {
        Date getDate(  ) throws RemoteException;
        Object execute( WorkRequest work ) throws RemoteException;
    package LearningJavaServer;
    import java.rmi.*;
    import java.util.*;
    public class MyServer extends java.rmi.server.UnicastRemoteObject
        implements RemoteServer {
        public MyServer(  ) throws RemoteException { }
        // implement the RemoteServer interface
        public Date getDate(  ) throws RemoteException {
            return new Date(  );
        public Object execute( WorkRequest work ) throws RemoteException {
            return work.execute(  );
        public static void main(String args[]) {
            try {
                RemoteServer server = new MyServer(  );
                Naming.rebind("NiftyServer", server);
            } catch (java.io.IOException e) {
                // problem registering server
    package LearningJavaServer;
    import java.io.*;
    public class Request implements java.io.Serializable {}
    package LearningJavaServer;
    public abstract class WorkRequest extends Request {
        public abstract Object execute(  );
    }On the Client side:
    package LearningJavaClient;
    import java.rmi.*;
    import java.rmi.registry.LocateRegistry;
    import java.rmi.registry.Registry;
    public class MyClient {
        public static void main(String [] args)
          throws RemoteException {
            new MyClient( args[0] );
        public MyClient(String host) {
            try {
                RemoteServer server = (RemoteServer)
                    Naming.lookup("rmi://"+host+"/NiftyServer");
                System.out.println( server.getDate(  ) );
                System.out.println(
                  server.execute( new MyCalculation(2) ) );
            } catch (java.io.IOException e) {
                  // I/O Error or bad URL
                     System.out.println( e );
            } catch (NotBoundException e) {
                  // NiftyServer isn't registered
               System.out.println( e );
    package LearningJavaClient;
    import java.rmi.*;
    import java.util.*;
    public interface RemoteServer extends Remote {
        Date getDate(  ) throws RemoteException;
        Object execute( WorkRequest work ) throws RemoteException;
    package LearningJavaClient;
    public class MyCalculation extends WorkRequest {
        int n;
        public MyCalculation( int n ) {
            this.n = n;
        public Object execute(  ) {
            return new Integer( n * n );
    package LearningJavaClient;
    import java.io.*;
    public class Request implements java.io.Serializable {}
    package LearningJavaClient;
    public abstract class WorkRequest extends Request {
        public abstract Object execute(  );
    }Steps to invoke all services on the server side:
    cd C:\Documents and Settings\htran\JavaRMI\build\classes on both systems;
    ( i ) start rmiregistry.
    ( ii ) java -Djava.rmi.server.codebase='http://serverhostname/LearningJavaServer/' -Djava.security.policy="C:\Documents and Settings\htran\.java.policy" -cp . LearningJavaServer.MyServer
    Steps to invoke all services on the client side:
    ( i ) java -Djava.security.policy="C:\Documents and Settings\htran\.java.policy" -cp . LearningJavaClient.MyClient serverhostname
    java.rmi.NotBoundException: NiftyServer
    Or
    ( ii ) java -Djava.rmi.server.codebase='http://clienthostname/LearningJavaClient/' -Djava.security.policy="C:\Documents and Settings\htran\.java.policy" -cp . LearningJavaClient.MyClient serverhostname
    java.rmi.UnmarshalException: Error unmarshaling return; nested exception is:
    java.net.MalformedURLException: no protocol: 'http://clienthostname/LearningJavaClient/'
    Is it possible that this issue could have been caused by either the Request/WorkRequest classes which are present on both system? Likewise, is the location of invoking RMI registry on the server correct?
    Both systems have got their own web servers (http://serverhostname/LearningJavaServer & http://clienthostname/LearningJavaClient).
    No firewalls between the two systems and the security files (C:\Document Settings\htran\.java.policy) are made up of the following 2 lines:
        grant codeBase "file:/home/jones/src/" {
            permission java.security.AllPermission;
        };Another issue that I am having is that the server process below is that it keeps on dropping off after a minute or two:
    C:\Documents and Settings\htran\JavaRMI\build\classes>java -Djava.rmi.se
    rver.codebase='http://clienthostname/LearningJavaClient/' -Djava.security.policy="C:\
    Documents and Settings\htran\.java.policy" -cp . LearningJavaClient.MyClient serverhostname
    This exercise has worked fine when running all the codes on the same host.
    I am running Netbeans 5.5, JDK1.5.0_11 on Windows 2000 (Server) & XP (Client).
    Any assistance would be appreciated.
    Many thanks,
    Henry

    Hi Esmond,
    You still have an empty catch block for the IOException. Fix that first. I >can't possibly tell what's going on until you can at least bind the >service.OK. MyServer.java below no longer throws RemoteExceptions in both of its methods and added the print stacktrace to catch the empty IOException earlier.
    public class MyServer extends java.rmi.server.UnicastRemoteObject
        implements RemoteServer {
        public MyServer(  ) throws RemoteException { }
        public Date getDate(  ) {
            return new Date(  );
        public Object execute( WorkRequest work ) {
            return work.execute(  );
        public static void main(String args[]) {
            System.setSecurityManager(new RMISecurityManager());
            try {
                RemoteServer server = new MyServer(  );
                Naming.rebind("NiftyServer", server);
            } catch (java.io.IOException e) {
                // problem registering server
               System.out.println("IOexception from MyServer");
                e.printStackTrace();
            } catch (Exception e) {
                System.out.println("General Exception from MyServer");
                e.printStackTrace();
    }The following error messages were produced when launching MyServer.class. I have broken it into 2 separate attempts. One with Dynamic Class Downloading & one without.
    Use CodeBase when launches MyServer.
    C:\Documents and Settings\abc\JavaRMI\build\classes>java -Djava.rmi.server.codebase='http://clienthostname/LearningJava/' -Djava.security.policy="C:\Documents and
    Settings\abc\.java.policy" -cp . LearningJava.MyServer
    IOexception from MyServer
    java.rmi.UnmarshalException: Error unmarshaling return; nested exception is: java.net.MalformedURLException: no protocol: 'http://clienthostname/LearningJava/'
    at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
    at sun.rmi.server.UnicastRef.invoke(Unknown Source)
    at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
    at java.rmi.Naming.rebind(Unknown Source)
    at LearningJava.MyServer.main(MyServer.java:28)
    Caused by: java.net.MalformedURLException: no protocol: 'http://clienthostname/LearningJava/'
    at java.net.URL.<init>(Unknown Source)
    at java.net.URL.<init>(Unknown Source)
    at java.net.URL.<init>(Unknown Source)
    at sun.rmi.server.LoaderHandler.pathToURLs(Unknown Source)
    at sun.rmi.server.LoaderHandler.getDefaultCodebaseURLs(Unknown Source)
    at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)
    at java.rmi.server.RMIClassLoader$2.loadClass(Unknown Source)
    at java.rmi.server.RMIClassLoader.loadClass(Unknown Source)
    at sun.rmi.server.MarshalInputStream.resolveClass(Unknown Source)
    at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
    at java.io.ObjectInputStream.readClassDesc(Unknown Source)
    at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
    at java.io.ObjectInputStream.readObject0(Unknown Source)
    at java.io.ObjectInputStream.readObject(Unknown Source)
    ... 5 more
    Does NOT use CodeBase when launches MyServer
    C:\Documents and Settings\abc\JavaRMI\build\classes>java -Djava.security.policy="C:\Documents and Settings\abc\.java.policy" -cp . LearningJava.MyServer
    IOexception from MyServer
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
    java.lang.ClassNotFoundException: LearningJava.RemoteServer
    at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:385)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240)
    at sun.rmi.transport.Transport$1.run(Transport.java:153)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
    at java.lang.Thread.run(Thread.java:595)
    at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
    at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
    at sun.rmi.server.UnicastRef.invoke(Unknown Source)
    at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
    at java.rmi.Naming.rebind(Unknown Source)
    at LearningJava.MyServer.main(MyServer.java:28)
    Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
    java.lang.ClassNotFoundException: LearningJava.RemoteServer
    at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
    at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:375
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240)
    at sun.rmi.transport.Transport$1.run(Transport.java:153)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.ClassNotFoundException: LearningJava.RemoteServer
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:242)
    at sun.rmi.server.LoaderHandler.loadProxyInterfaces(LoaderHandler.java:707)
    at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:651)
    at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:588)
    at java.rmi.server.RMIClassLoader$2.loadProxyClass(RMIClassLoader.java:628)
    at java.rmi.server.RMIClassLoader.loadProxyClass(RMIClassLoader.java:294
    at sun.rmi.server.MarshalInputStream.resolveProxyClass(MarshalInputStream.java:238)
    at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1500)
    at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1463)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
    ... 9 more
    I now understand that you do want to use dynamic class loading, and >moreover that you want to do it from the client to the server, in which >case you do need java.rmi.server.codebase at the client and you do >also need a codebase server. However the client and server can both >use the same codebase server, and indeed in this situation I don't >see why the server needs a codebase server or setting at all actually. I >don't really see why you want to use it from the client either, if this is a >closed system but that's your problem not mine.I now use only one codebase server. ie the one on the Client side where MyCalculation.class resides. You are right it is not necessary to use codebase when launching MyServer since the Client side does not need to download any additional classes over to the client side. Nevertheless, neither of the above startups (with/without) codebase worked even though the error messages were slightly different.
    Btw, can you explain what you mean by a "close system" compared to an "opened system"?
    java.net.MalformedURLException: no >protocol: 'http://clienthostname/LearningJava/'
    That doesn't make sense. Are you sure you're transcribing it correctly? >Also what line of code is throwing it?Here is the code for MyClient which explains that the line java.net.MalformedURLException: came from line 32, the printStackTrace() from IOException.
    public class MyClient {
        public static void main(String [] args)
          throws RemoteException {
          System.setSecurityManager(new RMISecurityManager());
            new MyClient( args[0] );
        public MyClient(String host) {
            try {
                RemoteServer server = (RemoteServer)
                    Naming.lookup("rmi://"+host+"/NiftyServer");
                System.out.println( server.getDate(  ) );
                System.out.println(
                server.execute( new MyCalculation(2) ) );    // line 28
            } catch (java.io.IOException e) {
                  // I/O Error or bad URL
                  System.out.println("IOException from MyClient");
               e.printStackTrace();
            }  catch (NotBoundException e) {
                  // NiftyServer isn't registered
                  System.out.println("NotBoundException from MyClient");
               e.printStackTrace();
            } catch (Exception e) {
                  System.out.println("General Exception from MyClient");
                  e.printStackTrace();
    }I wouldn't pay much attention to this message since the MyServer has difficulty registering itself to RMI registry. As a result, MyClient could not
    locate MyServer via RemoteServer interface before giving up altogether.
    Unfortunately, I have not being able to create an interface (e.g. >MyCalculation.class as an interface, MyCalculationImpl.class as the >actual implementation of MyCalculation) since WorkRequest is an >abstract class, which does not allow MyClient to instanciates >MyCalculation on line 28.
    I don't see why not. What error messages/exceptions are you getting?
    Are you referring to the execute() method on line 13 in >RemoteServer.classNo, I am referring to line 28 of MyClient.class above after the following failed attempts to create an interface for MyCalculation.java:
    public interface MyCalculation extends WorkRequest { // Got a syntax error: interface expected here in Netbeans.
    } Or
    public interface MyCalculation {}
    public class MyCalculation extends WorkRequest extends MyCalculation { ... # Obviously cannot extend more than one class.Any suggestion?
    No. I said the remote method implementation (i.e. in your xxxImpl >class) doesn't need to be declared to throw RemoteException. The >remote method definition in the remote interface certainly does. I have taken out the RemoteException from 2 methods in MyServer.java. ie implementation of the RemoteServer.java.
    In short, I have used only one codebase server but puzzled whether MyCalculation.class (have split it up into interface & implementation) will be passed over to the
    server side by referenced, value or Dynamic Class Downloading. I do not want it to use Dynamic Class Downloading to do this.
    Thanks,
    Henry

  • HELP - Dial Up Download Question from a Mac Mini Tiger OS X 10.4.6 Newbee??

    There are hugh download files (133 Mb for 10.4.7 for example) that appeared when I ran Software update the first day I got my Mini. This would require 10 to 12 hours download on my Juno account. One solution I saw in these forums was to have a neighbor with High Speed connection download and burn a disc. My NEWBEE question is... Can you go to the Apple OS X download page and successfully download the 10.4.7 update (and others) using a Windows machine with Windows software?? Then have that Windows PC burn a disc that can transfer the update to my Mini?? I'm breaking new ground in my neighborhood and appear to be the only one with a Mac. These forums are great - Thanks Addie
    mac mini   Mac OS X (10.4.6)   first time user

    Thanks to you and Sig for the response. We have NO APPLE STORE/OUTLET within a four hour drive, therefore your input that a PC can burn the disc is the best alternative I have. BUT what do you mean by a "hybrid" data CD? I'm a NEWBEE, so could you give me a little more specifics, i.e., what package/brand & model should I buy? I was thinking any CD-ROM would work! Thanks & sorry for my lack of experience, Addie

  • Dynamic Class Downloading and EJBs

    Hi all,
    I have one session EJB with business method getObject returning a serializable object which class implements MyObject interface.
    This object's class, named MyObjectImpl, is in only deployed on server within my EAR file.
    I would like my client classpath not containing MyObjectImpl class but only MyObject class (the implemented interface).
    Could you suggest a way to do this, by dynamically downloading implementation class at runtime so I can correcly get casting?
    Thanks in advance
    Fil

    Hi Fil,
    There's no portable way to accomplish this in the Java EE plaform. Java EE requires that all dependent classes needed by a component be packaged with that component at deployment time. Applications are not permitted to dynamically load classes, as this would be both a security issue and a correctness issue. This is true even for clent components, which is why the Java EE platform has a first-class client component called an Application Client. You can find out more about the difference between an Application Client and a stand-alone client in our EJB FAQ.
    https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Dynamic code downloading using RMI

    Hi,
    Can somebody please explain what are the nesesary steps to set up a class server.
    I have made a ClassServer.
    It is running...
    Another RMI server is running on this machine which has method to return object of an Interface
    Client code has an instruction - System.setProperty("java.rmi.server.codebase", "http://127.0.0.1:2020");
    When this client requests Interfeace from server I get following exception
    $ java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
            java.lang.ClassNotFoundException: com.rasa.interface.InterfaceImpl1
    java.lang.ClassNotFoundException: com.rasa.interface.InterfaceImpl1
            at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:195)
            at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:367)
            at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:88)
            at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:145)
            at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:918)
            at java.io.ObjectInputStream.readObject(ObjectInputStream.java:366)
            at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
            at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1186)
            at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
            at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
            at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:300)
            at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:134)
            at com.rasa.server.MainServer_Stub.getInterface(Unknown Source)
            at com.rasa.client.ProgramImpl.run(Unknown Source)can someone please explain why this is happning.
    note Interface implementation also implements Serializable
    Thank you

    sorry I thought you were trying to download the stubs
    only...
    try this:
    http://java.sun.com/j2se/1.4.1/docs/guide/rmi/codebase.
    tmlyes followed everystep from there, but no luck

  • Oracle 9i AS Portal download questions

    I read the installation guide for Oracle 9iAS (the guide for all of AS, not just the Portal component). I have some questions that were not addressed in the documentation.
    1) Do you need to download the entire Oracle9i Application Server in order to download and access the Oracle Portal component? I understand there's three levels of downloads (minimal, standard, and enterprise), and that even the minimal edition contains Oracle 9iAS. However, I was hoping to minimize space and memory required when working with Oracle Portal. (I just need to configure databases and manage database security, both of which can be done using Oracle Portal.)
    2) I already have Microsoft Peer Web Services installed on my computer. (That's the development environment in which you can test Cold Fusion and ASP code.) Will this conflict with the Oracle 9iAS, since both are servers that may affect, or be affected by, network configurations - even if they're both in a local, standalone test environment?
    (I can't just remove PWS since I do need it for testing Cold Fusion and/or ASP development code.)
    3) I understand that in order to download Oracle 9iAS, I need to already have access to an Oracle database. What mimimum version of Oracle do I need to be working with? The installation guide states that I can find out more information about database requirements at http://metalink.oracle.com. However, I can't even register for this site in order to access it, because it requires a "Support Identifier (CSI, SAC, Access Code etc.)" However, the CSI for the company where I work has expired - so I can't access that area for info.
    It seems that I may need to use Oracle 8i. I just downloaded the Installation Guide for the Oracle 8i Personal Edition. Would that be sufficient to work with a standalone (personal edition/evaluation copy) of Oracle9i AS?
    I hope to hear from someone soon about these issues! Thanks.

    1)Portal is an integrated component of 9iAS. You need to download all of 9iAS and select the minimal install option.
    2)We haven't tested this configuration, but as long as you set up apache appropriately to use different ports than the existing software it should work.
    3)Portal requires 8.1.6.2 Enterprise edition or 8.1.7 Standard edition. Personal Edition will not work.

  • Dynamic PDF/FDF question

    I need to way to display the contents of an ASP / HTML page in  PDF format. As of now I can display the static data, known number of fields for everyone like first name, last name, county..., but do not understand how to save the dynamic data. Since the number of records is always different, from 1 to 50+ records, I need to have the ability to loop through the records like I do in ASP / HTML and display the results in a PDF. I understand the basics but I am lost as how to configure the dynamic number of records. Is there a way to create a FDF or PDF that will create new objects on the fly?
    i.e. Static Data [First Name] [Last Name] [Office] [Address] [County].
    Dynamic Date [Class] [Date] [Hours]
    P.S. I have downloaded the FDF Toolkit and the SDK
    Thanks JPGrajek

    Are you able to create the form so that it has a set of fields for what you're calling the static data, and a row of fields for each record for the dynamic data (class.0, date.0, hours.0, class.1, data.1, class.1, ...,class.50, date.50, hours.50)."
    I have created a form like your example above. I was hoping to get away from creating x number of rows of fields since there could be anywhere from 1 to  50/60/70 rows.
    XFA is not something I have looked at so that helps since I was running out of places to look.
    The libraries will be my last choice but thanks for confirming most of them are commercial. I was not sure I was correct in assuming this.
    Thanks for the response.
    JPGrajek

  • Dynamic Link complicated question

    This is the story.....
    1. I shot & edited a training session (many sessions - over 40 hours)
    2. I did minor editing in Premiere, used Dynamic Link to send to Encore, set up a first run title page with 8 links to the 8 chapters.(all end actions going back to the main menu)
    3. Burned a DVD for the client
    4. The client made notes for additional changes for me to edit.
    5. I went back into Premiere, made the editing changes (mostly increases in volume from audience questions, removing some comments, etc.)
    Now... If I try and use Dynamic link again to "re-send" to Encore, my only choice is a new project... I cannot send using Dynamic link to an existing project (or if I can, I do not know how)
    I know one work around is to encode from Premiere, then open a Encore project, import as a timeline.... & author away....
    This way, If I go back to Premiere, make editing changes, export back out WITH THE SAME FILE NAME.... when I open the existing Encore project... everything is the same... except the timeline has the updated editing changes...
    The only problem is that on all 18 DVD's, I used dynamic link to send to Encore... so does that mean, (unless I use a work-around, like stated above), I have to re-author all 18 DVDs. I would think that even when using dynamic link, if you open the timeline again in Premiere, make editing changes, that the Encore project would reflect those changes (to make sure, I set the audio volume to 0 on the first 10 seconds in Premiere, saved the project & closed it, opened Encore, did a preview, the audio was still at the regular volume (no change).....
    Any suggestions...
    Or should I just once again use dynamic link, start a new Encore project, re-author (& basically do the same thing over)?
    Or should I do it the other way, encode from Premiere, (you know the rest), I do believe that all the editing changes have been made (according to the client)
    Or, is there some way from Premiere to use Dynamic link to send to an existing Encore project?
    David Kelley

    I didn't read all your note carefully.
    In your previous Encore project for DVD 1 (or whatever), right click on the "asset" for the timeline (the asset for a dynamic link is the Premiere sequece, not the Encore timeline that was created), and pick "revert to original." It should pick up your changes from Premiere.
    Note that to update markers, you must select the video in the Encore timeline itself, right click, "update markers from source." You will lose all previous markers. If you created the markers in Encore, you must update manually.

  • 802.1x Dynamic VLAN Switching Question

    Trying to set up 802.1x dynamic VLAN switching, and have a question. I think I've gotten it working except for one part. The VLAN on a protected interface is never getting switched. I can see an entry in the ACS stating that it applied the appropriate VLAN via RADIUS response, but it never changes on the switch.
    Environment:
    ACS Express 5.0.1
    C3550 running c3550-ipbasek9-mz.122-44.SE6.bin
    Switch config:
    aaa new-model
    aaa group server radius dot1x
    server-private 10.10.1.4 auth-port 1645 acct-port 1646 key 7 071C244F5C0C0D544541
    aaa authentication dot1x default group dot1x
    dot1x system-auth-control
    dot1x guest-vlan supplicant
    interface FastEthernet0/3
    switchport access vlan 3
    switchport mode access
    speed 100
    duplex full
    dot1x pae authenticator
    dot1x port-control auto
    dot1x violation-mode protect
    dot1x timeout tx-period 5
    dot1x timeout supp-timeout 5
    spanning-tree portfast
    ip radius source-interface FastEthernet0/1 vrf default!
    radius-server host 10.10.1.4 auth-port 1645 acct-port 1646 key 7 01000307490E125E731F
    Am I missing something easy?

    It looks like "aaa authorization network default group dot1x" was the missing command I needed to get this working.
    The only issue I'm having now is that if the client fails to meet the authentication requirements, the line status gets set as "down"

  • Dynamic Table Creation Question

    Can you dynamically add a column to a data table at run time using JSC and JSF? I have a case where I want to add a column to a table based on a selection by the user.

    Hi
    I have been trying to this when I saw your question first time two days back. I tried changing the rowset's query but nothing seems to work. I will try again and I am sure that I can give you something on this if there is any straight solution to this.
    Thanks
    Srinivas

  • Servlet controlled download question

    I've written a servlet that will extract my file from the database and prompt the client browser with a "Save As" prompt. So far so good.
    The problem I'm having is that for the file name, the browser is using the name of the servlet (say Example.do" as the file name.
    So the box shows the following
    Filename : Example
    File Type:
    From: www.examplehost.com
    So my question is how to I get the correct file name to show up, and get the file type field populated. I'm trying to get this to work for the IE 5 browsers.
    The headers are being set as follows:
    response.setContentType("application/x-download; name=\"" + fileName + "\"");
    response.setHeader("Content-Disposition","attachment; filename=" + fileName + ";");
    Any help would be appreciated. Thanks
    Sean

    That problem is due to the fact that the browser sets the name of the file equal to the request.
    There are two solutions i can imagine :
    - Place the file in a public place (Where you have your jsp and such) :
    Cons : Anyone that knows the file is there may get it.
    A big security error, specially if the file is confidencial.
    Pros : The file name will be the correct one.
    - Use an applet that connects to the servlet :
    Cons : It may take too long to load
    Many ppl don't like applets running on they're machine
    pros : You may create you own progress bar, with percentage and everything;
    You control the time it takes and the speed you wish it to use;
    The best of all, You may copy the file into a temp dir and then transfer it to the dest dir with the name you wish or the user wishes.
    It's up to you to decide,
    Daniel Campelo

  • Dynamic code downloading

    Could java interpreter execute ANY classes /or maybe automatically download it first/ remotely from network via HTTP, and not only from local disk? If yes, how this could be done?

    You could certainly download code dynamically, compile and run it with java. There's no problem there.

Maybe you are looking for