From: Vincent W. <vwo...@ho...> - 2002-10-09 18:24:04
|
<html><div style='background-color:'><DIV> <P><BR>Im trying to get a remote client to connect thru a firewall. so far i have the firewall opening port 8080 and forwarding to an internal host. </P> <P><FONT face=Arial size=2>heres what im doing.<BR><BR>public static Context getHTTPClientInitialContext() <BR>throws javax.naming.NamingException {<BR><BR>Properties p = new Properties();<BR>p.put(javax.naming.Context.PROVIDER_URL, "http://www.somesite.com:8080/invoker/JNDIFactory");<BR>p.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.HttpNamingContextFactory");<BR>return new javax.naming.InitialContext(p);<BR>} <BR><BR><BR>try {<BR>System.out.println("3");<BR>Context ctx = EJBHelper.getHTTPClientInitialContext();<BR>Object obj = ctx.lookup("ejb/RemoteHome");<BR>System.out.println("4");<BR>RemoteHome sHome = <BR>(RemoteHome)PortableRemoteObject.narrow(obj, RemoteHome.class); <BR>System.out.println("5");<BR><BR>RemoteRemote remoteconv = sHome.create(); <--------------freezes here<BR>System.out.println("6");<BR>} catch (catch exceptions) .........<BR><BR>The server is running behind a firewall. The firewall opens/forwards port 8080. Everything is logged up to "6" where it just drops/hangs. Nothing is thrown. no messages. nothing is logged in server.log. stack trace is empty. Am i missing something? Thanks in advance.</FONT><BR></P></DIV></div><br clear=all><hr>Join the worlds largest e-mail service with MSN Hotmail. <a href='http://g.msn.com/1HM1ENUS/c157??PI=44364'>Click Here</a><br></html> |