Replace:

     <attribute name="InvokerURLPrefix">http://</attribute>
     <attribute
name="InvokerURLSuffix">:8080/invoker/EJBInvokerServlet</attribute>
     <attribute name="UseHostName">true</attribute>

with the explict url the client should use:
     <attribute
name="InvokerURL">http://thehostiwant:8080/invoker/EJBInvokerServlet</at
tribute>

this can also be system property name that is resolved at runtime
in the client vm for the situation that the server does not
know the external path the client takes to get to the server.

xxxxxxxxxxxxxxxxxxxxxxxx
Scott Stark
Chief Technology Officer
JBoss Group, LLC
xxxxxxxxxxxxxxxxxxxxxxxx 
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Janardhan
Burugupalli
Sent: Thursday, January 08, 2004 2:10 AM
To: [EMAIL PROTECTED]
Subject: AW: [JBoss-user] problem with host name resolivng via http
invoker


HI all,

I have a problem , first look at the output i get

10:43:58,458 DEBUG [WorkClientEJBServiceLocator] Using the JNDI URL
:http://localhost:80/invoker/JNDIFactory 10:43:58,520 DEBUG
[HttpNamingContextFactory] Retrieving content from :
http://localhost:80/invoker/JNDIFactory 10:43:58,583 DEBUG
[HttpNamingContextFactory] ContentLength: -1
ContentType: application/x-java-serialized-object;
class=org.jboss.invocation.MarshalledValue 10:43:58,989 INFO  [Util] The
URL value obtained from
cleint:http://192.168.0.146:80/invoker/JMXInvokerServlet
10:43:59,114 DEBUG [EJBServiceLocator] Singleton instance of
EJBServiceLocator class 'de.sepp.client.WorkClientEJBServiceLocator'
created. 10:43:59,130 INFO  [Util] The URL used is
:http://192.168.0.146:80/invoker/JMXInvokerServlet


At the first time the JNDI invocation is done withe same URL as i have
provided

but later while accessing the JMXInvokerServlet its resolving the IP
address and instead of the host name

well i can change this in the
http-invoker.sar/meta-inf/jboss-service.xml by setting USeHostName
property to true

but what it does is it takes the InetAddress.getHostName   which is
nothing
but the computer name

in my case i am using a reverse proxy and there are two different ways
of accessing this machine. From local lan it is called xx1 and from
outside it is called xx2. So my request is in the second instance also
it should whatever hostname i gave it in the JNDI url...is it possible

any suggestions or solutions

thanks in advace
jani




-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to