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


Java BootstrapContext.getWorkManager方法代码示例

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


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

示例1: start

import javax.resource.spi.BootstrapContext; //导入方法依赖的package包/类
@Override
public void start(BootstrapContext ctx) throws ResourceAdapterInternalException {
	log.debug("");

	workManager = ctx.getWorkManager();
	xaTerminator = ctx.getXATerminator();
	try {
		timer = ctx.createTimer();

		perMinuteTimerTask = new PerMinuteTimerTask();
		perMinuteTimerTask.init();
		timer.schedule(perMinuteTimerTask, perMinuteTimerTask.getDelay(), perMinuteTimerTask.getPeriod());
	} catch (UnavailableException e) {
		log.warn("", e);
		//throw new ResourceAdapterInternalException(e);
	}
	//bind();
	log.debug("workManager={}, xaTerminator={}, timer={}", workManager, xaTerminator, timer);
}
 
开发者ID:dlmiles,项目名称:full-example-ee7-jca-eis,代码行数:20,代码来源:ResourceAdapterImpl.java

示例2: start

import javax.resource.spi.BootstrapContext; //导入方法依赖的package包/类
@Override
public void start(BootstrapContext ctx) throws ResourceAdapterInternalException {
    log.info("[TrafficResourceAdapter] start()");
    /* Get the work manager from the container to submit tasks to
     * be executed in container-managed threads */
    workManager = ctx.getWorkManager();
}
 
开发者ID:osmanpub,项目名称:oracle-samples,代码行数:8,代码来源:TrafficResourceAdapter.java

示例3: start

import javax.resource.spi.BootstrapContext; //导入方法依赖的package包/类
/**
 * {@inheritDoc}
 */
public void start(BootstrapContext ctx)
      throws ResourceAdapterInternalException
{
   this.bc = (CloneableBootstrapContext) ctx;
   this.workManager = ctx.getWorkManager();
}
 
开发者ID:ironjacamar,项目名称:ironjacamar,代码行数:10,代码来源:TestResourceAdapter.java

示例4: setBootstrapContext

import javax.resource.spi.BootstrapContext; //导入方法依赖的package包/类
/**
 * Specify the JCA BootstrapContext that contains the
 * WorkManager to delegate to.
 */
@Override
public void setBootstrapContext(BootstrapContext bootstrapContext) {
	Assert.notNull(bootstrapContext, "BootstrapContext must not be null");
	this.workManager = bootstrapContext.getWorkManager();
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:10,代码来源:WorkManagerTaskExecutor.java

示例5: setBootstrapContext

import javax.resource.spi.BootstrapContext; //导入方法依赖的package包/类
/**
 * Specify the JCA BootstrapContext that contains the
 * WorkManager to delegate to.
 */
public void setBootstrapContext(BootstrapContext bootstrapContext) {
	Assert.notNull(bootstrapContext, "BootstrapContext must not be null");
	this.workManager = bootstrapContext.getWorkManager();
}
 
开发者ID:deathspeeder,项目名称:class-guard,代码行数:9,代码来源:WorkManagerTaskExecutor.java

示例6: start

import javax.resource.spi.BootstrapContext; //导入方法依赖的package包/类
/**
 * @see javax.resource.spi.ResourceAdapter#start(javax.resource.spi.BootstrapContext)
 */
@Override
public void start(BootstrapContext bootstrapContext) throws ResourceAdapterInternalException {
    this.logger.info("Starting kismet resource adapter");
    this.workManager = bootstrapContext.getWorkManager();
}
 
开发者ID:os-cillation,项目名称:kismet-connector,代码行数:9,代码来源:KismetResourceAdapter.java

示例7: start

import javax.resource.spi.BootstrapContext; //导入方法依赖的package包/类
/**
 * This is called when a resource adapter instance is bootstrapped.
 *
 * @param ctx
 *          A bootstrap context containing references
 * @throws ResourceAdapterInternalException
 *           indicates bootstrap failure.
 */
public void start(BootstrapContext ctx)
    throws ResourceAdapterInternalException {
  log.finest("sets up configuration.");
  this.workManager = ctx.getWorkManager();
}
 
开发者ID:vert-x3,项目名称:vertx-jca,代码行数:14,代码来源:VertxResourceAdapter.java

示例8: start

import javax.resource.spi.BootstrapContext; //导入方法依赖的package包/类
/**
 * This is called when a resource adapter instance is bootstrapped.
 *
 * @param ctx A bootstrap context containing references 
 * @throws ResourceAdapterInternalException indicates bootstrap failure.
 */
public void start(BootstrapContext ctx)
   throws ResourceAdapterInternalException
{
   this.workManager = ctx.getWorkManager();
}
 
开发者ID:ironjacamar,项目名称:ironjacamar,代码行数:12,代码来源:WorkResourceAdapter.java


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