Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

JMS:Java Client XAQueueConnectionFactory.createQueueConnection() exception


Running from stanalone java client. Whe I try to put the message on JMS, it throws the exception. Some other person found the same problem(JMS Exception: hosts (hostname:port) cannot be accessed!).

I can create the initial context, lookup connection factory and look up queue succesfully but after that when I create the connection it throws the exception(listed below)

Same code if I run under jsp running on SAP WS runs fine all the way and put the message on the queue.

javax.jms.JMSException: The following hosts (hostname:port) cannot be accessed:

. Check host names and ports.





at QueueSend.main(

This where I print out the context, cf and queue.


Former Member
Not what you were looking for? View more on this topic or Ask a question