![JAR search and dependency download from the Maven repository](/logo.png)
org.fusesource.stomp.jms.StompJmsConnectionFactory Maven / Gradle / Ivy
/**
* Copyright (C) 2010-2011, FuseSource Corp. All rights reserved.
*
* http://fusesource.com
*
* The software in this package is published under the terms of the
* CDDL license a copy of which has been included with this distribution
* in the license.txt file.
*/
package org.fusesource.stomp.jms;
import org.fusesource.stomp.jms.jndi.JNDIStorable;
import org.fusesource.stomp.jms.util.PropertyUtil;
import javax.jms.*;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
/**
* Jms ConnectionFactory implementation
*/
public class StompJmsConnectionFactory extends JNDIStorable implements ConnectionFactory, QueueConnectionFactory,
TopicConnectionFactory {
private URI brokerURI;
private URI localURI;
private String username;
private String password;
boolean forceAsyncSend;
boolean omitHost;
String queuePrefix = "/queue/";
String topicPrefix = "/topic/";
String tempQueuePrefix = "/temp-queue/";
String tempTopicPrefix = "/temp-topic/";
/**
* Constructor
*/
public StompJmsConnectionFactory() {
}
/**
* Set properties
*
* @param props
*/
public void setProperties(Properties props) {
Map map = new HashMap();
for (Map.Entry
© 2015 - 2025 Weber Informatics LLC | Privacy Policy