Tabnine Logo
ManagementClient.getRemoteEjbURL
Code IndexAdd Tabnine to your IDE (free)

How to use
getRemoteEjbURL
method
in
org.jboss.as.arquillian.container.ManagementClient

Best Java code snippets using org.jboss.as.arquillian.container.ManagementClient.getRemoteEjbURL (Showing top 4 results out of 315)

origin: wildfly/wildfly-arquillian

/**
 * @param type
 * @param resource
 * @return
 * @throws IllegalArgumentException If no ResourceProvider found for Type
 * @throws RuntimeException         If ResourceProvider return null
 */
private Object lookupContext(Class<?> type, ContainerResource resource, Annotation... qualifiers) {
  try {
    final Properties env = new Properties();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.remote.client.InitialContextFactory");
    env.put(Context.PROVIDER_URL, managementClient.get().getRemoteEjbURL().toString());
    env.put("jboss.naming.client.connect.options.org.xnio.Options.SASL_POLICY_NOPLAINTEXT", "false");
    env.put("jboss.naming.client.security.callback.handler.class", Authentication.CallbackHandler.class.getName());
    return new InitialContext(env);
  } catch (NamingException e) {
    throw new RuntimeException(e);
  }
}
origin: org.jboss.as/jboss-as-arquillian-common

/**
 * @param type
 * @param resource
 * @return
 * @throws IllegalArgumentException If no ResourceProvider found for Type
 * @throws RuntimeException         If ResourceProvider return null
 */
private Object lookupContext(Class<?> type, ContainerResource resource, Annotation... qualifiers) {
  try {
    final Properties env = new Properties();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.remote.client.InitialContextFactory");
    env.put(Context.PROVIDER_URL, managementClient.get().getRemoteEjbURL().toString());
    env.put("jboss.naming.client.connect.options.org.xnio.Options.SASL_POLICY_NOPLAINTEXT", "false");
    env.put("jboss.naming.client.security.callback.handler.class", Authentication.CallbackHandler.class.getName());
    return new InitialContext(env);
  } catch (NamingException e) {
    throw new RuntimeException(e);
  }
}
origin: org.wildfly.arquillian/wildfly-arquillian-common

/**
 * @param type
 * @param resource
 * @return
 * @throws IllegalArgumentException If no ResourceProvider found for Type
 * @throws RuntimeException         If ResourceProvider return null
 */
private Object lookupContext(Class<?> type, ContainerResource resource, Annotation... qualifiers) {
  try {
    final Properties env = new Properties();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.remote.client.InitialContextFactory");
    env.put(Context.PROVIDER_URL, managementClient.get().getRemoteEjbURL().toString());
    env.put("jboss.naming.client.connect.options.org.xnio.Options.SASL_POLICY_NOPLAINTEXT", "false");
    env.put("jboss.naming.client.security.callback.handler.class", Authentication.CallbackHandler.class.getName());
    return new InitialContext(env);
  } catch (NamingException e) {
    throw new RuntimeException(e);
  }
}
origin: org.wildfly/wildfly-arquillian-common

/**
 * @param type
 * @param resource
 * @return
 * @throws IllegalArgumentException If no ResourceProvider found for Type
 * @throws RuntimeException         If ResourceProvider return null
 */
private Object lookupContext(Class<?> type, ContainerResource resource, Annotation... qualifiers) {
  try {
    final Properties env = new Properties();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.remote.client.InitialContextFactory");
    env.put(Context.PROVIDER_URL, managementClient.get().getRemoteEjbURL().toString());
    env.put("jboss.naming.client.connect.options.org.xnio.Options.SASL_POLICY_NOPLAINTEXT", "false");
    env.put("jboss.naming.client.security.callback.handler.class", Authentication.CallbackHandler.class.getName());
    return new InitialContext(env);
  } catch (NamingException e) {
    throw new RuntimeException(e);
  }
}
org.jboss.as.arquillian.containerManagementClientgetRemoteEjbURL

Javadoc

Returns the URI for EJB's.

Popular methods of ManagementClient

  • getControllerClient
    Returns the client used to connect to the server.
  • <init>
  • close
  • checkSuccessful
  • defined
  • executeForResult
  • extractEnterpriseArchiveContexts
    Expects the deploymentNode to bit a list of addresses which contain a result of the subsystem model.
  • extractWebArchiveContexts
  • getConnection
  • getProtocolMetaData
    Gets the meta-data.
  • getRemoteJMXURL
  • getWebUri
  • getRemoteJMXURL,
  • getWebUri,
  • isEnterpriseArchive,
  • isWebArchive,
  • toContextName,
  • createDeploymentAddress,
  • getBinding,
  • isServerInRunningState,
  • readResource

Popular in Java

  • Reading from database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setContentView (Activity)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • JLabel (javax.swing)
  • 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