RMI Section Index
why we use home interface in EJB. In RMI we dont have any concept like home interface.why we particularly go for Home Interface Both RMI and EJB are distributed applications. In EJB we use Home interface which is not avaliable in RMI. There must be several reasons for using Home Interface of EJB. can any one give reason for this?
By posing this question, you seem to be comparing RMI and EJB as if they were the same type of technology and they are definately not. RMI is a lower level technology that allows java objects to b...more
I want to connect a jini service to a rmi client. Please tell me how to do this as I have to complete my project.
Start by reading Dr. Edwards book: http://www.kedwards.com/jini/index.html
Sun provides one in their Getting Started with RMI guide.
If you extends this class, your object will be automatically exported for RMI access. If your class is already extending another class, or you just don't like extending from UnicastRemoteObject, y...more
How do I transfer a text file from server to client? I am trying to transfer a text file from server to client using File objects. but i am not getting success. so how can we transfer a text file without going into the Socket programming and streams.
How do I transfer a text file from server to client? I am trying to transfer a text file from server to client using File objects. but i am not getting success. so how can we transfer a text file ...more
I am trying to run a server (say a Apache Server or a tomcat servlet engine)on a remote machine using RMI for which I utilize the capabilities provided by the java.lang.Runtime class.When I execute the command I would like to show the results of the process to the user and at the same time I would like to specify whether the server has started successfully.For this I preferred to get the input stream of the process buffer it and read it.The problem now I am facing is ,when I try to read the stream I am unable to come out of the loop,because the input stream of the process has not ended.
I am trying to run a server (say a Apache Server or a tomcat servlet engine)on a remote machine using RMI for which I utilize the capabilities provided by the java.lang.Runtime class.When I execute...more
I have a problem with the LocateRegistry.createRegistry(int port) method. The registry starts of fine with no problem with the first passed port number but later if I try to start the registry aga...more
What is PortableRemoteObject.narrow() method and what is used for? I found somewhere that it is "CORBA compliant". Why?
Hi, When you execute a lookup to get the home interface of your bean, you normally use the lookup() method of the javax.naming.Context interface. This method will return you an Object that needs t...more
Can I use compression to improve RMI performance when transferring large datasets between the client and server?
Yes, you should be able to use the ZipInputStream and ZipOutputStream classes within a custom socket factory to give you a new socket type that transparently compresses data. For a tutorial on how...more
Sun has come up with a fairly good cookbook approach for converting existing RMI programs to use IIOP. See http://java.sun.com/j2se/1.4/docs/guide/rmi-iiop/rmi_iiop_pg.html#Convert. Also, note the...more
Generics and Method Objects is an excellent source for information on how to use "Generics" with Java RMI. More information on "Generics" can be found at Generics and Java.more
I Have a server that access a database via JDBC, and want to return ResultSets VIA RMI back to the Client.
I Have a server that access a database via JDBC, and want to return ResultSets VIA RMI back to the Client. I have read that this can't be done (But it can be got you could go through your ResultSe...more
I started working on RMI recently and this particular concept is not clear to me: 1.When the client invokes a remote method,which is void ,will the Client know this from the stub it gets from Regis...more
Every time my remote method is executed, it creates a number of threads and an equal number of other objects used to save data. However when the remote method returns, the memory allocated for these objects and threads is not freed. As a result, after executing the same method for a number of times, I get a java.lang.OutOfMemoryError.
Every time my remote method is executed, it creates a number of threads and an equal number of other objects used to save data. However when the remote method returns, the memory allocated for thes...more
I made some changes to my remote interface and recompiled the server. Now, I am getting an : "java.rmi.UnmarshalException: error unmarshalling arguments; " Why?