From: Dave S. <dav...@ca...> - 2002-07-31 17:15:20
|
In your jndi.properties did you add java.naming.provider.url=<remote machine> This will tell JNDI to make a network lookup via RMI. Note that on the office firewall you will have to forward ports 1099 and 4444 to the machine hosting jboss. I would suggest get freeswan(www.freeswan.org) VPN running between the two networks. Saves having to dealing with the firewalls. Also once you forward those ports they will be open to the entire world. On Wed, 2002-07-31 at 12:26, Michael Mattox wrote: > I'm trying to get JBossMQ working with a server and a client, both > connected to the internet and both behind firewalls. I have full access > to configure the firewalls however I want. I can open any ports > necessary. The problem is I have no idea which ports I should open. So > here's what I've done: I have JBoss and JBossMQ running on my computer > at work. The client works fine. I then put the client on my home > computer (both computers are connected to the internet with DSL, and > both have simple Barricade firewalls). It doesn't work at home. I opened > up all the ports I could find in the JBoss config files, including 1099, > 4444, 8090, and 8091. I did this for both computers. It still doesn't > work. I even put them both in the DMZ. Here is the line of code and the > exception: > > TopicConnectionFactory topicConnectionFactory = (TopicConnectionFactory) > jndiContext.lookup("ConnectionFactory"); > > javax.naming.CommunicationException: Receive timed out. Root exception > is java. > net.SocketTimeoutException: Receive timed out > at java.net.PlainDatagramSocketImpl.receive(Native Method) > at java.net.DatagramSocket.receive(DatagramSocket.java:671) > at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:91 > 9) > at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:997) > at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:436) > at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:429) > at javax.naming.InitialContext.lookup(InitialContext.java:347) > at com.x.detector.Detector.receiveEvents(Detector.java:83) > at com.x.detector.Detector.main(Detector.java:49) > > Again, this client works perfectly 100% of the time when I run it on the > same computer as the server. I'm sure this is related to the firewall / > NAT. Unfortunately I can't disable this at work to prove it. > > If anyone has any ideas on getting this to work I'd greatly appreciate > it. > > Thanks, > Michael > > > > ------------------------------------------------------- > This sf.net email is sponsored by: Dice - The leading online job board > for high-tech professionals. Search and apply for tech jobs today! > http://seeker.dice.com/seeker.epl?rel_code=31 > _______________________________________________ > JBoss-user mailing list > JBo...@li... > https://lists.sourceforge.net/lists/listinfo/jboss-user |