Package org.jboss.ejb.client.remoting

Examples of org.jboss.ejb.client.remoting.ConfigBasedEJBClientContextSelector


        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


                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);       
                               
                return userDlg.getUser(pk);
            }
View Full Code Here

        this.parameters = parameters;
        this.namespaceContextSelectorInjectedValue = namespaceContextSelectorInjectedValue;
        this.classLoader = classLoader;
        this.hostUrl = null;
        this.setupActions = setupActions;
        this.contextSelector = new ConfigBasedEJBClientContextSelector(configuration);
    }
View Full Code Here

//    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");
        jndiProperties.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");
View Full Code Here

        this.parameters = parameters;
        this.namespaceContextSelectorInjectedValue = namespaceContextSelectorInjectedValue;
        this.classLoader = classLoader;
        this.hostUrl = null;
        this.setupActions = setupActions;
        this.contextSelector = new ConfigBasedEJBClientContextSelector(configuration);
    }
View Full Code Here

        this.parameters = parameters;
        this.namespaceContextSelectorInjectedValue = namespaceContextSelectorInjectedValue;
        this.classLoader = classLoader;
        this.hostUrl = null;
        this.setupActions = setupActions;
        this.contextSelector = new ConfigBasedEJBClientContextSelector(configuration);
    }
View Full Code Here

TOP

Related Classes of org.jboss.ejb.client.remoting.ConfigBasedEJBClientContextSelector

Copyright © 2018 www.massapicom. 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.