Bonjour on Linux
The problem with Linux is that all RPM packages for mDNSResponder do not include the java libraries. The file required is called libjdns_sd.so. I have compile this file myself on Gentoo and could send you the X86 32 bit version. I could also assist you compile this file from source yourself. The following process should work.
cd mDNSResponder/mDNSPosix make os=linux # build mdnsd and libmdns sudo make os=linux install # put them where they ought to be make os=linux Java # build libjdns_sd.so & dns_sd.jar make os=linux JavaDoc # (optionally) generate documentation
I am working on making the Bonjour feature optional, allowing users to disable it. This would however mean that clients would not be able to discover the server on the network.
Download the attached file below and place it into /usr/lib/mDNSResponder/. Then adjust the apache-tomcat-6.0.18/bin/setenv.sh file and include the following line. After this restart tomcat
... # Native Library for Bonjour JAVA_OPTS="$JAVA_OPTS -Djava.library.path=/usr/lib/mDNSResponder/" ...
You will also need the Java Libraries (dns_sd.jar) which should be placed in the apache-tomcat-6.0.18/lib folder.
Running Address Book Server without Bonjour
From the october build (after the 24th Oct) Bonjour can be configured via a System Property in the setenv.sh file. If the property is not present or set to false it will not advertise the service on the network.
... JAVA_OPTS="$JAVA_OPTS -Dcom.addressbookserver.ENABLE_BONJOUR=false" ...
Users of previous versions can download the AddressBookServerTomcat.jar library containing support for this feature, replacing the previous version in apache-tomcat-6.0.18/lib.
Gentoo Users
To include the Java support with mDNSResponser you need to se the USE flag to include java.
USE=java emerge -v mDNSResponder
This will build the native support library in : /usr/lib/mDNSResponder/libjdns_sd.so. You will also need to copy the Java library from : /usr/share/mDNSResponder/lib/dns_sd.jar to your tomcat / catalina's lib folder.
![(please configure the [header_logo] section in trac.ini)](/trac/chrome/site/your_project_logo.png)