Tabnine Logo
ArjunaContext.getInstanceIdentifier
Code IndexAdd Tabnine to your IDE (free)

How to use
getInstanceIdentifier
method
in
com.arjuna.webservices11.wsarj.ArjunaContext

Best Java code snippets using com.arjuna.webservices11.wsarj.ArjunaContext.getInstanceIdentifier (Showing top 20 results out of 315)

origin: org.jboss.jbossts/jbossxts

  /**
   * Get the callback ids.
   * @param arjunaContext The arjuna context.
   * @return The callback ids.
   */
  protected String[] getIDs(final ArjunaContext arjunaContext)
  {
    if (arjunaContext != null)
    {
      final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier() ;
      if (instanceIdentifier != null)
      {
        return new String[] {instanceIdentifier.getInstanceIdentifier()} ;
      }
    }
    return null ;
  }
}
origin: org.jboss.narayana.xts/ws-c11

  /**
   * Get the callback ids.
   * @param arjunaContext The arjuna context.
   * @return The callback ids.
   */
  protected String[] getIDs(final ArjunaContext arjunaContext)
  {
    if (arjunaContext != null)
    {
      final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier() ;
      if (instanceIdentifier != null)
      {
        return new String[] {instanceIdentifier.getInstanceIdentifier()} ;
      }
    }
    return null ;
  }
}
origin: jbosstm/narayana

  /**
   * Get the callback ids.
   * @param arjunaContext The arjuna context.
   * @return The callback ids.
   */
  protected String[] getIDs(final ArjunaContext arjunaContext)
  {
    if (arjunaContext != null)
    {
      final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier() ;
      if (instanceIdentifier != null)
      {
        return new String[] {instanceIdentifier.getInstanceIdentifier()} ;
      }
    }
    return null ;
  }
}
origin: org.jboss.jbossts.xts/jbossxts

  /**
   * Get the callback ids.
   * @param arjunaContext The arjuna context.
   * @return The callback ids.
   */
  protected String[] getIDs(final ArjunaContext arjunaContext)
  {
    if (arjunaContext != null)
    {
      final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier() ;
      if (instanceIdentifier != null)
      {
        return new String[] {instanceIdentifier.getInstanceIdentifier()} ;
      }
    }
    return null ;
  }
}
origin: org.jboss.jbossts/jbossxts

/**
 * Handle the soap fault event.
 * @param soapFault The soap fault.
 * @param map The addressing context.
 * @param arjunaContext The arjuna context.
 *
 */
public void soapFault(final SoapFault soapFault, final MAP map, final ArjunaContext arjunaContext)
{
  if (WSTLogger.logger.isTraceEnabled())
  {
    final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier() ;
    final SoapFaultType soapFaultType = soapFault.getSoapFaultType() ;
    final QName subCode = soapFault.getSubcode() ;
    WSTLogger.logger.tracev("Unexpected SOAP fault for coordinator {0}: {1} {2}", new Object[] {instanceIdentifier, soapFaultType, subCode}) ;
  }
}
origin: org.jboss.jbossts.xts/jbossxts

/**
 * Handle the soap fault event.
 * @param soapFault The soap fault.
 * @param map The addressing context.
 * @param arjunaContext The arjuna context.
 *
 */
public void soapFault(final SoapFault soapFault, final MAP map, final ArjunaContext arjunaContext)
{
  if (WSTLogger.logger.isTraceEnabled())
  {
    final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier() ;
    final SoapFaultType soapFaultType = soapFault.getSoapFaultType() ;
    final QName subCode = soapFault.getSubcode() ;
    WSTLogger.logger.tracev("Unexpected SOAP fault for coordinator {0}: {1} {2}", new Object[] {instanceIdentifier, soapFaultType, subCode}) ;
  }
}
origin: org.jboss.jbossts.xts/ws-t11

/**
 * Handle the soap fault event.
 * @param soapFault The soap fault.
 * @param map The addressing context.
 * @param arjunaContext The arjuna context.
 *
 */
public void soapFault(final SoapFault soapFault, final MAP map, final ArjunaContext arjunaContext)
{
  if (WSTLogger.logger.isTraceEnabled())
  {
    final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier() ;
    final SoapFaultType soapFaultType = soapFault.getSoapFaultType() ;
    final QName subCode = soapFault.getSubcode() ;
    WSTLogger.logger.tracev("Unexpected SOAP fault for coordinator {0}: {1} {2}", new Object[] {instanceIdentifier, soapFaultType, subCode}) ;
  }
}
origin: org.jboss.jbossts/jbossxts

/**
 * Aborted.
 * @param aborted The aborted notification.
 * @param map The addressing context.
 * @param arjunaContext The arjuna context.
 *
 */
public void aborted(final Notification aborted, final MAP map,
  final ArjunaContext arjunaContext)
{
  final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier() ;
  final CoordinatorInboundEvents coordinator = getCoordinator(instanceIdentifier) ;
  if (coordinator != null) {
    try {
      coordinator.aborted(aborted, map, arjunaContext);
    }
    catch (final Throwable th) {
      WSTLogger.i18NLogger.warn_wst11_messaging_CoordinatorProcessorImpl_aborted_1(th);
    }
  } else {
    WSTLogger.i18NLogger.warn_wst11_messaging_CoordinatorProcessorImpl_aborted_2(instanceIdentifier.toString());
  }
}
origin: org.jboss.jbossts/jbossxts

/**
 * Send an unknown transaction fault.
 *
 * @param map The addressing context.
 * @param arjunaContext The arjuna context.
 *
 */
private void sendUnknownTransaction(final MAP map, final ArjunaContext arjunaContext)
{
  // KEV add check for recovery
  final MAP faultAddressingContext = AddressingHelper.createFaultContext(map, MessageId.getMessageId()) ;
  final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier() ;
  try {
    final String message = WSTLogger.i18NLogger.get_wst11_messaging_CoordinatorProcessorImpl_sendUnknownTransaction_1();
    final SoapFault soapFault = new SoapFault11(SoapFaultType.FAULT_SENDER, AtomicTransactionConstants.WSAT_ERROR_CODE_UNKNOWN_TRANSACTION_QNAME, message) ;
    ParticipantClient.getClient().sendSoapFault(faultAddressingContext, soapFault, instanceIdentifier) ;
  } catch (final Throwable th) {
    if (WSTLogger.logger.isTraceEnabled())
    {
      WSTLogger.logger.tracev("Unexpecting exception while sending InvalidState", th) ;
    }
  }
}
origin: org.jboss.jbossts.xts/ws-t11

/**
 * Aborted.
 * @param aborted The aborted notification.
 * @param map The addressing context.
 * @param arjunaContext The arjuna context.
 *
 */
public void aborted(final Notification aborted, final MAP map,
  final ArjunaContext arjunaContext)
{
  final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier() ;
  final CoordinatorInboundEvents coordinator = getCoordinator(instanceIdentifier) ;
  if (coordinator != null) {
    try {
      coordinator.aborted(aborted, map, arjunaContext);
    }
    catch (final Throwable th) {
      WSTLogger.i18NLogger.warn_wst11_messaging_CoordinatorProcessorImpl_aborted_1(th);
    }
  } else {
    WSTLogger.i18NLogger.warn_wst11_messaging_CoordinatorProcessorImpl_aborted_2(instanceIdentifier.toString());
  }
}
origin: org.jboss.jbossts.xts/jbossxts

/**
 * Committed.
 * @param committed The committed notification.
 * @param map The addressing context.
 * @param arjunaContext The arjuna context.
 *
 */
public void committed(final Notification committed, final MAP map,
  final ArjunaContext arjunaContext)
{
  final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier() ;
  final CoordinatorInboundEvents coordinator = getCoordinator(instanceIdentifier) ;
  if (coordinator != null) {
    try {
      coordinator.committed(committed, map, arjunaContext);
    }
    catch (final Throwable th) {
      WSTLogger.i18NLogger.warn_wst11_messaging_CoordinatorProcessorImpl_committed_1(th);
    }
  } else {
    WSTLogger.i18NLogger.warn_wst11_messaging_CoordinatorProcessorImpl_committed_2(instanceIdentifier.toString());
  }
}
origin: org.jboss.jbossts/jbossxts

/**
 * Committed.
 * @param committed The committed notification.
 * @param map The addressing context.
 * @param arjunaContext The arjuna context.
 *
 */
public void committed(final Notification committed, final MAP map,
  final ArjunaContext arjunaContext)
{
  final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier() ;
  final CoordinatorInboundEvents coordinator = getCoordinator(instanceIdentifier) ;
  if (coordinator != null) {
    try {
      coordinator.committed(committed, map, arjunaContext);
    }
    catch (final Throwable th) {
      WSTLogger.i18NLogger.warn_wst11_messaging_CoordinatorProcessorImpl_committed_1(th);
    }
  } else {
    WSTLogger.i18NLogger.warn_wst11_messaging_CoordinatorProcessorImpl_committed_2(instanceIdentifier.toString());
  }
}
origin: org.jboss.jbossts/jbossxts

/**
 * Read only.
 * @param readOnly The read only notification.
 * @param map The addressing context.
 * @param arjunaContext The arjuna context.
 *
 */
public void readOnly(final Notification readOnly, final MAP map,
  final ArjunaContext arjunaContext)
{
  final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier() ;
  final CoordinatorInboundEvents coordinator = getCoordinator(instanceIdentifier) ;
  if (coordinator != null) {
    try {
      coordinator.readOnly(readOnly, map, arjunaContext);
    }
    catch (final Throwable th) {
      WSTLogger.i18NLogger.warn_wst11_messaging_CoordinatorProcessorImpl_readOnly_1(th);
    }
  } else {
    WSTLogger.i18NLogger.warn_wst11_messaging_CoordinatorProcessorImpl_readOnly_2(instanceIdentifier.toString());
  }
}
origin: org.jboss.jbossts.xts/ws-t11

/**
 * Send an unknown transaction fault.
 *
 * @param map The addressing context.
 * @param arjunaContext The arjuna context.
 *
 */
private void sendUnknownTransaction(final MAP map, final ArjunaContext arjunaContext)
{
  // KEV add check for recovery
  final MAP faultAddressingContext = AddressingHelper.createFaultContext(map, MessageId.getMessageId()) ;
  final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier() ;
  try {
    final String message = WSTLogger.i18NLogger.get_wst11_messaging_CoordinatorProcessorImpl_sendUnknownTransaction_1();
    final SoapFault soapFault = new SoapFault11(SoapFaultType.FAULT_SENDER, AtomicTransactionConstants.WSAT_ERROR_CODE_UNKNOWN_TRANSACTION_QNAME, message) ;
    ParticipantClient.getClient().sendSoapFault(faultAddressingContext, soapFault, instanceIdentifier) ;
  } catch (final Throwable th) {
    if (WSTLogger.logger.isTraceEnabled())
    {
      WSTLogger.logger.tracev("Unexpecting exception while sending InvalidState", th) ;
    }
  }
}
origin: org.jboss.jbossts.xts/jbossxts

/**
 * Aborted.
 * @param aborted The aborted notification.
 * @param map The addressing context.
 * @param arjunaContext The arjuna context.
 *
 */
public void aborted(final Notification aborted, final MAP map,
  final ArjunaContext arjunaContext)
{
  final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier() ;
  final CoordinatorInboundEvents coordinator = getCoordinator(instanceIdentifier) ;
  if (coordinator != null) {
    try {
      coordinator.aborted(aborted, map, arjunaContext);
    }
    catch (final Throwable th) {
      WSTLogger.i18NLogger.warn_wst11_messaging_CoordinatorProcessorImpl_aborted_1(th);
    }
  } else {
    WSTLogger.i18NLogger.warn_wst11_messaging_CoordinatorProcessorImpl_aborted_2(instanceIdentifier.toString());
  }
}
origin: org.jboss.jbossts.xts/jbossxts

/**
 * Send an unknown transaction fault.
 *
 * @param map The addressing context.
 * @param arjunaContext The arjuna context.
 *
 */
private void sendUnknownTransaction(final MAP map, final ArjunaContext arjunaContext)
{
  // KEV add check for recovery
  final MAP faultAddressingContext = AddressingHelper.createFaultContext(map, MessageId.getMessageId()) ;
  final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier() ;
  try {
    final String message = WSTLogger.i18NLogger.get_wst11_messaging_CoordinatorProcessorImpl_sendUnknownTransaction_1();
    final SoapFault soapFault = new SoapFault11(SoapFaultType.FAULT_SENDER, AtomicTransactionConstants.WSAT_ERROR_CODE_UNKNOWN_TRANSACTION_QNAME, message) ;
    ParticipantClient.getClient().sendSoapFault(faultAddressingContext, soapFault, instanceIdentifier) ;
  } catch (final Throwable th) {
    if (WSTLogger.logger.isTraceEnabled())
    {
      WSTLogger.logger.tracev("Unexpecting exception while sending InvalidState", th) ;
    }
  }
}
origin: org.jboss.jbossts.xts/ws-t11

/**
 * Committed.
 * @param committed The committed notification.
 * @param map The addressing context.
 * @param arjunaContext The arjuna context.
 *
 */
public void committed(final Notification committed, final MAP map,
  final ArjunaContext arjunaContext)
{
  final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier() ;
  final CoordinatorInboundEvents coordinator = getCoordinator(instanceIdentifier) ;
  if (coordinator != null) {
    try {
      coordinator.committed(committed, map, arjunaContext);
    }
    catch (final Throwable th) {
      WSTLogger.i18NLogger.warn_wst11_messaging_CoordinatorProcessorImpl_committed_1(th);
    }
  } else {
    WSTLogger.i18NLogger.warn_wst11_messaging_CoordinatorProcessorImpl_committed_2(instanceIdentifier.toString());
  }
}
origin: org.jboss.jbossts.xts/jbossxts

/**
 * Send the UnknownTransaction message.
 *
 */
private void sendUnknownTransaction(final MAP map, final ArjunaContext arjunaContext)
{
  try
  {
    final MAP faultMAP = AddressingHelper.createFaultContext(map, MessageId.getMessageId()) ;
    final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier() ;
    final String message = WSTLogger.i18NLogger.get_wst11_messaging_engines_CoordinatorEngine_sendUnknownTransaction_1();
    final SoapFault soapFault = new SoapFault11(SoapFaultType.FAULT_SENDER, AtomicTransactionConstants.WSAT_ERROR_CODE_UNKNOWN_TRANSACTION_QNAME, message) ;
    ParticipantClient.getClient().sendSoapFault(faultMAP, soapFault, instanceIdentifier) ;
  }
  catch (final Throwable th)
  {
    WSTLogger.i18NLogger.warn_wst11_messaging_engines_CoordinatorEngine_sendUnknownTransaction_2(id, th);
  }
}
origin: org.jboss.jbossts.xts/ws-t11

/**
 * Send the UnknownTransaction message.
 *
 */
private void sendUnknownTransaction(final MAP map, final ArjunaContext arjunaContext)
{
  try
  {
    final MAP faultMAP = AddressingHelper.createFaultContext(map, MessageId.getMessageId()) ;
    final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier() ;
    final String message = WSTLogger.i18NLogger.get_wst11_messaging_engines_CoordinatorEngine_sendUnknownTransaction_1();
    final SoapFault soapFault = new SoapFault11(SoapFaultType.FAULT_SENDER, AtomicTransactionConstants.WSAT_ERROR_CODE_UNKNOWN_TRANSACTION_QNAME, message) ;
    ParticipantClient.getClient().sendSoapFault(faultMAP, soapFault, instanceIdentifier) ;
  }
  catch (final Throwable th)
  {
    WSTLogger.i18NLogger.warn_wst11_messaging_engines_CoordinatorEngine_sendUnknownTransaction_2(id, th);
  }
}
origin: org.jboss.jbossts/jbossxts

/**
 * Send the UnknownTransaction message.
 *
 */
private void sendUnknownTransaction(final MAP map, final ArjunaContext arjunaContext)
{
  try
  {
    final MAP faultMAP = AddressingHelper.createFaultContext(map, MessageId.getMessageId()) ;
    final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier() ;
    final String message = WSTLogger.i18NLogger.get_wst11_messaging_engines_CoordinatorEngine_sendUnknownTransaction_1();
    final SoapFault soapFault = new SoapFault11(SoapFaultType.FAULT_SENDER, AtomicTransactionConstants.WSAT_ERROR_CODE_UNKNOWN_TRANSACTION_QNAME, message) ;
    ParticipantClient.getClient().sendSoapFault(faultMAP, soapFault, instanceIdentifier) ;
  }
  catch (final Throwable th)
  {
    WSTLogger.i18NLogger.warn_wst11_messaging_engines_CoordinatorEngine_sendUnknownTransaction_2(id, th);
  }
}
com.arjuna.webservices11.wsarjArjunaContextgetInstanceIdentifier

Javadoc

Get the instance identifier.

Popular methods of ArjunaContext

  • getContext
    Get the arjuna context from the message context.
  • getCurrentContext
    Get the arjuna context from the message context if present.
  • <init>
    Default constructor.
  • setInstanceIdentifier
    Set the instance identifier.

Popular in Java

  • Making http requests using okhttp
  • getResourceAsStream (ClassLoader)
  • onCreateOptionsMenu (Activity)
  • putExtra (Intent)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Socket (java.net)
    Provides a client-side TCP socket.
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Notification (javax.management)
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now