2 Replies Latest reply on Feb 7, 2018 2:50 PM by Alexander Rotbart

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

    Alexander Rotbart Newbie

      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