本文整理汇总了Java中javax.jms.ServerSessionPool类的典型用法代码示例。如果您正苦于以下问题:Java ServerSessionPool类的具体用法?Java ServerSessionPool怎么用?Java ServerSessionPool使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ServerSessionPool类属于javax.jms包,在下文中一共展示了ServerSessionPool类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createConnectionConsumer
import javax.jms.ServerSessionPool; //导入依赖的package包/类
public ConnectionConsumer createConnectionConsumer(Destination destination, String messageSelector, ServerSessionPool sessionPool, int maxMessages, boolean noLocal)
throws JMSException {
checkClosedOrFailed();
ensureConnectionInfoSent();
ConsumerId consumerId = createConsumerId();
ConsumerInfo consumerInfo = new ConsumerInfo(consumerId);
consumerInfo.setDestination(ActiveMQMessageTransformation.transformDestination(destination));
consumerInfo.setSelector(messageSelector);
consumerInfo.setPrefetchSize(maxMessages);
consumerInfo.setNoLocal(noLocal);
consumerInfo.setDispatchAsync(isDispatchAsync());
// Allows the options on the destination to configure the consumerInfo
if (consumerInfo.getDestination().getOptions() != null) {
Map<String, String> options = new HashMap<String, String>(consumerInfo.getDestination().getOptions());
IntrospectionSupport.setProperties(consumerInfo, options, "consumer.");
}
return new ActiveMQConnectionConsumer(this, sessionPool, consumerInfo);
}
示例2: createConnectionConsumer
import javax.jms.ServerSessionPool; //导入依赖的package包/类
/**
* Create a connection consumer -- throws IllegalStateException
*
* @param queue The queue
* @param messageSelector The message selector
* @param sessionPool The session pool
* @param maxMessages The number of max messages
* @return The connection consumer
* @throws JMSException Thrown if an error occurs
*/
@Override
public ConnectionConsumer createConnectionConsumer(final Queue queue,
final String messageSelector,
final ServerSessionPool sessionPool,
final int maxMessages) throws JMSException {
if (ActiveMQRASessionFactoryImpl.trace) {
ActiveMQRALogger.LOGGER.trace("createConnectionConsumer(" + queue +
", " +
messageSelector +
", " +
sessionPool +
", " +
maxMessages +
")");
}
throw new IllegalStateException(ISE);
}
示例3: createDurableConnectionConsumer
import javax.jms.ServerSessionPool; //导入依赖的package包/类
/**
* Create a durable connection consumer -- throws IllegalStateException
*
* @param topic The topic
* @param subscriptionName The subscription name
* @param messageSelector The message selector
* @param sessionPool The session pool
* @param maxMessages The number of max messages
* @return The connection consumer
* @throws JMSException Thrown if an error occurs
*/
@Override
public ConnectionConsumer createDurableConnectionConsumer(final Topic topic,
final String subscriptionName,
final String messageSelector,
final ServerSessionPool sessionPool,
final int maxMessages) throws JMSException {
if (ActiveMQRASessionFactoryImpl.trace) {
ActiveMQRALogger.LOGGER.trace("createConnectionConsumer(" + topic +
", " +
subscriptionName +
", " +
messageSelector +
", " +
sessionPool +
", " +
maxMessages +
")");
}
throw new IllegalStateException(ISE);
}
示例4: createDurableConnectionConsumer
import javax.jms.ServerSessionPool; //导入依赖的package包/类
@Override
public ConnectionConsumer createDurableConnectionConsumer(final Topic topic,
final String subscriptionName,
final String messageSelector,
final ServerSessionPool sessionPool,
final int maxMessages) throws JMSException {
checkClosed();
// As spec. section 4.11
if (connectionType == ActiveMQConnection.TYPE_QUEUE_CONNECTION) {
String msg = "Cannot create a durable connection consumer on a QueueConnection";
throw new javax.jms.IllegalStateException(msg);
}
checkTempQueues(topic);
// We offer RA, so no need for this
return null;
}
示例5: createConnectionConsumer
import javax.jms.ServerSessionPool; //导入依赖的package包/类
@Override
public ConnectionConsumer createConnectionConsumer(
final Destination destination,
final String messageSelector,
final ServerSessionPool sessionPool,
final int maxMessages
) throws JMSException {
return null;
}
示例6: createSharedConnectionConsumer
import javax.jms.ServerSessionPool; //导入依赖的package包/类
@Override
public ConnectionConsumer createSharedConnectionConsumer(
final Topic topic,
final String subscriptionName,
final String messageSelector,
final ServerSessionPool sessionPool,
final int maxMessages
) throws JMSException {
return null;
}
示例7: createDurableConnectionConsumer
import javax.jms.ServerSessionPool; //导入依赖的package包/类
@Override
public ConnectionConsumer createDurableConnectionConsumer(
final Topic topic,
final String subscriptionName,
final String messageSelector,
final ServerSessionPool sessionPool,
final int maxMessages
) throws JMSException {
return null;
}
示例8: createSharedDurableConnectionConsumer
import javax.jms.ServerSessionPool; //导入依赖的package包/类
@Override
public ConnectionConsumer createSharedDurableConnectionConsumer(
final Topic topic,
final String subscriptionName,
final String messageSelector,
final ServerSessionPool sessionPool,
final int maxMessages
) throws JMSException {
return null;
}
示例9: createConnectionConsumer
import javax.jms.ServerSessionPool; //导入依赖的package包/类
@Override
public ConnectionConsumer createConnectionConsumer(
Topic topic,
String messageSelector,
ServerSessionPool sessionPool,
int maxMessages ) throws JMSException {
return addConnectionConsumer(topicConnection.createConnectionConsumer(topic,
messageSelector,
sessionPool,
maxMessages));
}
示例10: createConnectionConsumer
import javax.jms.ServerSessionPool; //导入依赖的package包/类
@Override
public ConnectionConsumer createConnectionConsumer(
Destination destination,
String messageSelector,
ServerSessionPool sessionPool,
int maxMessages ) throws JMSException {
return connection.createConnectionConsumer(destination, messageSelector, sessionPool, maxMessages);
}
示例11: createDurableConnectionConsumer
import javax.jms.ServerSessionPool; //导入依赖的package包/类
@Override
public ConnectionConsumer createDurableConnectionConsumer(
Topic topic,
String subscriptionName,
String messageSelector,
ServerSessionPool sessionPool,
int maxMessages ) throws JMSException {
return connection.createDurableConnectionConsumer(topic,
subscriptionName,
messageSelector,
sessionPool,
maxMessages);
}
示例12: createConnectionConsumer
import javax.jms.ServerSessionPool; //导入依赖的package包/类
@Override
public ConnectionConsumer createConnectionConsumer(
Queue queue,
String messageSelector,
ServerSessionPool sessionPool,
int maxMessages ) throws JMSException {
return addConnectionConsumer(queueConnection.createConnectionConsumer(queue,
messageSelector,
sessionPool,
maxMessages));
}
示例13: createConnectionConsumer
import javax.jms.ServerSessionPool; //导入依赖的package包/类
@Override
public ConnectionConsumer createConnectionConsumer(
Queue queue,
String messageSelector,
ServerSessionPool sessionPool,
int maxMessages ) throws JMSException {
return addConnectionConsumer( ((QueueConnection) connection).createConnectionConsumer(queue,
messageSelector,
sessionPool,
maxMessages));
}
示例14: createSharedConnectionConsumer
import javax.jms.ServerSessionPool; //导入依赖的package包/类
@Override
public ConnectionConsumer createSharedConnectionConsumer(Topic arg0,
String arg1, String arg2, ServerSessionPool arg3, int arg4)
throws JMSException {
// TODO Auto-generated method stub
return null;
}
示例15: createSharedDurableConnectionConsumer
import javax.jms.ServerSessionPool; //导入依赖的package包/类
@Override
public ConnectionConsumer createSharedDurableConnectionConsumer(Topic arg0,
String arg1, String arg2, ServerSessionPool arg3, int arg4)
throws JMSException {
// TODO Auto-generated method stub
return null;
}