Note that there are some explanatory texts on larger screens.

plurals
  1. POEvery NetworkInterface enumerated inside JBoss always isUp
    primarykey
    data
    text
    <p>I wrote following EJB:</p> <pre><code>@Singleton @LocalBean @Startup public class Starter { private static final Logger logger = Logger.getLogger("lab"); @PostConstruct public void init() throws Exception { for (final Enumeration&lt;NetworkInterface&gt; en = NetworkInterface.getNetworkInterfaces(); en.hasMoreElements(); ) { final NetworkInterface iface = en.nextElement(); if (iface.isUp()) { logger.info(iface); } } } } </code></pre> <p>On deploy this logs like:</p> <pre><code>name:lo (Software Loopback Interface 1) name:net0 (WAN Miniport (SSTP)) name:net1 (WAN Miniport (L2TP)) name:net2 (WAN Miniport (PPTP)) name:ppp0 (WAN Miniport (PPPOE)) name:eth0 (WAN Miniport (IPv6)) name:eth1 (WAN Miniport (Network Monitor)) name:eth2 (WAN Miniport (IP)) name:net5 (Intel(R) Wireless WiFi Link 4965AGN) name:eth7 (Intel(R) Wireless WiFi Link 4965AGN - VirtualBox Bridged Networking Driver Miniport) name:eth8 (VirtualBox Host-Only Ethernet Adapter) name:net20 (Intel(R) Wireless WiFi Link 4965AGN-Netmon Lightweight Filter Driver-0000) name:eth10 (VirtualBox Host-Only Ethernet Adapter-Netmon Lightweight Filter Driver-0000) name:eth11 (VirtualBox Host-Only Ethernet Adapter-QoS Packet Scheduler-0000) name:eth12 (VirtualBox Host-Only Ethernet Adapter-WFP LightWeight Filter-0000) name:eth13 (WAN Miniport (IPv6)-QoS Packet Scheduler-0000) name:eth14 (WAN Miniport (IP)-QoS Packet Scheduler-0000) name:eth15 (WAN Miniport (Network Monitor)-Netmon Lightweight Filter Driver-0000) name:eth16 (WAN Miniport (Network Monitor)-QoS Packet Scheduler-0000) name:net21 (Intel(R) Wireless WiFi Link 4965AGN-Native WiFi Filter Driver-0000) name:eth20 (Intel(R) Wireless WiFi Link 4965AGN - VirtualBox Bridged Networking Driver Miniport-Netmon Lightweight Filter Driver-0000) name:eth21 (Intel(R) Wireless WiFi Link 4965AGN - VirtualBox Bridged Networking Driver Miniport-QoS Packet Scheduler-0000) name:eth22 (Intel(R) Wireless WiFi Link 4965AGN - VirtualBox Bridged Networking Driver Miniport-WFP LightWeight Filter-0000) </code></pre> <p>Which is not valid. Output from this same loop running on J2SE runtime looks like:</p> <pre><code>name:lo (Software Loopback Interface 1) name:net5 (Intel(R) Wireless WiFi Link 4965AGN) name:eth8 (VirtualBox Host-Only Ethernet Adapter) </code></pre> <p>Is this an application server issue? I'm using JBoss EAP 6.1.0 GA (which is built on AS 7). How to get valid list of NetworkInterfaces running up without opening connection on each? Besides that, I want to known which one supports multicast, but this is always <code>true</code> too.</p> <hr> <p><strong>Repo</strong></p> <p>I have been created <a href="https://github.com/kbec/jboss-netiface" rel="noreferrer">repo at github</a> with Idea's project, <a href="https://github.com/kbec/jboss-netiface/blob/master/out/artifacts/EJBLab/EJBLab.ear" rel="noreferrer">compiled ear</a> and logs for both <a href="https://github.com/kbec/jboss-netiface/blob/master/jboss.log" rel="noreferrer">jboss</a> and <a href="https://github.com/kbec/jboss-netiface/blob/master/pure.log" rel="noreferrer">pure</a> jdk's running. It's contains also <a href="https://github.com/kbec/jboss-netiface/blob/master/standalone-test.xml" rel="noreferrer">used configuration file</a> and <a href="https://github.com/kbec/jboss-netiface/blob/master/dlls.txt" rel="noreferrer">list of dynamically loaded libraries</a>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload