Examples of PropertiesBasedEJBClientConfiguration


Examples of org.jboss.ejb.client.PropertiesBasedEJBClientConfiguration

        props.put("remote.connection.default.password", password);
        //props.put("remote.connection.default.connect.options.org.xnio.Options.SASL_DISALLOWED_MECHANISMS", "JBOSS-LOCAL-USER");
        props.put("remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOPLAINTEXT", "false");

        // create client configuration
        final EJBClientConfiguration clientConfiguration = new PropertiesBasedEJBClientConfiguration(props);
        // create a context selector
        final ContextSelector<EJBClientContext> contextSelector = new ConfigBasedEJBClientContextSelector(clientConfiguration);
        // set the selector for use
        EJBClientContext.setSelector(contextSelector);       
    }
View Full Code Here

Examples of org.jboss.ejb.client.PropertiesBasedEJBClientConfiguration

                props.put("remote.connection.default.password", password.toString());
                //props.put("remote.connection.default.connect.options.org.xnio.Options.SASL_DISALLOWED_MECHANISMS", "JBOSS-LOCAL-USER");
                props.put("remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOPLAINTEXT", "false");

                // create client configuration
                final EJBClientConfiguration clientConfiguration = new PropertiesBasedEJBClientConfiguration(props);
                // create a context selector
                final ContextSelector<EJBClientContext> contextSelector = new ConfigBasedEJBClientContextSelector(clientConfiguration);
                // set the selector for use
                EJBClientContext.setSelector(contextSelector);       
                               
View Full Code Here

Examples of org.jboss.ejb.client.PropertiesBasedEJBClientConfiguration

    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");
    
    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");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.