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. 

heres what im doing.

public static Context getHTTPClientInitialContext()
throws javax.naming.NamingException {

Properties p = new Properties();
p.put(javax.naming.Context.PROVIDER_URL, "http://www.somesite.com:8080/invoker/JNDIFactory");
p.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.HttpNamingContextFactory");
return new javax.naming.InitialContext(p);
}


try {
System.out.println("3");
Context ctx = EJBHelper.getHTTPClientInitialContext();
Object obj = ctx.lookup("ejb/RemoteHome");
System.out.println("4");
RemoteHome sHome =
(RemoteHome)PortableRemoteObject.narrow(obj, RemoteHome.class);
System.out.println("5");

RemoteRemote remoteconv = sHome.create();     <--------------freezes here
System.out.println("6");
} catch (catch exceptions) .........

jboss.xml

    <container-configurations>
            <container-configuration extends="Standard Stateless SessionBean">
            <container-name>HTTP Stateless SessionBean</container-name>
            <home-invoker>jboss:service=invoker,type=http</home-invoker>
            <bean-invoker>jboss:service=invoker,type=http</bean-invoker>
            </container-configuration>
    </container-configurations>

    <session>
      <ejb-name>RemoteEJB</ejb-name>
      <configuration-name>HTTP Stateless SessionBean</configuration-name>
      <jndi-name>ejb/RemoteHome</jndi-name>
      <local-jndi-name>ejb/LocalHome</local-jndi-name>
    </session>    

The OS is windows XP.  It works perfectly if i connect internally behind the firewall.  I also deployed this on a multihomed linux box with success where a remote client outside the firewall could connect.  Ports were redirected to the interal interface/ip.  Since im freezing at #6 can i assume that the lookup was succesful, and something else is happening?
The server is running behind a firewall. The firewall opens/forwards port 80 80. 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.






Send and receive Hotmail on your mobile device: Click Here
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to