当前位置: 首页>>代码示例>>Java>>正文


Java ConnectionFactory.getRecordFactory方法代码示例

本文整理汇总了Java中javax.resource.cci.ConnectionFactory.getRecordFactory方法的典型用法代码示例。如果您正苦于以下问题:Java ConnectionFactory.getRecordFactory方法的具体用法?Java ConnectionFactory.getRecordFactory怎么用?Java ConnectionFactory.getRecordFactory使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在javax.resource.cci.ConnectionFactory的用法示例。


在下文中一共展示了ConnectionFactory.getRecordFactory方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: initialize

import javax.resource.cci.ConnectionFactory; //导入方法依赖的package包/类
@Override
public void initialize() {
    super.initialize();
    
    _composer = getMessageComposer(MappedRecordBindingData.class);
    _selector = getOperationSelector(MappedRecordBindingData.class);

    try {
        ConnectionFactory factory = (ConnectionFactory) new InitialContext().lookup(_connectionFactoryJNDIName);
        _recordFactory = factory.getRecordFactory();
    } catch (Exception e) {
        throw new SwitchYardException(e);
    }
}
 
开发者ID:jboss-switchyard,项目名称:switchyard,代码行数:15,代码来源:CCIEndpoint.java

示例2: JCAConnection

import javax.resource.cci.ConnectionFactory; //导入方法依赖的package包/类
public JCAConnection(final ConnectionFactory connectionFactory, final String connectionSpecFactoryName) {
    connectionProvider = new ConnectionProvider(connectionFactory, connectionSpecFactoryName);
    try {
        recordFactory = connectionFactory.getRecordFactory();
    } catch (ResourceException e) {
        throw new HibersapException("Problem creating RecordFactory.", e);
    }
}
 
开发者ID:hibersap,项目名称:hibersap,代码行数:9,代码来源:JCAConnection.java

示例3: getRecordFactory

import javax.resource.cci.ConnectionFactory; //导入方法依赖的package包/类
/**
 * Return a RecordFactory for the given ConnectionFactory.
 * <p>Default implementation returns the connector's RecordFactory if
 * available, falling back to a NotSupportedRecordFactory placeholder.
 * This allows to invoke a RecordCreator callback with a non-null
 * RecordFactory reference in any case.
 * @param connectionFactory the CCI ConnectionFactory
 * @return the CCI RecordFactory for the ConnectionFactory
 * @throws ResourceException if thrown by CCI methods
 * @see org.springframework.jca.cci.connection.NotSupportedRecordFactory
 */
protected RecordFactory getRecordFactory(ConnectionFactory connectionFactory) throws ResourceException {
	try {
		return connectionFactory.getRecordFactory();
	}
	catch (NotSupportedException ex) {
		return new NotSupportedRecordFactory();
	}
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:20,代码来源:CciTemplate.java


注:本文中的javax.resource.cci.ConnectionFactory.getRecordFactory方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。