[Rhm-users] RE: Unable to connect using Java client with RHM beta

Andy Grove andy at codesuccess.com
Sat Dec 8 09:08:21 UTC 2007


After reading the documentation I realized I need to change the connection
details. I think I have everything working now. 

 

Thanks,

 

Andy.

 

From: Andy Grove [mailto:andy at codesuccess.com] 
Sent: 08 December 2007 08:43
To: rhm-users at redhat.com
Subject: Unable to connect using Java client with RHM beta

 

Hi,

I installed the RHM java client version 0.2.4 from RPMs yesterday and I am
trying to connect to the RHM C++ broker but connections timeout. If I kill
the RHM broker and run the Apache QPID Java broker the client connects fine.


Do I need to change my connection settings for RHM? These are the settings I
am currently using:

java.naming.factory.initial =
org.apache.qpid.jndi.PropertiesFileInitialContextFactory
connectionfactory.local =
amqp://guest:guest@clientid/test?brokerlist='tcp://localhost:5672'

I'm using the following Java code to connect:

InitialContext ctx = new InitialContext(properties);
AMQConnectionFactory cf = (AMQConnectionFactory) ctx.lookup("local");
Connection conn = cf.createConnection();

Thanks,

Andy.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/rhm-users/attachments/20071208/5b1bd87d/attachment.htm>


More information about the Rhm-users mailing list