You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2018/07/24 07:35:43 UTC

[camel] branch master updated: Camel-Nats: Updates docs

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new 495a5a0  Camel-Nats: Updates docs
495a5a0 is described below

commit 495a5a009fcf6d5e42f5f9f66510022e8d749a64
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Jul 24 09:35:26 2018 +0200

    Camel-Nats: Updates docs
---
 components/camel-nats/src/main/docs/nats-component.adoc | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/components/camel-nats/src/main/docs/nats-component.adoc b/components/camel-nats/src/main/docs/nats-component.adoc
index a3e4ebf..610cde4 100644
--- a/components/camel-nats/src/main/docs/nats-component.adoc
+++ b/components/camel-nats/src/main/docs/nats-component.adoc
@@ -129,8 +129,6 @@ The component supports 3 options, which are listed below.
 |Name |Type |Description
 
 |CamelNatsMessageTimestamp |long |The timestamp of a consumed message.
-
-|CamelNatsSubscriptionId |Integer |The subscription ID of a consumer.
 |=======================================================================
  
 *Producer example:*
@@ -140,7 +138,19 @@ The component supports 3 options, which are listed below.
 from("direct:send").to("nats://localhost:4222?topic=test");
 -----------------------------------------------------------
 
- 
+In case of using Authorization you can directly specify your credentials in the server URL
+
+[source,java]
+-----------------------------------------------------------
+from("direct:send").to("nats://username:password@localhost:4222?topic=test");
+-----------------------------------------------------------
+
+or your token
+
+[source,java]
+-----------------------------------------------------------
+from("direct:send").to("nats://token@localhost:4222?topic=test");
+-----------------------------------------------------------
 
 *Consumer example:*