Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <subsystem xmlns="urn:jboss:domain:remoting:3.0">
- <endpoint/>
- <http-connector name="http-remoting-connector" connector-ref="default" security-realm="ApplicationRealm"/>
- </subsystem>
- [...]
- <subsystem xmlns="urn:jboss:domain:undertow:3.1">
- <buffer-cache name="default"/>
- <server name="default-server">
- <http-listener name="default" socket-binding="http" redirect-socket="https" enable-http2="true"/>
- [...]
- </subsystem>
- [...]
- <interfaces>
- <interface name="public">
- <any-address/>
- </interface>
- </interfaces>
- [...]
- <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
- <socket-binding name="http" interface="public" port="${jboss.http.port:8080}"/>
- <socket-binding name="https" port="${jboss.https.port:8443}"/>
- [...]
- </socket-binding-group>
- endpoint.name=client-endpoint
- remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED=false
- remote.connections=default
- remote.connection.default.host=<host-ip>
- remote.connection.default.port=8080
- remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=false
- remote.connection.default.username=<usernmae>
- remote.connection.default.password=<pswd>
- final Hashtable jndiProperties = new Hashtable();
- jndiProperties.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");
- final Context context = new InitialContext(jndiProperties);
- [...]
- return context.lookup("ejb:" + appName + "/" + moduleName + "/" + distinctName + "/" + beanName + "!" + viewClassName);
- <dependency>
- <groupId>org.wildfly</groupId>
- <artifactId>wildfly-ejb-client-bom</artifactId>
- <version>10.1.0.Final</version>
- <type>pom</type>
- </dependency>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement