IPC with java

right. there seems to be some confision about my previous post... (mostly due to my incoherence)... but i'll try my best to be a bit more specific this time and not throw in any words i may be misusing in this context :)....

Right i have a clientside application that is used to coleect user demographics... for this purpose i have created a java application the basically creates a dynamic form that the use can alter my configuring an ini file...

now... i need my program to sleep in memory... until the server requests the required data.. the server does this by sending the request to another program that runs on client side at startup.... once the request is recieved the client side program tells the java app yo run... collect the demographics and tell it where to find the data (in this case an xml file)

How can i do this without using lock files or complecated systems like COBRA. i prefer it to be a very lightweight solution....

Tnanks for any help or links you mite be able to throw my way...

P.S. ipc/rmi newby.. and by that i mean i dont know jack!

thanks all

[1119 byte] By [yas-wana] at [2007-10-3 11:28:07]
# 1
Libraries and Computer Labs at Universities often gather demographic information about their users, what they do with the resources, etc.Is this what you want to create?
watertownjordana at 2007-7-15 13:54:20 > top of Java-index,Archived Forums,Socket Programming...
# 2

Java does not have TSRs, so in order for your client application to run, either it must be loaded at start-up and kept running in the background (no GUI), or it must be started from another running application.

From your other post, it appears you have a non-Java based launch application that runs on the client machine and waits for a signal to start the Java demographics form, then waits for the Java application to return the user information which then sends that data out to a server on a remote machine.

I suggest removing the middle-man if possible, and simply have your Java application run at start-up with no GUI and listen on a TCP port for a command from a server to start the form (GUI), this can then be made visable, and the data can be returned back to the remote machine, and the GUI can be shutdown and/or the application can exit.

watertownjordana at 2007-7-15 13:54:20 > top of Java-index,Archived Forums,Socket Programming...
# 3

Hi, this is what the application will be eventually... The curent version tho... written in c works the way i've mentioned before... so i need for the java app to work the same way temporarily...

The demographics i'm trying to gather are employee and organisation specific... thats why the form is customizablr by the local admin....

any ideas?

yas-wana at 2007-7-15 13:54:20 > top of Java-index,Archived Forums,Socket Programming...
# 4
Why not develop this as a servlet/web application?When a user logs in or whatever is done that the client gets the signal to run the "java" program, why not simply have the machine open a browser window to your web app and have it display the form?
watertownjordana at 2007-7-15 13:54:20 > top of Java-index,Archived Forums,Socket Programming...