Java RMI newbie-- getting errors in SpringToolSuite for imports in client side app java code


am trying to create an RMI service using Spring. The IDE I am using is the latest version of Spring Tool Suite.

I am following instructions as per this URL--> [url removed, login to view]

Now, I have created the server-side code correctly, and the RMI server app context XML file is as below-->

Now, I have created the client side app also, and in it this is the code-- (I have omitted the imports/package name)--basically a single variable of integer type is passed as command line param to the client JAR file. This parm is then used as param during call to RMI Service. (It is the only param in RMI invocation).

public class TestClient {

private static Logger logger = [url removed, login to view](TestClient .class);

/** * Main method of the RMI Service Client * */ public static void main(String[] args) {

[url removed, login to view]("RMI Service Client is starting...");

//RMI Client Application Context is started... ApplicationContext context = new ClassPathXmlApplicationContext("rmiClientAppContex [url removed, login to view]");

//Remote User Service is called via RMI Client Application Context... SampleTaskrmiClient = (SampleTask) [url removed, login to view]("SampleTask"); int userid; //get the user id for whom RMI is to be used...this was passed as an argument to the client JAR file... if([url removed, login to view]!=1) [url removed, login to view](1); else userid= [url removed, login to view](args[0]);

[url removed, login to view](userid);

[url removed, login to view]("RMI Service Client is stopped..."); } }

Also, the RMI Client App context XML file is as below--

However I am getting errors in Eclipse-- basically for the 2 imports in client side java code-- the imports for "[url removed, login to view]" and "[url removed, login to view]" are showing this error--> The import _ _ _ _ _ cannot be resolved.

What is wrong in my code? Is there some config/setting change that I have to make?

Also, once the above settings are configured, you have to prepare a simple document explaining how to secure the RMI service. And you also have to create a sample RMI service which uses the code as per page quoted above, and secure that RMI service.

Simple work for a good java programmer who knows RMI and Spring.

Please bid really low- this is easy work for an experienced coder.



Evner: Java, Software Arkitektur

Se mere: tool.jar, software programmer service, param software, my code, java programmer work, java command line application, get length of string in c, get a app programmer, file service architecture, eclipse architecture, client side code, change jar, what is java spring, what is java for, what is client, spring in java, param java, test my app 2, RMI, Newbie, java rmi, java debug, java code, getting started, getting a coder

Om arbejdsgiveren:
( 93 bedømmelser ) Bangalore, India

Projekt ID: #4046939

2 freelancere byder i gennemsnit $30 på dette job


Hi, Please see the PM. Regards.

$50 USD in 2 dage
(18 bedømmelser)

Hire me, I can fit in your problem, I've a good experience in Java and RMI

$30 USD in 2 dage
(2 bedømmelser)

I am experienced java programmer and have in depth knowledge of Spring especially in Spring RMI. I can assist with your problem here.

$30 USD på 1 dag
(0 bedømmelser)