-
Creating softlinks on Linux from java (2 messages)
- Posted by: Sumukh Satyamurthy
- Posted on: April 23 2008 06:41 EDT
Hi, My Application needs creating Soft links using java. It currently uses Runtime.exec(). But since Runtime.exec resorts to simple forking, the memory consumption doubles every time exec() is called. Could you please suggest any alternative that is more performance friendly?Threaded Messages (2)
- C++ socket server is a medium for interprocess communication by Sunil n Abinash - on May 03 2008 14:33 EDT
- JNI and c implementation by philippe tseyen on July 31 2008 10:51 EDT
-
C++ socket server is a medium for interprocess communication[ Go to top ]
- Posted by: Sunil n Abinash -
- Posted on: May 03 2008 14:33 EDT
- in response to Sumukh Satyamurthy
How about writting a small c++ socket server. This will listen on a private port in your local machine. On arrival of a command, this will create a link using c/c++ apis. Java need to invoke this socket application. You can have a dedicated pool of connections to this server. If you go little further you can develop a JCA service for this with defined amount of connection pools. I am sure this will boost your performance :) Cheers Abinash http://sunilabinash.vox.com/ -
JNI and c implementation[ Go to top ]
- Posted by: philippe tseyen
- Posted on: July 31 2008 10:51 EDT
- in response to Sunil n Abinash -
IPC for making a softlink? I would go for a C implementation and JNI. Philippe