gpt4 book ai didi

org.jboss.jbossts.xts.environment.XTSPropertyManager类的使用及代码示例

转载 作者:知者 更新时间:2024-03-24 08:05:05 27 4
gpt4 key购买 nike

本文整理了Java中org.jboss.jbossts.xts.environment.XTSPropertyManager类的一些代码示例,展示了XTSPropertyManager类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XTSPropertyManager类的具体详情如下:
包路径:org.jboss.jbossts.xts.environment.XTSPropertyManager
类名称:XTSPropertyManager

XTSPropertyManager介绍

[英]class which ensures XTS properties are installed into the environment beans when they are created and provides access to those beans
[中]类,该类确保在创建XTS属性时将其安装到环境bean中,并提供对这些bean的访问

代码示例

代码示例来源:origin: org.jboss.jbossts.xts/jbossxts

public static void startup()
{
  final ServiceRegistry serviceRegistry = ServiceRegistry.getRegistry() ;
  WSCEnvironmentBean wscEnvironmentBean = XTSPropertyManager.getWSCEnvironmentBean();
  String bindAddress = wscEnvironmentBean.getBindAddress11();
  int bindPort = wscEnvironmentBean.getBindPort11();
  int secureBindPort = wscEnvironmentBean.getBindPortSecure11();
  WSTEnvironmentBean wstEnvironmentBean = XTSPropertyManager.getWSTEnvironmentBean();
  String participantServiceURLPath = wstEnvironmentBean.getParticipantServiceURLPath();
  if (participantServiceURLPath == null) {
    participantServiceURLPath = "/ws-t11-participant";
  }
  if (bindAddress == null) {
    bindAddress = "localhost";
  }
  if (bindPort == 0) {
    bindPort = 8080;
  }
  if (secureBindPort == 0) {
    secureBindPort = 8443;
  }
  final String baseUri = "http://" +  bindAddress + ":" + bindPort + participantServiceURLPath;
  final String uri = baseUri + "/" + BusinessActivityConstants.COORDINATOR_COMPLETION_PARTICIPANT_SERVICE_NAME;
  final String secureBaseUri = "https://" +  bindAddress + ":" + secureBindPort + participantServiceURLPath;
  final String secureUri = secureBaseUri + "/" + BusinessActivityConstants.COORDINATOR_COMPLETION_PARTICIPANT_SERVICE_NAME;
  serviceRegistry.registerServiceProvider(BusinessActivityConstants.COORDINATOR_COMPLETION_PARTICIPANT_SERVICE_NAME, uri) ;
  serviceRegistry.registerSecureServiceProvider(BusinessActivityConstants.COORDINATOR_COMPLETION_PARTICIPANT_SERVICE_NAME, secureUri) ;
}

代码示例来源:origin: org.jboss.jbossts/jbossxts

RecoveryEnvironmentBean recoveryEnvironmentBean = XTSPropertyManager.getRecoveryEnvironmentBean();

代码示例来源:origin: org.jboss.jbossts.xts/jbossxts

