📄 xbserversessionpool.java
字号:
/*------------------------------------------------------------------------------Name: XBServerSessionPool.javaProject: xmlBlaster.orgCopyright: xmlBlaster.org, see xmlBlaster-LICENSE file------------------------------------------------------------------------------*/package org.xmlBlaster.jms;import javax.jms.JMSException;import javax.jms.ServerSession;import javax.jms.ServerSessionPool;/** * XBServerSessionPool * @author <a href="mailto:michele@laghi.eu">Michele Laghi</a> */public class XBServerSessionPool implements ServerSessionPool { private XBConnection connection; private ServerSession serverSession; public XBServerSessionPool(XBConnection connection) { this.connection = connection; } /** * @see javax.jms.ServerSessionPool#getServerSession() */ public synchronized ServerSession getServerSession() throws JMSException { // TODO Implement the real pooling. if (this.serverSession == null) this.serverSession = new XBServerSession(this.connection); return this.serverSession; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -