RMI 1 « Remote « Spring Q&A





1. RMI server picking up an old ip address    stackoverflow.com

I am seeing a strange problem: I have a linux machine, installed JDK1.6 on that machine, and some business went on, and some days later had to change the IP address of ...

2. Exposing multiple objects with RMI in Spring    stackoverflow.com

How do I expose multiple objects with RMI using Spring? I start with what is written here. What if I want to expose more objects, must I declare another instance of ...

3. An RMIPRoxyFactoryBean factory in Spring?    stackoverflow.com

I'm currently using a Spring RmiProxyFactoryBean to access remote services. Since requirements have changed, I need to specify at runtime a different host - there can be many of them - ...

4. Using JAVA NIO framework in SPRING server    stackoverflow.com

I'm implementing an hybrid server application that mixes a Web-Servlet and a plain Java application. The java application manages thousands of sockets for remote devices, while the Web application interacts with the ...

5. How to bind a ip address in Spring rmi settings?    stackoverflow.com

How to bind a ip address in spring rmi settings? Instead of listen all IP in Server. Currently I am using:

<bean class="org.springframework.remoting.rmi.RmiServiceExporter">
    <property name="serviceName" value="TestRmiService" />
    ...

6. convert traditioan RMI to Spring RMI remoting    stackoverflow.com

I am new to spring and I need to convert a traditional RMI server to spring RMI remoting based service. The current server implementation is like this:

    public interface ...

7. RMI : RemoteAccountService extends Remote    stackoverflow.com

I have a weird question, I was reading the Spring Integration Documentation, under "19. Remoting and web services using Spring" section, there is an interface, but it is not ...

8. RMI using Spring is slow    stackoverflow.com

I'm using RMI and I noticed it's very, very slow. For a simple call it takes ~ 8-10 seconds to get a response. It's not the method I'm calling that takes ...

9. spring dependency injection using RMI    stackoverflow.com

suppose we have 2 projects ProjectA(front end) and ProjectB(back end) and 2 classes ClassA in ProjectA and ClassB in ProjectB. Now I need to get the instance of ClassB in ClassA. The ...





10. Sharing objects across rmi servers using spring rmi    stackoverflow.com

Am using RMI Spring capablilites and new to this framework. In my application there is a client which access a service running on server using RMI Spring. Now, if maximum no. of ...

11. RmiProxyFactoryBean + Autowired(required=false)    stackoverflow.com

I have 5 projects - 4 of which are run on the console (say A,B,C and D) with java -jar A.jar etc and 1 web application (E). The web application is ...

12. Fault Tolerance and Load Balancing for Spring RMI    stackoverflow.com

How to do fault tolerance set-up and load balancing using Spring RMI. The JBoss Application server is set-up in clustered mode. The rmi clients make frequent calls; but, spring-rmi bean set-up ...

13. Spring RMI over what protocol?    stackoverflow.com

I'm using spring remoting with rmi. Application works fine. But one thing in totally unclear for me: what protocol does spring use in its rmi support? Update: Default is JRMP, I know ...

14. RMI Refresh client Stub after 1 Hr    forum.springsource.org

Hi , I just wanted to know if there is a way to refresh client stub after a particular time period i.e. 1Hr. I was not able to find any configuration ...

15. Redeploy problem with Spring RMI    forum.springsource.org

Redeploy problem with Spring RMI I have been refactoring my RMI implementations to use the Spring support classes. I have a J2EE app which is a client to two standalone RMI ...

16. The question is: RMI or Spring HttpInvoker?    forum.springsource.org

Hi My small (~5MB) console client application (purely java) needs to communicate with server app (also written by me). I don't know whether plain RMI would be better than HttpInvoker? Both ...





17. Setting Dynamic RMI Registry Port    forum.springsource.org

Setting Dynamic RMI Registry Port Hi All, I have the following method that is calling without a problem but i had a problem where multiple instance are placed on the same ...

18. NoSuchObjectException on RMI server restart    forum.springsource.org

NoSuchObjectException on RMI server restart I'm using the RmiProxyFactoryBean for RMI remoting, with the following config: Code: org.stl.cpmsserver.business.CpmsServerIntf ${cpmsRMIName} false true ...

19. Spring RMI problem : help    forum.springsource.org

Spring RMI problem : help I have following the tutorial from ebook Pro Spring 2.5, and this is my code to make RMI in Spring HelloWorld.java package server; public interface HelloWorld ...

20. RMI and persist error    forum.springsource.org

RMI and persist error Hi, I have two projects, one business and one web. Web project call business project by RMI call. Business side : bean Code: ... @Entity public class ...

21. Error Handling When Using RMI Inbound/Outbound Gateways    forum.springsource.org

Error Handling When Using RMI Inbound/Outbound Gateways I have a question regarding error handling when using an rmi:inbound-gateway. I have a server application that receives HTTP messages from clients, does a ...

22. RMI inbound and outbound adapters    forum.springsource.org

RMI inbound and outbound adapters HI all i have a spring integ app running on my machine. i have written a simple Swing App, and i want to be able to ...

23. RMI Registry    forum.springsource.org

24. Spring and RMI ?    forum.springsource.org

Hello, I need to access to my objects deployed into the String using RMI, in the same way I do it with entity EJB bean. How can I do this ? ...

25. Remoting fail-over with RMI    forum.springsource.org

Remoting fail-over with RMI Cheers! The question is simple. How to achieve some sort of fail over. What I want is ability of client to seamlesly reconnect to server that has ...

26. create a dynamic rmi server    forum.springsource.org

How could I create RMI server dynamically? what is the difference between setRegistryPort and setServicePort? which one I must set? Also, if I use setServicePort(0) to create RMI, how could I ...

27. remoting using RMI and not always reachable server    forum.springsource.org

