Skip to content

Commit 58c5db3

Browse files
committed
cleanup-complete
1 parent 7b6653b commit 58c5db3

File tree

1 file changed

+20
-13
lines changed
  • modules/use-cases-architectures/pages/starlight/jms

1 file changed

+20
-13
lines changed

modules/use-cases-architectures/pages/starlight/jms/index.adoc

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@
66
:page-aliases: docs@starlight-jms::pulsar-jms-quickstart-astra.adoc,starlight-jms:streaming-learning:use-cases-architectures:starlight/jms/index.adoc
77
:page-tag: starlight-jms,dev,quickstart,pulsar,jms
88

9-
Starlight for JMS is a highly compliant JMS implementation designed to run on a modern streaming platform. This guide will get you up and running with a simple Java JMS client that can talk to an Apache Pulsar™ streaming instance.
9+
Starlight for JMS is a highly compliant JMS implementation designed to run on a modern streaming platform.
10+
This guide will get you up and running with a simple Java JMS client that can talk to an Apache Pulsar™ streaming instance.
1011

11-
== Getting started
12+
== Prerequisites
1213

13-
To get started you will need a working Apache Pulsar cluster.
14-
No bells or whistles need to be added!
15-
You'll need access to the cluster's admin port 8080 and the binary port 6650. For this guide, we will use Astra Streaming to get going quickly.
14+
To get started you'll just need a working Apache Pulsar cluster, with no bells or whistles requiured!
15+
You'll need access to the cluster's admin port 8080 and the binary port 6650.
16+
For this guide, we will use Astra Streaming to get started quickly. If you want to dive deeper, xref:starlight-for-jms:ROOT:index.adoc[read the documentation].
1617

1718
[tabs]
1819
====
@@ -39,17 +40,18 @@ Using a standalone cluster? The Starlight for JMS docs provide the "xref:starlig
3940

4041
=== Retrieve connection properties in Astra Streaming
4142

42-
. While on the "Connect" tab in the Astra Streaming portal, the "pulsar" area will provide important connection information.
43+
. In the Astra Streaming portal "Connect" tab, the "Pulsar" area provides important connection information.
4344
+
4445
image:astra-streaming-connect-pulsar.png[Astra Streaming kafka settings]
4546

46-
. Scroll down and find the "Tenant Details" area to find your Pulsar connection information.
47+
. Scroll down to the "Tenant Details" area to find your Pulsar connection information.
4748
+
4849
image:pulsar-client-settings.png[]
4950

5051
=== Produce and consume a message
5152

52-
This example uses Maven as the project structure. If you prefer gradle or another, this code should still be a good fit.
53+
This example uses Maven for the project structure.
54+
If you prefer Gradle or another tool, this code should still be a good fit.
5355

5456
TIP: Visit our https://github.com/datastax/astra-streaming-examples[examples repo^]{external-link-icon} to see the complete source of this example.
5557

@@ -80,37 +82,42 @@ include::{astra-streaming-examples-repo}/java/starlight-for-jms/StarlightForJMSC
8082
+
8183
NOTE: Don't worry if your editor shows errors, this isn't a complete program... yet.
8284

83-
. Bring in the following code to build the configuration that will be used by both the producer and consumer.
85+
. Add the following code to build the configuration that will be used by both the producer and consumer.
8486
+
8587
[source,java]
8688
----
8789
include::{astra-streaming-examples-repo}/java/starlight-for-jms/StarlightForJMSClient/src/main/java/org/example/App.java[tag=build-config]
8890
----
8991

90-
. Now paste the following into the file. This is a very simple 'PulsarConnectionFactory' that first creates a jms queue using the full Pulsar topic address, then creates a message listener callback function that watches the queue. Finally, it produces a single message on the queue.
92+
. Add the following code into the file.
93+
This is a very simple 'PulsarConnectionFactory' that first creates a JMS queue using the full Pulsar topic address, then creates a message listener callback function that watches the queue.
94+
Finally, it produces a single message on the queue.
9195
+
9296
[source,java]
9397
----
9498
include::{astra-streaming-examples-repo}/java/starlight-for-jms/StarlightForJMSClient/src/main/java/org/example/App.java[tag=build-factory]
9599
----
96100

97-
. Now you should have a complete program. Let's see it in action! Build and run the jar with the following terminal commands.
101+
. You now have a complete program, so let's see it in action! Build and run the jar with the following terminal commands.
98102
+
99103
[source,shell]
100104
----
101105
mvn clean package assembly:single
102106
java -jar target/StarlightForJMSClient-1.0-SNAPSHOT-jar-with-dependencies.jar
103107
----
104108

105-
. If all goes as it should your output will be similar to this:
109+
. If all goes as it should, your output will be similar to this:
106110
+
107111
[source,shell]
108112
----
109113
Sending: Hello there!
110114
Received: Hello there!
111115
----
112116

113-
See how easy that was! You're already an app modernization ninja. Let's continue building those skills with a few other guides.
117+
See how easy that was? You're already an app modernization ninja! +
118+
Keep building those skills with the guides in the next section.
119+
120+
== What's next?
114121

115122
* xref:starlight-for-jms:examples:pulsar-jms-implementation.adoc[]
116123
* xref:starlight-for-jms:reference:pulsar-jms-mappings.adoc[]

0 commit comments

Comments
 (0)