Hi, I recently run into situation where I need to use unix socket in java program. Fro obvious reasons JAVA doesn't support it out of the box, so I have to use 3rd party library. After some googling I came to conclusion that there is no such library in Fedora which is quite a surprise for me (noone has ever needed unix socket in Java or is everyone bundling it??). I decided to use and package http://code.google.com/p/junixsocket/, but I would rather not to if there is an existing alternative in Fedora.
Thoughts?
Thank you, Jirka
----- Original Message -----
Hi, I recently run into situation where I need to use unix socket in java program. Fro obvious reasons JAVA doesn't support it out of the box, so I have to use 3rd party library. After some googling I came to conclusion that there is no such library in Fedora which is quite a surprise for me (noone has ever needed unix socket in Java or is everyone bundling it??). I decided to use and package http://code.google.com/p/junixsocket/, but I would rather not to if there is an existing alternative in Fedora.
Thoughts?
You could try jnr-unixsocket [1], which is a Unixsocket library created for JRuby's use and should work fine; although I'm afraid it's poorly documented.
Thank you, Jirka
On 06/19/2013 10:03 AM, Bohuslav Kabrda wrote:
----- Original Message -----
Hi, I recently run into situation where I need to use unix socket in java program. Fro obvious reasons JAVA doesn't support it out of the box, so I have to use 3rd party library. After some googling I came to conclusion that there is no such library in Fedora which is quite a surprise for me (noone has ever needed unix socket in Java or is everyone bundling it??). I decided to use and package http://code.google.com/p/junixsocket/, but I would rather not to if there is an existing alternative in Fedora.
Thoughts?
You could try jnr-unixsocket [1], which is a Unixsocket library created for JRuby's use and should work fine; although I'm afraid it's poorly documented.
Seems pretty easy, thank you! You just saved me quite a lot of time ;))
Jirka
Thank you, Jirka
On 06/19/2013 03:53 AM, Jiri Moskovcak wrote:
I recently run into situation where I need to use unix socket in java program. Fro obvious reasons JAVA doesn't support it out of the box, so I have to use 3rd party library. After some googling I came to conclusion that there is no such library in Fedora which is quite a surprise for me (noone has ever needed unix socket in Java or is everyone bundling it??).
Fedora already contains libmatthew-java [1], which provides the ability to read/write to unix sockets. I am not sure about documentation, but dbus-java uses it, so at least there's some examples you can look at. Unfortunately, upstream seems quite dormant now.
Cheers, Omair
[1] http://www.matthew.ath.cx/projects/java/