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

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

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

origin: org.jboss.as/jboss-as-ejb3

  @Override
  public ContextSelector<EJBClientContext> run() {
    return EJBClientContext.setSelector(selector);
  }
}
origin: org.jboss.as/jboss-as-appclient

  @Override
  public ContextSelector<EJBClientContext> run() {
    return EJBClientContext.setSelector(selector);
  }
}
origin: org.jboss/jboss-remote-naming

public synchronized static ContextSelector<EJBClientContext> setupSelector() {
  final RemoteNamingEjbClientContextSelector selector = new RemoteNamingEjbClientContextSelector();
  ContextSelector<EJBClientContext> delegate = EJBClientContext.setSelector(selector);
  selector.delegate = delegate;
  return selector;
}
origin: akquinet/jbosscc-as7-examples

private void initializeEJBClientContext()
{
  Properties properties = new Properties();
  properties.put("endpoint.name", "client-endpoint");
  properties.put("remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED", "false");
  properties.put("remote.connections", "default");
  properties.put("remote.connection.default.host", "localhost");
  properties.put("remote.connection.default.port", "4447");
  properties.put("remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS", "false");
  PropertiesBasedEJBClientConfiguration configuration =
      new PropertiesBasedEJBClientConfiguration(properties);
  final ContextSelector<EJBClientContext> ejbClientContextSelector =
      new ConfigBasedEJBClientContextSelector(configuration);
  final ContextSelector<EJBClientContext> previousSelector =
      EJBClientContext.setSelector(ejbClientContextSelector);
}
origin: io.datafx/ejb-wildfly

public JBossLookupConfiguration(Properties jbossEjbClientProperties) {
  EJBClientConfiguration ejbClientConfiguration = new PropertiesBasedEJBClientConfiguration(jbossEjbClientProperties);
  ContextSelector<EJBClientContext> ejbClientContextSelector = new ConfigBasedEJBClientContextSelector(ejbClientConfiguration);
  EJBClientContext.setSelector(ejbClientContextSelector);
}
origin: org.javafxdata/datafx-ejb-wildfly

public JBossLookupConfiguration(Properties jbossEjbClientProperties) {
  EJBClientConfiguration ejbClientConfiguration = new PropertiesBasedEJBClientConfiguration(jbossEjbClientProperties);
  ContextSelector<EJBClientContext> ejbClientContextSelector = new ConfigBasedEJBClientContextSelector(ejbClientConfiguration);
  EJBClientContext.setSelector(ejbClientContextSelector);
}
origin: ch.inftec.ju/ju-util-ee

EJBClientContext.setSelector(selector);
origin: ch.inftec.ju/ju-ee

EJBClientContext.setSelector(selector);
origin: ch.inftec.ju/ju-ee

  @Test
  public void canLookup_testFacadeBean_usingEjbClientApi_withoutFile() throws Exception {
    // Set EJB Client API properties programmatically instead of using
    // jboss-ejb-client.properties file
    Properties clientProp = new Properties();
    clientProp.put("remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED", "false");
    clientProp.put("remote.connections", "default");
    clientProp.put("remote.connection.default.port", "18080");
    clientProp.put("remote.connection.default.host", "localhost");
//        clientProp.put("remote.connection.default.username", "ejbUser");
//        clientProp.put("remote.connection.default.password", "ejbPassword");
    clientProp.put("remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS", "false");

    // Set selector (avoiding usage of jboss-ejb-client.properties file)
    EJBClientConfiguration cc = new PropertiesBasedEJBClientConfiguration(clientProp);
    ContextSelector<EJBClientContext> selector = new ConfigBasedEJBClientContextSelector(cc);
    EJBClientContext.setSelector(selector);
         final Hashtable<String, String> jndiProperties = new Hashtable<>();
//        jndiProperties.put(Context.PROVIDER_URL, "remote://localhost:14447");
    jndiProperties.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");
    final Context context = new InitialContext(jndiProperties);
    
    // Important: We need to use the 'ejb:' prefix...
    TestRemote testRemote = (TestRemote) context.lookup("ejb:/test//TestRemoteInterfaceBean!" + TestRemote.class.getName());
    Assert.assertEquals("TestRemoteBean says hello to EjbClientApi", testRemote.getGreeting("EjbClientApi"));
  }
  
origin: ch.inftec.ju/ju-ee-testing

  @Test
  public void canLookup_testFacadeBean_usingEjbClientApi_withoutFile() throws Exception {
    // Set EJB Client API properties programmatically instead of using
    // jboss-ejb-client.properties file
    Properties clientProp = new Properties();
    clientProp.put("remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED", "false");
    clientProp.put("remote.connections", "default");
    clientProp.put("remote.connection.default.port", "18080");
    clientProp.put("remote.connection.default.host", "localhost");
//        clientProp.put("remote.connection.default.username", "ejbUser");
//        clientProp.put("remote.connection.default.password", "ejbPassword");
    clientProp.put("remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS", "false");

    // Set selector (avoiding usage of jboss-ejb-client.properties file)
    EJBClientConfiguration cc = new PropertiesBasedEJBClientConfiguration(clientProp);
    ContextSelector<EJBClientContext> selector = new ConfigBasedEJBClientContextSelector(cc);
    EJBClientContext.setSelector(selector);
         final Hashtable<String, String> jndiProperties = new Hashtable<>();
//        jndiProperties.put(Context.PROVIDER_URL, "remote://localhost:14447");
    jndiProperties.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");
    final Context context = new InitialContext(jndiProperties);
    
    // Important: We need to use the 'ejb:' prefix...
    TestRemote testRemote = (TestRemote) context.lookup("ejb:/test//TestRemoteInterfaceBean!" + TestRemote.class.getName());
    Assert.assertEquals("TestRemoteBean says hello to EjbClientApi", testRemote.getGreeting("EjbClientApi"));
  }
  
org.jboss.ejb.clientEJBClientContextsetSelector

Popular methods of EJBClientContext

  • getContextManager
    Get the context manager.
  • getAttachment
  • <init>
  • calculateMethodInterceptors
  • create
  • createSession
  • createSessionCreationInvocationContext
  • 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

  • Reactive rest calls using spring rest template
  • runOnUiThread (Activity)
  • setScale (BigDecimal)
  • getResourceAsStream (ClassLoader)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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