[teiid-users] Teiid host resolution change after the M3

Larry O'Leary loleary at redhat.com
Tue Apr 20 12:58:30 EDT 2010


On Tue, 2010-04-20 at 10:58 -0500, Van Halbert wrote:
> Regarding the firewall issue:
> 
> 
> http://community.jboss.org/wiki/UsingJBossBehindAFirewall
> 
> 
> snippet:
> 
> 
> Then, on the system behind the firewall, the following parameters need
> to be added to the java command line in the run.sh script to pass back
> the "correct" RMI information to the system outside of the firewall. 
> 
>  "Correct" in this case means the hostname that the outside system
> refers to when addressing the system behind the firewall.
> 
>  
> 
>     -Djava.rmi.server.hostname=<external_host_name>
>     -Djava.rmi.server.useLocalHostname=true
> 
> 
> 
> 
> It looks like  java.rmi.server.hostname property provided what the MMx
> firewall address provided.
> 

But this is applicable to an RMI client.  Is our JDBC client connection
simply an RMI connection? 

If the server isn't creating a registry list which refers to the
server's host name or IP address, this shouldn't be an issue as long as
port forwarding, NAT, or the proxy are configured correctly.

Now, clustering will be a different issue and if we are not using RMI
then we will need to introduce something similar to what RMI is doing or
what we previously had but on a per host/VM level.



> 
> On Apr 19, 2010, at 9:16 AM, Ramesh Reddy wrote:
> 
> > On Mon, 2010-04-19 at 10:24 -0400, Ken Johnson wrote:
> > > So by default, the server will not be able to accept remote JDBC 
> > > connections?  I see the security benefits of this behavior but
> > > also 
> > > end-user inconvenience.  
> > Yes, I agree that this is little inconvenience to the users out of
> > the
> > box. The primary driving factors were
> > 
> > 1) Security
> > 2) Align the host resolution to be similar to the JBoss AS, so that
> > users are not given two different choices in configuring the bind
> > address.
> > 
> > The logic changed *if* the host name resolves "localhost" (mostly
> > developer machines), however like in any typical shared server
> > environment would have their host name specified, so they will
> > resolve
> > to proper LAN address that will be reachable by the known name. 
> > 
> > > Does the hostname or IP specified with -b have 
> > > to match *exactly* with the hostname string in the JDBC URL used
> > > by 
> > > client applications?  Or will it work as long as it resolves down
> > > to
> > > the 
> > > same IP address (I assume the latter but just checking)?
> > > 
> > If they resolve to same IP that would be enough. If the sever is
> > started
> > with "0.0.0.0" then any resolved IP on that machine will be fine.
> > Also,
> > note that user could still provide the host name/ip in the Teiid
> > configuration to override the default behavior.
> > 
> > > Also, how will this impact Teiid firewall configuration and
> > > dynamic
> > > IP 
> > > environments like Amazon EC2 where internal and external addresses
> > > differ? 
> > I do not know. Do these offer IP forwarding services may be?
> > 
> > Ramesh..
> > 
> > _______________________________________________
> > teiid-users mailing list
> > teiid-users at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/teiid-users
> > 
> 
> Van Halbert
> Principal Software Eng.
> Red Hat, Inc.
> ------
> vhalbert at redhat.com
> 
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> teiid-users mailing list
> teiid-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/teiid-users

-- 
Larry O'Leary <loleary at redhat.com>
Red Hat, Inc.



More information about the teiid-users mailing list