Not sure if this is an option for you..
I have a similar scenario, multiple IPs, must only bind to two (one
private, only one of the public) for security requirements. I've have
several GF 3 and 4 servers running successfully by using a JMS server
outside GF (ie ActiveMQ) (can even run on the same server if you
wish...even on the same port if you configure GF to disable its own JMS
service) and use a RAR to access the resource. This works simply by
avoiding the problem - ActiveMQ supports binding to a any number of IPs by
defining one transport connector per socket/protocol. On the client side,
connection information from GF back to ActiveMQ is defined in the RAR
configuration using the transport url format of ActiveMQ, which gives you
just as much freedom to define multiple static or failover
socket/protocols. This required no code changes (I programmed to the
specification) - only some administrative work.
On Fri, Sep 26, 2014 at 4:17 AM, Markus Karg <karg_at_quipsy.de> wrote:
> I tried this in GF 3.1 but it does not work! 0.0.0.0 results in the fact
> that a remote client tries to connect to “0.0.0.0” which obviously does not
> work. Maybe this is a bug in 3.1, I don’t know.
>
>
>
> *Von:* Amy Kang [mailto:amy.kang_at_oracle.com]
> *Gesendet:* Freitag, 26. September 2014 09:15
> *An:* users_at_glassfish.java.net
> *Betreff:* [gf-users] Re: JMS host with multiple IP adresses
>
>
>
> In GlassFish server, use 0.0.0.0 for all interfaces, see following
> GlassFish server docs
> http://docs.oracle.com/cd/E19226-01/820-7688/gjktp/index.html
> http://docs.oracle.com/cd/E19798-01/821-1841/gjsdi/index.html
>
> amy
>
> On 09/25/2014 11:37 PM, Markus Karg wrote:
>
> That sounds great! It would be even cooler if the GF manual would say that
> somewhere… J
>
>
>
> *Von:* Amy Kang [mailto:amy.kang_at_oracle.com <amy.kang_at_oracle.com>]
> *Gesendet:* Freitag, 26. September 2014 07:23
> *An:* users_at_glassfish.java.net
> *Betreff:* [gf-users] Re: JMS host with multiple IP adresses
>
>
>
> The default-jms-host in jms-service is passed to JMSRA to broker as
> broker's imq.hostname property which can be "*" (all interfaces on the
> host) or a specific hostname or IP address
> http://docs.oracle.com/cd/E18930_01/html/821-2438/aeont.html#gbnni
>
> amy
>
> On 09/24/2014 01:13 AM, Markus Karg wrote:
>
> I have set up GlassFish 3.x lots of times, but today I got stuck… My
> current customer’s server has several IP adresses. The JMS default host
> binds to MYHOST:7676, which effectively leads to the fact that it is bound
> to ONE IP only – but I need to bind it to SEVERAL. If I understand
> correctly, then 0.0.0.0 should bind to ALL, right? Is there a way to
> provide only a SET of IPs?
>
>
>
>
>
>
>