Pedro,

There are two issues here that might be causing your problems. One is
that many EJB servers including JBoss select random ports for the RMI
server with the default configuration. You need to configure the Port
and RmiPort properties of the NamingService MBean in JBoss. You'll also
need to specify the RMIObjectPort for each container invoker. Then open
those ports through your firewall.

It also appears that you're using network address translation (NAT)
since you're using private addresses. The RMI implementation supplied by
sun doesn't work through NAT. The problem is that the client proxy
supplied for remote objects attempts to connect to the server using the
server's actual private address instead of the public NAT assigned one.
So accessing an RMI server in a NAT network from outside the network
will not work unless you modify the address used by the client proxies.
The simpliest way to accomplish this is to create you're own
ClientSocketFactory class and have it create sockets using the server's
public address. Then configure the RMI server with this custom
ClientSocketFactory.

That's not the most elegant solution. You might look into RMI Proxy,
www.rmiproxy.com, or the source code of JBoss for a more elegant solution.

--Victor


Pedro Salazar wrote:

Greetings,

I have a EJB which when it is deployed on my J2EE application server
(JBOSS) in my localhost or another host in my local network (e.g.
10.0.0.0/8), it works just fine.
But, when I deployed in a host in another network (192.168.89.0/24)
which I can pass through it but they can't see me (firewall), if I try
to access to my EJB from a client, I get NULL on the return of
lookup()!!

I would like to know if JNDI lookup is bidirectional, or if the
callbacks on EJBs make TCP SYNC connections to my client (which is not
possible due the firewall), or if there is any issue here that I don't
see because I'm not aware of the JNDI protocol or RMI callbacks of EJB!

For example, I can make a JDBC/NET8(oracle)/telnet/ssh to several hosts
on the other network but I just can't access to my EJB through JNDI!!

thanks,
Pedro Salazar
--
<id name="pedro salazar">
<email>[EMAIL PROTECTED]</email>
<pgp-key-id>0E129E31D803BC61</pgp-key-id>
</id>



===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to