5 Replies Latest reply on Feb 22, 2018 8:57 AM by arotbart

    JBoss EAP 7.1 - How to load EJB properties in Java?

    arotbart

      All,

      In EAP 6.4 we loaded EJB properties from java :

       

      Properties clientProp = new Properties();

      ...

      set values for the following properties :

      remote.connection.default<id>.host

      remote.connection.default<id>.port

      remote.connection.default<id>.username

      remote.connection.default<id>.password

      remote.connection.default<id>.connect.timeout

      remote.connection.default<id>.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS

      remote.connection.default<id>.connect.options.org.xnio.Options.SASL_DISALLOWED_MECHANISMS

      remote.connection.default<id>.connect.options.org.xnio.Options.SASL_POLICY_NOPLAINTEXT

      ...

      and then:

      EJBClientConfiguration cc = new PropertiesBasedEJBClientConfiguration(clientProp);

      ContextSelector<EJBClientContext> selector = new ConfigBasedEJBClientContextSelector(cc);

      EJBClientContext.setSelector(selector);

       

      We Upgrade to EAP 7.1, classes (EJBClientConfiguration,ContextSelector) are not available . I cannot find the way to set up those properties in Java!

      According to

      https://docs.jboss.org/author/display/WFLY/WildFly+Client+Configuration#WildFlyClientConfiguration-%3Cworker%2F%3EXNIOClient

      http://docs.wildfly.org/Client_Guide.html#xnio-client-configuration

      Programatic APIs are also available for many of the options however this document is focusing on the configuration available within the common wildfly-config.xml configuration file

      But I could not find any documentation about setting those properties with API.

      Could someone provide me the way to set properties in Java using JBoss API?

      Thanks