Dibatalkan

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

Hi

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.

Thanks,

Arvind.

Kemahiran: Java, Kejuruteraan Perisian

Lihat lebih lanjut: software programmer service, param software, my code, java programmer work, java command line application, get length string, get app programmer, file service architecture, eclipse architecture, client side code, change jar, param java, rmi, newbie, java rmi, java debug, java code, getting started, getting coder, create simple task app, create new app name, create java jar file, arvind p, java jar application, app suite

Tentang Majikan:
( 93 ulasan ) Bangalore, India

ID Projek: #4046939

2 pekerja bebas membida secara purata $30 untuk pekerjaan ini

diamond1027

Hi, Please see the PM. Regards.

$50 USD dalam 2 hari
(18 Ulasan)
4.4
atopcoder

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

$30 USD dalam 2 hari
(2 Ulasan)
1.8
orionitsystemsuk

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 dalam sehari
(0 Ulasan)
0.0