Java Multicast Time To Live is always 0

老子叫甜甜 提交于 2019-11-28 01:55:01
pfranza

Funny that you should ask this, because I just wrote about this yesterday, I was having the same problem about 6 months ago. Basically you have to set an special system property telling the JVM to use an IPv4 stack:

-Djava.net.preferIPv4Stack=true

To implement pfranza's fix in Oracle, where you don't have a command line:

Set the property java.net.preferIPv4Stack=true in each Oracle session as follows before calling the java code containing the multicast call with the following PL/SQL snippet:

ret := dbms_java.set_property('java.net.preferIPv4Stack','true');

If the call is successful it will return NULL.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!