remoting using RMI and not always reachable server Hi, I've just started with spring yesterday, so please be patient I tried the RMI remoting example, and changed it a bit, and ...

28. RMI Registry is not shutdown    forum.springsource.org

RMI Registry is not shutdown I am having trouble with RMI shutdown. My application has several components which use RMI. Spring (1.1.5) starts up first and does LocateRegistry.createRegistry(). On shutdown RmiServiceExporter.destroy() ...

29. RMI client to multiple servers    forum.springsource.org

Hi, I'm trying to replace my EJB calls (done through spring) with RMI. My service is being exported on multiple servers in a cluster. in the example taken from SpringInAction book ...

30. RMI Exporter and remote objects    forum.springsource.org

RMI Exporter and remote objects In my current pre-spring application I have implemented two remote objects on the server side. One is called "RmiClientService" and has methods which delegate to the ...

31. Spring RMI Server - plain RMI client    forum.springsource.org

Spring RMI Server - plain RMI client Hi! I'm having problems using a plain RMI client to access a remote server set up using Spring (using RmiServiceExporter). When trying to cast ...

32. How to get ref to Rmi Registry in Spring Client    forum.springsource.org

Hello, Have RMI all working in Spring nicely.. just have one question. How can I access the registry itself in my client in a "Spring Way" through xml context files... What ...

33. Shutting Down an RMI-exported.    forum.springsource.org

Shutting Down an RMI-exported. I've got an application that exports a single service via RMI. Code: ...

34. Spring RMI Remoting -Plain RMI Client    forum.springsource.org

Spring RMI Remoting -Plain RMI Client Hello, I am having difficulty in access a spring managed RMI service running on a remote server from a plain RMI client running on my ...

35. RMI Registry to stay running    forum.springsource.org

RMI Registry to stay running Hi, I have just started exposing classes using RMI Exporter in Spring. My problem is that normally I would create a registry in a main method ...

36. RMI - keeping serviceUrl dynamic?    forum.springsource.org

RMI - keeping serviceUrl dynamic? Hi, I've got a number of services exposed via RMI. My RMI clients are Spring proxies (RmiProxyFactoryBean) that specify the location (serviceUrl) of the remote service. ...

37. Strange RMI ConnectException    forum.springsource.org

Strange RMI ConnectException I am trying to connect to a remote RMI service exported as ...

38. Spring RMI Basics    forum.springsource.org

Spring RMI Basics Hi, I am looking for some good Spring RMI tutorial. Unfortunatelly, almost everything I found is one page in official documentation. Problem is, that there is just code ...

39. RMI / UnicastRemoteObject / RmiServiceExporter    forum.springsource.org

RMI / UnicastRemoteObject / RmiServiceExporter Hello, I want export in rmiregistry a service named "service" with spring 1.2.6 and access to this in with simple traditional client method (not with spring) ...

40. RMI + Clusters    forum.springsource.org

I have a collection of java (Spring) web applications. I need to interconnect them and i need the connection to be as fast as it could be. So i decided to ...

41. Handling RMI ConnectException    forum.springsource.org

The RmiProxyFactoryBean works great. But I'm puzzled as on how to handle java.net.ConnectException when a client tries to connect to a server that is not running. I noticed that the RmiProxyFactoryBean ...

42. RMI Doesn't work with 1.5.0_u8/9    forum.springsource.org

RMI Doesn't work with 1.5.0_u8/9 Hi Guys, I'm new here! I've been struggling today getting RMI service exporting working for a fairly simple app I'm working on. I've identified the problem ...

43. Struggling with Spring/RMI    forum.springsource.org

44. RMI invocation attempts connecting to 127.0.0.1    forum.springsource.org

RMI invocation attempts connecting to 127.0.0.1 Hi I've exported a bean by using the RmiServiceExporter, and tries to access this bean through the RmiProxyFactoryBean. This works fine when client and server ...

45. RMI and Spring    forum.springsource.org

RMI and Spring Hello, I'm looking for an elegant and efficient way to connect a RMI service and a Spring web application in terms of security. The concret problem can be ...

46. Context Passing with Spring/RMI    forum.springsource.org

Context Passing with Spring/RMI Hi all, I have recently picked up the Spring torch and am wondering about context passing from client to server. Here is my situation : I am ...

47. custom RMI with spring    forum.springsource.org

48. RMI / HTTP Invoker - Performance and implementation considerations    forum.springsource.org

hi, We are looking to implement a client-server architecture using spring remoting. We need something that is light weight, can keep connections open (we will have large number of requests with ...

49. Dynamic serviceURLs - RMI    forum.springsource.org

50. About XML file in an spring-rmi application    forum.springsource.org

I am writing a small rmi application using springs. In some example in a website, i found the corresponding xml file as: rmservice ==>> what ...

51. Remoting Using RMI    forum.springsource.org

Remoting Using RMI Hi All, When I am passing a String object as parameter to the RMI stub then the remote call is working fine. But when I pass a user ...

52. Help with Simple RMI    forum.springsource.org

Help with Simple RMI Hi guys: I have the server application: Interface: Code: public interface ServiceInterface extends Remote { public String syaHello() throws RemoteException; } Implementation: Code: public class ServiceImplementation extends ...

53. RMI Server using Spring 1.2.8 - exporting object    forum.springsource.org

RMI Server using Spring 1.2.8 - exporting object Hi, Im trying to export a RMI Object using Spring 1.2.8, but Im having a problem. Im having the following problem: java.rmi.UnmarshalException: error ...

54. Change RMI serviceName/serviceURL at runtime?    forum.springsource.org

Change RMI serviceName/serviceURL at runtime? Hi all, I'm looking for a way to change the serviceName for a RmiServiceExporter at run-time, ie for Code: