Tabnine Logo
XATopicSession.getXAResource
Code IndexAdd Tabnine to your IDE (free)

How to use
getXAResource
method
in
javax.jms.XATopicSession

Best Java code snippets using javax.jms.XATopicSession.getXAResource (Showing top 3 results out of 315)

origin: com.axway.ats.framework/ats-actionlibrary

@Override
public XAResource getXAResource() {
  return xaTopicSession.getXAResource();
}
origin: org.jboss.jbossas/jboss-as-connector

/**
* Get the XAResource for the connection.
*
* @return   The XAResource for the connection.
*
* @throws ResourceException    XA transaction not supported
*/
public XAResource getXAResource() throws ResourceException
{
 //
 // Spec says a mc must allways return the same XA resource,
 // so we cache it.
 //
 if (!xaTransacted)
   throw new NotSupportedException("Non XA transaction not supported");
 if (xaResource == null)
 {
   if (info.getType() == JmsConnectionFactory.TOPIC)
    xaResource = xaTopicSession.getXAResource();
   else if (info.getType() == JmsConnectionFactory.QUEUE)
    xaResource = xaQueueSession.getXAResource();
   else
    xaResource = xaSession.getXAResource();
 }
 if (log.isTraceEnabled())
   log.trace("XAResource=" + xaResource);
 xaResource = new JmsXAResource(this, xaResource);
 return xaResource;
}
origin: org.objectweb.jonas/jonas-jms-manager

xares = xats.getXAResource();
try {
  tx.enlistResource(this.getXAResource());
javax.jmsXATopicSessiongetXAResource

Popular methods of XATopicSession

  • getTopicSession
    Gets the topic session associated with this XATopicSession.
  • close
  • getSession

Popular in Java

  • Reading from database using SQL prepared statement
  • putExtra (Intent)
  • notifyDataSetChanged (ArrayAdapter)
  • getContentResolver (Context)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top Vim 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