You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@activemq.apache.org by GitBox <gi...@apache.org> on 2022/04/07 18:09:02 UTC

[GitHub] [activemq-artemis] waldi5001 commented on a diff in pull request #3999: ARTEMIS-3707 ResourceAdapter improvements

waldi5001 commented on code in PR #3999:
URL: https://github.com/apache/activemq-artemis/pull/3999#discussion_r845434539


##########
docs/user-manual/en/resource-adapter.md:
##########
@@ -0,0 +1,130 @@
+# Resource Adapter
+
+For using Apache ActiveMQ Artemis in a JavaEE/JakartaEE environment, you can use the ResourceAdapter. Before you 
+start, read carefully the [JMS chapter](using-jms.md) 
+
+##In which case do you have to use a RA and in which not?
+The main reason is the requirement of 
+[XA](https://jakarta.ee/specifications/transactions/2.0/jakarta-transactions-spec-2.0.html), distributed 
+transactions over multiple resources. If it is important for you no message get lost and multiple resources (e.g. 
+database and messaging) must be in sync, there is no way around it.
+
+##Versions
+let's give you a short overview of the versions, to be sure you pick the correct *.rar.
+
+| | artemis-ra-rar   |     |     |
+| --------- | ------ | --- | --- |
+| Artemis   | JavaEE | JCA | JMS |
+| \>= 2.18.0 | \>=8      | 1.7 | 2.0 |
+| <= 2.17.0 | 7      | 1.5 | 2.0 |
+
+| | artemis-jakarta-ra-rar | | |
+| --- | ------- | --- | --- |
+| Artemis | JavaEE | JCA | JMS |
+| \>= 2.18.0 | \>=9 | 2.0 | 3.0 |
+
+## Lets start
+To use the RA, you have to build it by your own. This sounds harder than it is. But no worries, an 
+[examples](examples.md) 
+is shipped with the distribution.
+
+* [install maven](https://maven.apache.org/install.html)
+
+```shell
+cd examples/features/sub-modules/{artemis-jakarta-ra-rar,artemis-ra-rar}
+mvn clean install
+cd target
+mv artemis*.rar artemis.rar
+```
+Now you can see the artemis.rar, and you are good to go. Follow the manual of your application server, to install the
+ResourceAdapter.
+
+## Details about the Resource Adapter configuration
+
+Before you start with the configuration you have to know two basics: The configuration is split into two 
+parts. First, the config to send messages to an address (outbound), and second, the config to get messages consumed 
+from a destination (inbound). Each can be configured separately, or use both the ResourceAdapter settings.
+
+Here are a few options listed. If you want an overview of all configuration options, consider
+[ConnectionFactoryProperties](https://github.com/apache/activemq-artemis/blob/main/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ConnectionFactoryProperties.java)

Review Comment:
   of all your comments, this hurts the most :D In my opinion, link the src, is the best you could do, because the docu can't be outdated. With two mouseclicks you can select the tag version of the readers version and you are fine. Is link the src a no go for you? Or is it ok for you to add a hint, to select the right version of the src file?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org