Tabnine Logo
EJBClientContext.createSessionCreationInvocationContext
Code IndexAdd Tabnine to your IDE (free)

How to use
createSessionCreationInvocationContext
method
in
org.jboss.ejb.client.EJBClientContext

Best Java code snippets using org.jboss.ejb.client.EJBClientContext.createSessionCreationInvocationContext (Showing top 6 results out of 315)

origin: wildfly/wildfly

<T> StatefulEJBLocator<T> createSession(final StatelessEJBLocator<T> statelessLocator, final AuthenticationContext authenticationContext, final NamingProvider namingProvider) throws Exception {
  EJBSessionCreationInvocationContext context = createSessionCreationInvocationContext(statelessLocator, authenticationContext);
  return createSession(context, statelessLocator, namingProvider);
}
origin: wildfly/wildfly

static <T> T createSessionProxy(final StatelessEJBLocator<T> statelessLocator, Supplier<AuthenticationContext> authenticationContextSupplier, NamingProvider namingProvider) throws Exception {
  final EJBClientContext clientContext = EJBClientContext.getCurrent();
  // this is the auth context to use just for the invocation
  final AuthenticationContext authenticationContext;
  if (authenticationContextSupplier != null) {
    authenticationContext = authenticationContextSupplier.get();
  } else {
    authenticationContext = AuthenticationContext.captureCurrent();
  }
  final EJBSessionCreationInvocationContext context = clientContext.createSessionCreationInvocationContext(statelessLocator, authenticationContext);
  final StatefulEJBLocator<T> statefulLocator = clientContext.createSession(context, statelessLocator, namingProvider);
  final T proxy = createProxy(statefulLocator, authenticationContextSupplier);
  final Affinity weakAffinity = context.getWeakAffinity();
  if (weakAffinity != null && Affinity.NONE != weakAffinity) {
    setWeakAffinity(proxy, weakAffinity);
  }
  return proxy;
}
origin: org.jboss.eap/wildfly-client-all

<T> StatefulEJBLocator<T> createSession(final StatelessEJBLocator<T> statelessLocator, final AuthenticationContext authenticationContext, final NamingProvider namingProvider) throws Exception {
  EJBSessionCreationInvocationContext context = createSessionCreationInvocationContext(statelessLocator, authenticationContext);
  return createSession(context, statelessLocator, namingProvider);
}
origin: wildfly/jboss-ejb-client

<T> StatefulEJBLocator<T> createSession(final StatelessEJBLocator<T> statelessLocator, final AuthenticationContext authenticationContext, final NamingProvider namingProvider) throws Exception {
  EJBSessionCreationInvocationContext context = createSessionCreationInvocationContext(statelessLocator, authenticationContext);
  return createSession(context, statelessLocator, namingProvider);
}
origin: org.jboss.eap/wildfly-client-all

static <T> T createSessionProxy(final StatelessEJBLocator<T> statelessLocator, Supplier<AuthenticationContext> authenticationContextSupplier, NamingProvider namingProvider) throws Exception {
  final EJBClientContext clientContext = EJBClientContext.getCurrent();
  // this is the auth context to use just for the invocation
  final AuthenticationContext authenticationContext;
  if (authenticationContextSupplier != null) {
    authenticationContext = authenticationContextSupplier.get();
  } else {
    authenticationContext = AuthenticationContext.captureCurrent();
  }
  final EJBSessionCreationInvocationContext context = clientContext.createSessionCreationInvocationContext(statelessLocator, authenticationContext);
  final StatefulEJBLocator<T> statefulLocator = clientContext.createSession(context, statelessLocator, namingProvider);
  final T proxy = createProxy(statefulLocator, authenticationContextSupplier);
  final Affinity weakAffinity = context.getWeakAffinity();
  if (weakAffinity != null && Affinity.NONE != weakAffinity) {
    setWeakAffinity(proxy, weakAffinity);
  }
  return proxy;
}
origin: wildfly/jboss-ejb-client

static <T> T createSessionProxy(final StatelessEJBLocator<T> statelessLocator, Supplier<AuthenticationContext> authenticationContextSupplier, NamingProvider namingProvider) throws Exception {
  final EJBClientContext clientContext = EJBClientContext.getCurrent();
  // this is the auth context to use just for the invocation
  final AuthenticationContext authenticationContext;
  if (authenticationContextSupplier != null) {
    authenticationContext = authenticationContextSupplier.get();
  } else {
    authenticationContext = AuthenticationContext.captureCurrent();
  }
  final EJBSessionCreationInvocationContext context = clientContext.createSessionCreationInvocationContext(statelessLocator, authenticationContext);
  final StatefulEJBLocator<T> statefulLocator = clientContext.createSession(context, statelessLocator, namingProvider);
  final T proxy = createProxy(statefulLocator, authenticationContextSupplier);
  final Affinity weakAffinity = context.getWeakAffinity();
  if (weakAffinity != null && Affinity.NONE != weakAffinity) {
    setWeakAffinity(proxy, weakAffinity);
  }
  return proxy;
}
org.jboss.ejb.clientEJBClientContextcreateSessionCreationInvocationContext

Popular methods of EJBClientContext

  • setSelector
  • getContextManager
    Get the context manager.
  • getAttachment
  • <init>
  • calculateMethodInterceptors
  • create
  • createSession
  • getClassPathInterceptors
  • getClusterNodeSelector
  • getConfiguredConnections
    Get the pre-configured connections for this context. This information may not be used by some transp
  • getConfiguredPerClassInterceptors
  • getConfiguredPerMethodInterceptors
  • getConfiguredPerClassInterceptors,
  • getConfiguredPerMethodInterceptors,
  • getCurrent,
  • getDeploymentNodeSelector,
  • getGlobalInterceptors,
  • getInterceptors,
  • getInvocationTimeout,
  • getMaximumConnectedClusterNodes,
  • getTransportProvider

Popular in Java

  • Finding current android device location
  • setContentView (Activity)
  • getResourceAsStream (ClassLoader)
  • notifyDataSetChanged (ArrayAdapter)
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JLabel (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top plugins for Android Studio
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