Unix Domain Socket - Question about work around
Since Unix Domain Sockets are platform dependent and Java is platform independent, it does not support it.
However, I am sure some of you have worked with them and found some good work around.
Elsewhere Jtux was suggested as a possible fix. However, I have not seen any good testimonials to it working. Also, if there are any security issues with this software. The website is here: http://www.basepath.com/aup/jtux/
Does anyone have any other suggest?
Thanks.
[491 byte] By [
jjhusa01a] at [2007-11-27 2:10:44]

# 5
Which side has to create those sockets? If the C part, you can try to open the files in the Java process as plain files. Maybe that works, maybe not.
# 6
> I wish I could. However, I am adding security to
> current Java Applications currently being used. So I
> do not have much of a choice.
Huh?
Either you are modifying the current app or not.
If you are modifying it then you have to make some changes. And using a proxy would be one change. You control the proxy and your java app can control as well (although it doesn't have to.)
If you aren't modifying the current app then there is no solution.
# 8
> I am modifying a current app. I must use the Unix
> Domain Sockets. I have no choice in the matters. It's
> for security reasons that they must be left in place.
I can only guess that you do not understand my suggestion.
The proxy does a domain socket to regular socket - just a pass through. You write this in C/C++.
In your java app, as one option, you use Runtime.exec() to start the proxy. Then you use a java socket to connect to it. You can pass options to the proxy to control the socket behavior on both ends.
In terms of usage there are a number of variations on the above.