Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. <subsystem xmlns="urn:jboss:domain:remoting:3.0">
  2. <endpoint/>
  3. <http-connector name="http-remoting-connector" connector-ref="default" security-realm="ApplicationRealm"/>
  4. </subsystem>
  5. [...]
  6. <subsystem xmlns="urn:jboss:domain:undertow:3.1">
  7. <buffer-cache name="default"/>
  8. <server name="default-server">
  9. <http-listener name="default" socket-binding="http" redirect-socket="https" enable-http2="true"/>
  10. [...]
  11. </subsystem>
  12. [...]
  13. <interfaces>
  14. <interface name="public">
  15. <any-address/>
  16. </interface>
  17. </interfaces>
  18. [...]
  19. <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
  20. <socket-binding name="http" interface="public" port="${jboss.http.port:8080}"/>
  21. <socket-binding name="https" port="${jboss.https.port:8443}"/>
  22. [...]
  23. </socket-binding-group>
  24.  
  25. endpoint.name=client-endpoint
  26. remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED=false
  27. remote.connections=default
  28. remote.connection.default.host=<host-ip>
  29. remote.connection.default.port=8080
  30. remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=false
  31. remote.connection.default.username=<usernmae>
  32. remote.connection.default.password=<pswd>
  33.  
  34. final Hashtable jndiProperties = new Hashtable();
  35. jndiProperties.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");
  36. final Context context = new InitialContext(jndiProperties);
  37. [...]
  38. return context.lookup("ejb:" + appName + "/" + moduleName + "/" + distinctName + "/" + beanName + "!" + viewClassName);
  39.  
  40. <dependency>
  41. <groupId>org.wildfly</groupId>
  42. <artifactId>wildfly-ejb-client-bom</artifactId>
  43. <version>10.1.0.Final</version>
  44. <type>pom</type>
  45. </dependency>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement