Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

linux localhost configuration with JMS/J2EE server  RSS feed

Steven Ostrowski
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey everyone,
I have a tricky problem with configuration of an application that uses both jdbc and jms. In particular, the /etc/hosts file in linux. For the address I have the aliases: localhost, localhost.localdomain, and foo (name of the machine). However, if I put foo there, I no longer receive JMS messages. That seems very strange to me. I can still connect to the j2ee server (which is running on a different machine that I have listed in the file) however I receive no messages.
If I do not put foo as an alias for then I do get the messages. The reason I want to put foo is because MySQL likes it better as an alias for localhost.
Why would JMS not deliver me messages (or why would me as a client be discarding them if that is the case) based on whether I have my machine name as an alias? How can I reconcile it?
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!