wood burning stoves 2.0*
The moose likes JBoss/WildFly and the fly likes Remote JMS Connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Remote JMS Connection" Watch "Remote JMS Connection" New topic
Author

Remote JMS Connection

Jose Coqueiro
Greenhorn

Joined: Nov 15, 2008
Posts: 28
hello all,

Im trying to connect to a remote JMS Server, but when I try to lookup the factory object Im getting the following error:



there is some config I have to do in order to put it to work? could somone help???

thanks!!!
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

It can't connect to the server running at address XXX.XXX.XX.XX on port XXXX because it never gets a response from that server. So after a while it gives up. (That's what the word "timeout" means.)

So you have to find out why. Perhaps there is no server running there. Perhaps there is a firewall or proxy preventing the connection. It's more likely to be a network issue that anything else. Talk to your network managers if you don't understand anything about networks.
Jose Coqueiro
Greenhorn

Joined: Nov 15, 2008
Posts: 28
when I run the code outside Jboss container it works, but when I run inside it fails.
so there is some config???
thanks!
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Jose Coqueiro wrote:when I run the code outside Jboss container it works, but when I run inside it fails.


On the same computer?
Jose Coqueiro
Greenhorn

Joined: Nov 15, 2008
Posts: 28
no, on another computer, but on the same network.
thanks!!!
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

But if you have the problem that something on Computer A can't connect to Computer B, then seeing if something on Computer X can connect to computer B is a useless test of the problem.
Jose Coqueiro
Greenhorn

Joined: Nov 15, 2008
Posts: 28
but Im not doing this test, I'm trying to do a connection just between two computers.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Then you should be doing that test. All you know is that JBoss running on Computer A can't connect to Computer B. So is it JBoss, or is it the network between A and B? Running something else on Computer X tells you nothing about that problem.
Jose Coqueiro
Greenhorn

Joined: Nov 15, 2008
Posts: 28
ok Paul, I had not got it right what you said about the test...

but the problem was other, the computer I was connecting to had changed the ip address...

after change the ip on the config file it works great!!!

thanks!!!




 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Remote JMS Connection
 
Similar Threads
JBoss error: Could not obtain connection...
Locating Remote Session Bean Using JNDI--JNDI-Root Error Socket Timeout Jboss.5.1.GA
Problem with using Jboss
JBoss initialcontext problem
Help required for JMS on Jboss server