Linux client don't receive messages

I got this strange problem. I'm using weblogic 8.1 sp5 as a J2EE server for an application that use JMS. I also have a java client who send messages to a queue and receive messages throw a topic. When a run the client in a windows machine the messages are sended and received, but when I use a Linux machine (redhat 3) the client don't receive the messages published into the topic.

I've tried into several machines, with redhat 3 and fedora. The only way to make it work is to run the client into the same machine where the server is.

Please help!

Thanks

[583 byte] By [jpmenia] at [2007-10-2 10:21:39]
# 1
are you sure that the Client in Linux box has enough access to the WebLogic 8.1 Server. If not you will end up in such problems.
pazhanikanthana at 2007-7-13 1:53:03 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
yes. I even assign the same IP and use the same switch port for both machines. All the firewalls are down for the moment.
jpmenia at 2007-7-13 1:53:03 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3

I finally solve the problem!

The linux client has a default entry in the hosts file matching the 127.0.0.1 IP the the machine name. For some reason, the jms topic listener didnt' keep the connection with the server and start listening to himself. Therefore, the messages wasn't processed by the topic listener.

Removing this entry and creating a new one matching the real IP with the host name solve the problem.

jpmenia at 2007-7-13 1:53:03 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...