Tabnine Logo
ConnectionFactory.createContext
Code IndexAdd Tabnine to your IDE (free)

How to use
createContext
method
in
javax.jms.ConnectionFactory

Best Java code snippets using javax.jms.ConnectionFactory.createContext (Showing top 20 results out of 315)

origin: spring-projects/spring-framework

@Override
public JMSContext createContext() {
  return obtainTargetConnectionFactory().createContext();
}
origin: spring-projects/spring-framework

@Override
public JMSContext createContext(int sessionMode) {
  return obtainTargetConnectionFactory().createContext(sessionMode);
}
origin: spring-projects/spring-framework

@Override
public JMSContext createContext(String userName, String password) {
  return obtainTargetConnectionFactory().createContext(userName, password);
}
origin: spring-projects/spring-framework

@Override
public JMSContext createContext(int sessionMode) {
  return obtainTargetConnectionFactory().createContext(sessionMode);
}
origin: spring-projects/spring-framework

@Override
public JMSContext createContext(String userName, String password) {
  return obtainTargetConnectionFactory().createContext(userName, password);
}
origin: spring-projects/spring-framework

@Override
public JMSContext createContext(String userName, String password, int sessionMode) {
  return obtainTargetConnectionFactory().createContext(userName, password, sessionMode);
}
origin: spring-projects/spring-framework

@Override
public JMSContext createContext(String userName, String password, int sessionMode) {
  return obtainTargetConnectionFactory().createContext(userName, password, sessionMode);
}
origin: spring-projects/spring-framework

@Override
public JMSContext createContext(int sessionMode) {
  return obtainTargetConnectionFactory().createContext(sessionMode);
}
origin: spring-projects/spring-framework

@Override
public JMSContext createContext() {
  return getTargetConnectionFactory().createContext();
}
origin: spring-projects/spring-framework

@Override
public JMSContext createContext(String userName, String password) {
  return getTargetConnectionFactory().createContext(userName, password);
}
origin: spring-projects/spring-framework

@Override
public JMSContext createContext(int sessionMode) {
  return getTargetConnectionFactory().createContext(sessionMode);
}
origin: spring-projects/spring-framework

@Override
public JMSContext createContext() {
  return obtainTargetConnectionFactory().createContext();
}
origin: spring-projects/spring-framework

@Override
public JMSContext createContext(String userName, String password, int sessionMode) {
  return obtainTargetConnectionFactory().createContext(userName, password, sessionMode);
}
origin: spring-projects/spring-framework

@Override
public JMSContext createContext() {
  return obtainTargetConnectionFactory().createContext();
}
origin: spring-projects/spring-framework

@Override
public JMSContext createContext(String userName, String password, int sessionMode) {
  return getTargetConnectionFactory().createContext(userName, password, sessionMode);
}
origin: spring-projects/spring-framework

@Override
public JMSContext createContext(String userName, String password) {
  return obtainTargetConnectionFactory().createContext(userName, password);
}
origin: pentaho/pentaho-kettle

@SuppressWarnings ( "all" ) // suppressing autocloseable error.  inconsistent w/ other connectionfactory impls.
@Override public JMSContext getContext( JmsDelegate delegate ) {
 String finalUrl = buildUrl( delegate );
 ConnectionFactory factory = new ActiveMQConnectionFactory( finalUrl );
 return factory.createContext( delegate.amqUsername, delegate.amqPassword );
}
origin: openzipkin/brave

@JMS2_0 public JMSContext createContext(String userName, String password) {
 checkConnectionFactory();
 JMSContext ctx = ((ConnectionFactory) delegate).createContext(userName, password);
 return TracingJMSContext.create(ctx, jmsTracing);
}
origin: openzipkin/brave

@JMS2_0 public JMSContext createContext(String userName, String password, int sessionMode) {
 checkConnectionFactory();
 JMSContext ctx = ((ConnectionFactory) delegate).createContext(userName, password, sessionMode);
 return TracingJMSContext.create(ctx, jmsTracing);
}
origin: openzipkin/brave

@JMS2_0 public JMSContext createContext(int sessionMode) {
 checkConnectionFactory();
 JMSContext ctx = ((ConnectionFactory) delegate).createContext(sessionMode);
 return TracingJMSContext.create(ctx, jmsTracing);
}
javax.jmsConnectionFactorycreateContext

Javadoc

Creates a JMSContext with the default user identity and an unspecified sessionMode.

A connection and session are created for use by the new JMSContext. The connection is created in stopped mode but will be automatically started when a JMSConsumer is created.

The behaviour of the session that is created depends on whether this method is called in a Java SE environment, in the Java EE application client container, or in the Java EE web or EJB container. If this method is called in the Java EE web or EJB container then the behaviour of the session also depends on whether or not there is an active JTA transaction in progress.

In a Java SE environment or in the Java EE application client container:

  • The session will be non-transacted and received messages will be acknowledged automatically using an acknowledgement mode of JMSContext.AUTO_ACKNOWLEDGE For a definition of the meaning of this acknowledgement mode see the link below.

In a Java EE web or EJB container, when there is an active JTA transaction in progress:

  • The session will participate in the JTA transaction and will be committed or rolled back when that transaction is committed or rolled back, not by calling the JMSContext's commit or rollback methods.

In the Java EE web or EJB container, when there is no active JTA transaction in progress:

  • The session will be non-transacted and received messages will be acknowledged automatically using an acknowledgement mode of JMSContext.AUTO_ACKNOWLEDGE For a definition of the meaning of this acknowledgement mode see the link below.

Popular methods of ConnectionFactory

  • createConnection
    Creates a connection with the specified user identity. The connection is created in stopped mode. No
  • <init>
  • setProperty
  • toString

Popular in Java

  • Reading from database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • compareTo (BigDecimal)
  • addToBackStack (FragmentTransaction)
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top plugins for WebStorm
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