activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lzr <>
Subject Problem about JNDI support: the connection.start hang up and no response.
Date Wed, 24 Jun 2009 07:43:15 GMT
Hi all,
Currently I'm studying the JNDI support with Active MQ 520 and found the Connection.start
will hang up and no response. It will be much appreciated if anybody could help identify the
The following codes is my implemenation:
            Properties props = new Properties();
            props.put(InitialContext.INITIAL_CONTEXT_FACTORY, "org.apache.activemq.jndi.ActiveMQInitialContextFactory");
            props.put("jms/ConnFactory", "ConnectFactory");
            InitialContext ctx = new InitialContext(props);
            ConnectionFactory connectionFactory = (ConnectionFactory) ctx.lookup("ConnectionFactory");
            conn = connectionFactory.createConnection();

Best regards,
Zhuran Li

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message