You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by he...@apache.org on 2016/02/01 18:29:09 UTC

[35/50] brooklyn-docs git commit: Remove dist-like directory from simple-messaging-pubsub, restructure resources, update docs

Remove dist-like directory from simple-messaging-pubsub, restructure resources, update docs


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/commit/5a00d6b7
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/tree/5a00d6b7
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/diff/5a00d6b7

Branch: refs/heads/0.4.0
Commit: 5a00d6b785678d83cb8b89db6597b3c6db833415
Parents: 0e3b294
Author: Cosmin Dumitrache <co...@cloudsoftcorp.com>
Authored: Fri Aug 3 19:35:32 2012 +0100
Committer: Cosmin Dumitrache <co...@cloudsoftcorp.com>
Committed: Fri Aug 3 19:35:32 2012 +0100

----------------------------------------------------------------------
 docs/use/examples/messaging/index.md | 23 +++++++++++++----------
 1 file changed, 13 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-docs/blob/5a00d6b7/docs/use/examples/messaging/index.md
----------------------------------------------------------------------
diff --git a/docs/use/examples/messaging/index.md b/docs/use/examples/messaging/index.md
index cf83186..439c1fd 100644
--- a/docs/use/examples/messaging/index.md
+++ b/docs/use/examples/messaging/index.md
@@ -82,7 +82,7 @@ out the Brooklyn [repository](https://www.github.com/brooklyncentral/brooklyn)
 as follows:
 
 {% highlight bash %}
-% ${BROOKLYN_HOME}/bin/brooklyn launch --app brooklyn.demo.StandaloneBrokerExample --location localhost
+% ${BROOKLYN_HOME}/bin/brooklyn -v launch --app brooklyn.demo.StandaloneBrokerExample --location localhost
 {% endhighlight %}
 
 Now, visit the the Brooklyn web console on port 8081 using credentials
@@ -102,9 +102,12 @@ which was created at startup. The queue entity has sensors that
 monitor the depth of unread messages, which you can check while
 running the test client scripts later.
 
-Also visible in this output is the broker URL, which is used to
-configure JMS clients to connect to this broker. This URL can also
-be viewed as a sensor attribute in the web console, named _broker.url_.
+If the ``-v`` flag is passed to the startup command, all configured
+entity and sensor details will be output. This includes the broker URL,
+which is used to configure JMS clients to connect to this broker.
+This URL can also be viewed as a sensor attribute in the web console,
+named _broker.url_.
+
 This sensor is common to _all_ messaging brokers that Brooklyn
 provides, and is usually accessed by applications to allow them to
 provide it as a parameter to other entities, as shown in the code
@@ -114,17 +117,17 @@ fragment below.
 String url = broker.getAttribute(MessageBroker.BROKER_URL)
 {% endhighlight %}
 
-Using the URL the demo script printed, you can run the test ``Publish``
-and ``Subscribe`` classes, to send messages using the broker. Simply
-run the scripts in another window, with the provided URL as the
+Using the URL the demo script printed, you can run the test ``Subscribe``
+and then ``Publish`` classes, to send messages using the broker. Simply
+run the commands in another window, with the provided URL as the
 only argument. Note that the URLs may be different to those printed
 below, and that any unquoted ``&`` characters *must* be escaped,
 if present.
 
 {% highlight bash %}
-% cd ${BROOKLYN_EXAMPLES_DIR}/simple-messaging-pubsub/brooklyn-example-simple-messaging-pubsub/bin
-% ./publish.sh "amqp://guest:guest@/localhost?brokerlist='tcp://localhost:5672'"
-% ./subscribe.sh "amqp://guest:guest@/localhost?brokerlist='tcp://localhost:5672'"
+% URL="amqp://guest:guest@/localhost?brokerlist='tcp://localhost:5672'"
+% java -cp "./resources/lib/*:./target/classes" brooklyn.demo.Subscribe ${URL}
+% java -cp "./resources/lib/*:./target/classes" brooklyn.demo.Publish ${URL}
 {% endhighlight %}
 
 In the _Publish_ window you should see a log message every time a