_initialised = true;
WSCFEnvironmentBean wscfEnvironmentBean = XTSPropertyManager.getWSCFEnvironmentBean();
List<String> protocolImplementations = wscfEnvironmentBean.getProtocolImplementations();
if (protocolImplementations == null) {

代码示例来源:origin: org.jboss.jbossts.xts/jbossxts

public UserBusinessActivityStandaloneImple()
{
  try
  {
    _activationCoordinatorService = XTSPropertyManager.getWSCEnvironmentBean().getCoordinatorURL11();
    /*
     * If the coordinator URL hasn't been specified via the
     * configuration file then assume we are using a locally registered
     * implementation.
     */
    if (_activationCoordinatorService == null)
    {
      final ServiceRegistry serviceRegistry = ServiceRegistry.getRegistry() ;
      _activationCoordinatorService = serviceRegistry.getServiceURI(CoordinationConstants.ACTIVATION_SERVICE_NAME) ;
    }
  }
  catch (Exception ex)
  {
    // TODO
    ex.printStackTrace();
  }
}

代码示例来源:origin: org.jboss.jbossts.xts/jbossxts

/**
 * Configure all configured WSTX client and participant implementations.
 *
 */
private static void configure()
  throws Exception
{
  WSTEnvironmentBean wstEnvironmentBean = XTSPropertyManager.getWSTEnvironmentBean();
  final String userTx = wstEnvironmentBean.getUserTransaction11();
  final String txManager = wstEnvironmentBean.getTransactionManager11();
  final String userBa = wstEnvironmentBean.getUserBusinessActivity11();
  final String baManager = wstEnvironmentBean.getBusinessActivityManager11();
  // we only load classes which have been configured
  
  if (userTx != null) {
    UserTransaction.setUserTransaction((UserTransaction)ClassLoaderHelper.forName(WSTXInitialisation.class, userTx).newInstance()) ;
  }
  if (txManager != null) {
    TransactionManager.setTransactionManager((TransactionManager)ClassLoaderHelper.forName(WSTXInitialisation.class, txManager).newInstance()) ;
  }
  if (userBa != null) {
    UserBusinessActivity.setUserBusinessActivity((UserBusinessActivity)ClassLoaderHelper.forName(WSTXInitialisation.class, userBa).newInstance()) ;
  }
  if (baManager != null) {
    BusinessActivityManager.setBusinessActivityManager((BusinessActivityManager)ClassLoaderHelper.forName(WSTXInitialisation.class, baManager).newInstance());
  }
}

代码示例来源:origin: org.jboss.jbossts.xts/jbossxts

XTSEnvironmentBean xtsEnvironmentBean = XTSPropertyManager.getXTSEnvironmentBean();
Iterator<String> iterator = xtsEnvironmentBean.getXtsInitialisations().iterator();

代码示例来源:origin: org.jboss.jbossts.xts/wstx11

public UserBusinessActivityStandaloneImple()
{
  try
  {
    _activationCoordinatorService = XTSPropertyManager.getWSCEnvironmentBean().getCoordinatorURL11();
    /*
     * If the coordinator URL hasn't been specified via the
     * configuration file then assume we are using a locally registered
     * implementation.
     */
    if (_activationCoordinatorService == null)
    {
      final ServiceRegistry serviceRegistry = ServiceRegistry.getRegistry() ;
      _activationCoordinatorService = serviceRegistry.getServiceURI(CoordinationConstants.ACTIVATION_SERVICE_NAME) ;
    }
  }
  catch (Exception ex)
  {
    // TODO
    ex.printStackTrace();
  }
}

代码示例来源:origin: org.jboss.jbossts.xts/wstx11

/**
 * Configure all configured WSTX client and participant implementations.
 *
 */
private static void configure()
  throws Exception
{
  WSTEnvironmentBean wstEnvironmentBean = XTSPropertyManager.getWSTEnvironmentBean();
  final String userTx = wstEnvironmentBean.getUserTransaction11();
  final String txManager = wstEnvironmentBean.getTransactionManager11();
  final String userBa = wstEnvironmentBean.getUserBusinessActivity11();
  final String baManager = wstEnvironmentBean.getBusinessActivityManager11();
  // we only load classes which have been configured
  
  if (userTx != null) {
    UserTransaction.setUserTransaction((UserTransaction)ClassLoaderHelper.forName(WSTXInitialisation.class, userTx).newInstance()) ;
  }
  if (txManager != null) {
    TransactionManager.setTransactionManager((TransactionManager)ClassLoaderHelper.forName(WSTXInitialisation.class, txManager).newInstance()) ;
  }
  if (userBa != null) {
    UserBusinessActivity.setUserBusinessActivity((UserBusinessActivity)ClassLoaderHelper.forName(WSTXInitialisation.class, userBa).newInstance()) ;
  }
  if (baManager != null) {
    BusinessActivityManager.setBusinessActivityManager((BusinessActivityManager)ClassLoaderHelper.forName(WSTXInitialisation.class, baManager).newInstance());
  }
}

代码示例来源:origin: org.jboss.jbossts/jbossxts

XTSEnvironmentBean xtsEnvironmentBean = XTSPropertyManager.getXTSEnvironmentBean();
Iterator<String> iterator = xtsEnvironmentBean.getXtsInitialisations().iterator();

代码示例来源:origin: org.jboss.jbossts.xts/jbossxts

public static void startup()
{
  final ServiceRegistry serviceRegistry = ServiceRegistry.getRegistry() ;
  WSCEnvironmentBean wscEnvironmentBean = XTSPropertyManager.getWSCEnvironmentBean();
  String bindAddress = wscEnvironmentBean.getBindAddress11();
  int bindPort = wscEnvironmentBean.getBindPort11();
  int secureBindPort = wscEnvironmentBean.getBindPortSecure11();
  WSTEnvironmentBean wstEnvironmentBean = XTSPropertyManager.getWSTEnvironmentBean();
  String clientServiceURLPath = wstEnvironmentBean.getClientServiceURLPath();
  if (clientServiceURLPath == null) {
    clientServiceURLPath = "/ws-t11-client";
  }
  if (bindAddress == null) {
    bindAddress = "localhost";
  }
  if (bindPort == 0) {
    bindPort = 8080;
  }
  if (secureBindPort == 0) {
    secureBindPort = 8443;
  }
  final String baseUri = "http://" +  bindAddress + ":" + bindPort + clientServiceURLPath;
  final String uri = baseUri + "/" + AtomicTransactionConstants.COMPLETION_INITIATOR_SERVICE_NAME;
  final String secureBaseUri = "https://" +  bindAddress + ":" + secureBindPort + clientServiceURLPath;
  final String secureUri = secureBaseUri + "/" + AtomicTransactionConstants.COMPLETION_INITIATOR_SERVICE_NAME;
  serviceRegistry.registerServiceProvider(AtomicTransactionConstants.COMPLETION_INITIATOR_SERVICE_NAME, uri) ;
  serviceRegistry.registerSecureServiceProvider(AtomicTransactionConstants.COMPLETION_INITIATOR_SERVICE_NAME, secureUri) ;
}

代码示例来源:origin: org.jboss.jbossts/jbossxts

public UserBusinessActivityStandaloneImple()
{
  try
  {
    _activationCoordinatorService = XTSPropertyManager.getWSCEnvironmentBean().getCoordinatorURL11();
    /*
     * If the coordinator URL hasn't been specified via the
     * configuration file then assume we are using a locally registered
     * implementation.
     */
    if (_activationCoordinatorService == null)
    {
      final ServiceRegistry serviceRegistry = ServiceRegistry.getRegistry() ;
      _activationCoordinatorService = serviceRegistry.getServiceURI(CoordinationConstants.ACTIVATION_SERVICE_NAME) ;
    }
  }
  catch (Exception ex)
  {
    // TODO
    ex.printStackTrace();
  }
}

代码示例来源:origin: org.jboss.jbossts.xts/jbossxts

RecoveryEnvironmentBean recoveryEnvironmentBean = XTSPropertyManager.getRecoveryEnvironmentBean();

代码示例来源:origin: org.jboss.jbossts/jbossxts

/**
 * Configure all configured WSTX client and participant implementations.
 *
 */
private static void configure()
  throws Exception
{
  WSTEnvironmentBean wstEnvironmentBean = XTSPropertyManager.getWSTEnvironmentBean();
  final String userTx = wstEnvironmentBean.getUserTransaction11();
  final String txManager = wstEnvironmentBean.getTransactionManager11();
  final String userBa = wstEnvironmentBean.getUserBusinessActivity11();
  final String baManager = wstEnvironmentBean.getBusinessActivityManager11();
  // we only load classes which have been configured
  
  if (userTx != null) {
    UserTransaction.setUserTransaction((UserTransaction)ClassLoaderHelper.forName(WSTXInitialisation.class, userTx).newInstance()) ;
  }
  if (txManager != null) {
    TransactionManager.setTransactionManager((TransactionManager)ClassLoaderHelper.forName(WSTXInitialisation.class, txManager).newInstance()) ;
  }
  if (userBa != null) {
    UserBusinessActivity.setUserBusinessActivity((UserBusinessActivity)ClassLoaderHelper.forName(WSTXInitialisation.class, userBa).newInstance()) ;
  }
  if (baManager != null) {
    BusinessActivityManager.setBusinessActivityManager((BusinessActivityManager)ClassLoaderHelper.forName(WSTXInitialisation.class, baManager).newInstance());
  }
}

代码示例来源:origin: org.jboss.jbossts/jbossxts

_initialised = true;
WSCFEnvironmentBean wscfEnvironmentBean = XTSPropertyManager.getWSCFEnvironmentBean();
List<String> protocolImplementations = wscfEnvironmentBean.getProtocolImplementations();
if (protocolImplementations == null) {

代码示例来源:origin: org.jboss.jbossts/jbossxts

public static void startup()
{
  final ServiceRegistry serviceRegistry = ServiceRegistry.getRegistry() ;
  WSCEnvironmentBean wscEnvironmentBean = XTSPropertyManager.getWSCEnvironmentBean();
  String bindAddress = wscEnvironmentBean.getBindAddress11();
  int bindPort = wscEnvironmentBean.getBindPort11();
  int secureBindPort = wscEnvironmentBean.getBindPortSecure11();
  WSTEnvironmentBean wstEnvironmentBean = XTSPropertyManager.getWSTEnvironmentBean();
  String participantServiceURLPath = wstEnvironmentBean.getParticipantServiceURLPath();
  if (participantServiceURLPath == null) {
    participantServiceURLPath = "/ws-t11-participant";
  }
  if (bindAddress == null) {
    bindAddress = "127.0.0.1";
  }
  if (bindPort == 0) {
    bindPort = 8080;
  }
  if (secureBindPort == 0) {
    secureBindPort = 8443;
  }
  final String baseUri = "http://" +  bindAddress + ":" + bindPort + participantServiceURLPath;
  final String uri = baseUri + "/" + BusinessActivityConstants.PARTICIPANT_COMPLETION_PARTICIPANT_SERVICE_NAME;
  final String secureBaseUri = "https://" +  bindAddress + ":" + secureBindPort + participantServiceURLPath;
  final String secureUri = secureBaseUri + "/" + BusinessActivityConstants.PARTICIPANT_COMPLETION_PARTICIPANT_SERVICE_NAME;
  serviceRegistry.registerServiceProvider(BusinessActivityConstants.PARTICIPANT_COMPLETION_PARTICIPANT_SERVICE_NAME, uri) ;
  serviceRegistry.registerSecureServiceProvider(BusinessActivityConstants.PARTICIPANT_COMPLETION_PARTICIPANT_SERVICE_NAME, secureUri) ;
}

代码示例来源:origin: org.jboss.jbossts/jbossxts

public UserTransactionStandaloneImple()
{
  try
  {
    _activationCoordinatorService = XTSPropertyManager.getWSCEnvironmentBean().getCoordinatorURL11();
    /*
     * If the coordinator URL hasn't been specified via the
     * configuration file then assume we are using a locally registered
     * implementation.
     */
    if (_activationCoordinatorService == null)
    {
      final ServiceRegistry serviceRegistry = ServiceRegistry.getRegistry() ;
      _activationCoordinatorService = serviceRegistry.getServiceURI(CoordinationConstants.ACTIVATION_SERVICE_NAME) ;
    }
  }
  catch (Exception ex)
  {
    // TODO
    ex.printStackTrace();
  }
  // this implementation cannot provide support for subordinate transactions
  _userSubordinateTransaction = null;
}

代码示例来源:origin: org.jboss.jbossts/jbossxts

RecoveryEnvironmentBean recoveryEnvironmentBean = XTSPropertyManager.getRecoveryEnvironmentBean();

代码示例来源:origin: org.jboss.jbossts/jbossxts

public static void startup()
{
  final ServiceRegistry serviceRegistry = ServiceRegistry.getRegistry() ;
  WSCEnvironmentBean wscEnvironmentBean = XTSPropertyManager.getWSCEnvironmentBean();
  String bindAddress = wscEnvironmentBean.getBindAddress11();
  int bindPort = wscEnvironmentBean.getBindPort11();
  int secureBindPort = wscEnvironmentBean.getBindPortSecure11();
  WSTEnvironmentBean wstEnvironmentBean = XTSPropertyManager.getWSTEnvironmentBean();
  String clientServiceURLPath = wstEnvironmentBean.getClientServiceURLPath();
  if (clientServiceURLPath == null) {
    clientServiceURLPath = "/ws-t11-client";
  }
  if (bindAddress == null) {
    bindAddress = "127.0.0.1";
  }
  if (bindPort == 0) {
    bindPort = 8080;
  }
  if (secureBindPort == 0) {
    secureBindPort = 8443;
  }
  final String baseUri = "http://" +  bindAddress + ":" + bindPort + clientServiceURLPath;
  final String uri = baseUri + "/" + ArjunaTX11Constants.TERMINATION_PARTICIPANT_SERVICE_NAME;
  final String secureBaseUri = "https://" +  bindAddress + ":" + secureBindPort + clientServiceURLPath;
  final String secureUri = secureBaseUri + "/" + ArjunaTX11Constants.TERMINATION_PARTICIPANT_SERVICE_NAME;
  serviceRegistry.registerServiceProvider(ArjunaTX11Constants.TERMINATION_PARTICIPANT_SERVICE_NAME, uri) ;
  serviceRegistry.registerSecureServiceProvider(ArjunaTX11Constants.TERMINATION_PARTICIPANT_SERVICE_NAME, secureUri) ;
}

代码示例来源:origin: org.jboss.jbossts.xts/jbossxts

public UserTransactionStandaloneImple()
{
  try
  {
    _activationCoordinatorService = XTSPropertyManager.getWSCEnvironmentBean().getCoordinatorURL11();
    /*
     * If the coordinator URL hasn't been specified via the
     * configuration file then assume we are using a locally registered
     * implementation.
     */
    if (_activationCoordinatorService == null)
    {
      final ServiceRegistry serviceRegistry = ServiceRegistry.getRegistry() ;
      _activationCoordinatorService = serviceRegistry.getServiceURI(CoordinationConstants.ACTIVATION_SERVICE_NAME) ;
    }
  }
  catch (Exception ex)
  {
    // TODO
    ex.printStackTrace();
  }
  // this implementation cannot provide support for subordinate transactions
  _userSubordinateTransaction = null;
}

代码示例来源:origin: org.jboss.jbossts.xts/jbossxts

RecoveryEnvironmentBean recoveryEnvironmentBean = XTSPropertyManager.getRecoveryEnvironmentBean();

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com