|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Binding to multiple interfacesHi All,
I am using Mule 1.4.3 running on Red Hat Linux 4.6. The OS is a virtual machine on VMWare, with one network cart + 4 virtual interfaces (eth0, eth0:1, eth0:2, etc). I want to bind Mule to two interfaces. I noticed that if I config mule to bind to eth0, Mule will bind to all interfaces. netstat -tupl shows this: tcp 0 0 *:443 *:* LISTEN 30608/java But when I config Mule to bind to (for example) eth0:1 and eth0:2, Mule will bind only to those 2 specific interfaces. This is the expected behavior. Does anyone know, why Mule binds to all interfaces when using eth0? --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Binding to multiple interfacesIt uses whatever address you're passing to it. Seems you're using https endpoint, did you specify localhost or direct ip in the address? If you use localhost, then the order of returned local interfaces is not guaranteed by java runtime.
HTH, Andrew |
|
|
Re: Binding to multiple interfacesSome configuration may help us see what the problem could be ...
> with one network cart Maybe you're putting the cart before the Mule? :-D A Bart B wrote: > Hi All, > > I am using Mule 1.4.3 running on Red Hat Linux 4.6. The OS is a virtual machine on VMWare, with one network cart + 4 virtual interfaces (eth0, eth0:1, eth0:2, etc). > > I want to bind Mule to two interfaces. I noticed that if I config mule to bind to eth0, Mule will bind to all interfaces. netstat -tupl shows this: > > tcp 0 0 *:443 *:* LISTEN 30608/java > > But when I config Mule to bind to (for example) eth0:1 and eth0:2, Mule will bind only to those 2 specific interfaces. This is the expected behavior. > > Does anyone know, why Mule binds to all interfaces when using eth0? > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > > > Antoine Borg, Senior Consultant | Tel: +32 28 504 696 ricston Ltd., BP 2, 1180 Uccle, Brussels, BELGIUM See our full schedule of Mule and Android courses: http://www.ricston.com/courses/schedules/ email: _antoine.borg_@... <mailto:antoine.borg@...> | blog: blog.ricston.com <http://blog.ricston.com> | web: ricston.com <http://www.ricston.com/> --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Binding to multiple interfacesHere's the config part of the network (assembly-flow-config.xml):
----- <mule-descriptor implementation="AdapterImpl" name="AdapterEndpoint"> <inbound-router> <endpoint address="https://77.245.89.xxx:443/services" connector="HttpsInetConnector" encoding="UTF-8" synchronous= "true" transformers="HttpRequestToSOAPString"/> <endpoint address="https://77.245.89.yyy:443/services" connector="HttpsKpsConnector" encoding="UTF-8" synchronous=" true" transformers="HttpRequestToSOAPString"/> </inbound-router> </mule-descriptor> </model> </mule-configuration> ----- Network-interface setup: ----- eth0 Link encap:Ethernet HWaddr 00:50:56:86:76:9F inet addr:77.245.89.aaa Bcast:77.245.89.159 Mask:255.255.255.240 inet6 addr: fe80::250:56ff:fe86:769f/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:10749564 errors:0 dropped:0 overruns:0 frame:0 TX packets:3333320 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1862664708 (1.7 GiB) TX bytes:328448808 (313.2 MiB) Interrupt:177 Base address:0x1424 eth0:0 Link encap:Ethernet HWaddr 00:50:56:86:76:9F inet addr:77.245.89.xxx Bcast:77.245.89.159 Mask:255.255.255.240 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 Interrupt:177 Base address:0x1424 eth0:1 Link encap:Ethernet HWaddr 00:50:56:86:76:9F inet addr:77.245.89.yyy Bcast:77.245.89.159 Mask:255.255.255.240 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 Interrupt:177 Base address:0x1424 eth0:2 Link encap:Ethernet HWaddr 00:50:56:86:76:9F inet addr:77.245.89.ddd Bcast:77.245.89.159 Mask:255.255.255.240 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 Interrupt:177 Base address:0x1424 eth0:3 Link encap:Ethernet HWaddr 00:50:56:86:76:9F inet addr:77.245.89.eee Bcast:77.245.89.159 Mask:255.255.255.240 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 Interrupt:177 Base address:0x1424 eth0:4 Link encap:Ethernet HWaddr 00:50:56:86:76:9F inet addr:77.245.89.fff Bcast:77.245.89.159 Mask:255.255.255.240 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 Interrupt:177 Base address:0x1424 Edited by: Bart B on Jul 1, 2009 1:23 AM --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
| Free embeddable forum powered by Nabble | Forum Help |