@Produces@Identifier("my-named-options")publicAmqpClientOptionsgetNamedOptions(){// 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");returnnewAmqpClientOptions().setSsl(true).setPemKeyCertOptions(keycert).setPemTrustOptions(trust).addEnabledSaslMechanism("EXTERNAL").setHostnameVerificationAlgorithm("").setConnectTimeout(30000).setReconnectInterval(5000).setContainerId("my-container");}
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:
Both incoming and outgoing AMQP channels can be configured with a list
of capabilities to declare during sender and receiver connections with
the AMQP broker. Note that supported capability names are broker
specific.