@Produces@Identifier("my-named-options")publicRabbitMQOptionsgetNamedOptions(){// You can use the produced options to configure the TLS connectionPemKeyCertOptionskeycert=newPemKeyCertOptions().addCertPath("./tls/tls.crt").addKeyPath("./tls/tls.key");PemTrustOptionstrust=newPemTrustOptions().addCertPath("./tlc/ca.crt");return(RabbitMQOptions)newRabbitMQOptions().setUser("admin").setPassword("test").setSsl(true).setPemKeyCertOptions(keycert).setPemTrustOptions(trust).setHostnameVerificationAlgorithm("").setConnectTimeout(30000).setReconnectInterval(5000);}
This instance is retrieved and used to configure the client used by the
connector. You need to indicate the name of the client using the
client-options-name attribute: