* @throws JMSException
*/
public static Connection makeConnection(ConnectionFactory connectionFactory, ActiveMQConnectionRequestInfo info, boolean transacted) throws JMSException {
if (connectionFactory == null) {
if (transacted) {
connectionFactory = new ActiveMQRAConnectionFactory(info.getServerUrl());
((ActiveMQRAConnectionFactory)connectionFactory).setUseAsyncSend(false);
}
else {
connectionFactory = new org.codehaus.activemq.ActiveMQConnectionFactory(info.getServerUrl());
}