Skip to content

Commit

Permalink
Update package documentation with activemq.driver references
Browse files Browse the repository at this point in the history
  • Loading branch information
ayeshLK committed Jul 26, 2023
1 parent 5efae04 commit 461487d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 66 deletions.
25 changes: 3 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Currently, the following JMS API Classes are supported through this library.
The following Ballerina program sends messages to a queue named *MyQueue*.

```ballerina
import ballerinax/activemq.driver as _;
import ballerinax/java.jms;
public function main() returns error? {
Expand All @@ -50,6 +51,7 @@ public function main() returns error? {
## JMS message consumer
The following Ballerina program receives messages from a queue named *MyQueue*.
```ballerina
import ballerinax/activemq.driver as _;
import ballerinax/java.jms;
import ballerina/log;
Expand Down Expand Up @@ -78,6 +80,7 @@ Ballerina transport listener concept is covered with **service** type, hence we
implement the message listener. Following is a message listener example listening on a queue named *MyQueue*.

```ballerina
import ballerinax/activemq.driver as _;
import ballerina/log;
import ballerinax/java.jms;
Expand All @@ -102,28 +105,6 @@ service "consumer-service" on new jms:Listener(
}
```

## Adding the required dependencies

Add the required dependencies to the `Ballerina.toml` file based on the broker that you're trying to connect to.
Add the configurations below to run the given examples using `Apache ActiveMQ`.

```
[[platform.java11.dependency]]
groupId = "org.apache.activemq"
artifactId = "activemq-client"
version = "5.18.2"
[[platform.java11.dependency]]
groupId = "org.apache.geronimo.specs"
artifactId = "geronimo-j2ee-management_1.1_spec"
version = "1.0.1"
[[platform.java11.dependency]]
groupId = "org.fusesource.hawtbuf"
artifactId = "hawtbuf"
version = "1.11"
```

## Issues and projects

Issues and Projects tabs are disabled for this repository as this is part of the Ballerina Standard Library. To report bugs, request new features, start new discussions, view project boards, etc., go to the [Ballerina Standard Library parent repository](https://github.com/ballerina-platform/ballerina-standard-library).
Expand Down
25 changes: 3 additions & 22 deletions ballerina/Module.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Currently, the following JMS API Classes are supported through this module.
The following Ballerina program sends messages to a queue named *MyQueue*.

```ballerina
import ballerinax/activemq.driver as _;
import ballerinax/java.jms;
public function main() returns error? {
Expand All @@ -45,6 +46,7 @@ public function main() returns error? {
## JMS message consumer
The following Ballerina program receives messages from a queue named *MyQueue*.
```ballerina
import ballerinax/activemq.driver as _;
import ballerinax/java.jms;
import ballerina/log;
Expand Down Expand Up @@ -73,6 +75,7 @@ Ballerina transport listener concept is covered with **service** type, hence we
implement the message listener. Following is a message listener example listening on a queue named *MyQueue*.

```ballerina
import ballerinax/activemq.driver as _;
import ballerina/log;
import ballerinax/java.jms;
Expand All @@ -96,25 +99,3 @@ service "consumer-service" on new jms:Listener(
}
}
```

## Adding the required dependencies

Add the required dependencies to the `Ballerina.toml` file based on the broker that you're trying to connect to.
Add the configurations below to run the given examples using `Apache ActiveMQ`.

```
[[platform.java11.dependency]]
groupId = "org.apache.activemq"
artifactId = "activemq-client"
version = "5.18.2"
[[platform.java11.dependency]]
groupId = "org.apache.geronimo.specs"
artifactId = "geronimo-j2ee-management_1.1_spec"
version = "1.0.1"
[[platform.java11.dependency]]
groupId = "org.fusesource.hawtbuf"
artifactId = "hawtbuf"
version = "1.11"
```
25 changes: 3 additions & 22 deletions ballerina/Package.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Currently, the following JMS API Classes are supported through this package.
The following Ballerina program sends messages to a queue named *MyQueue*.

```ballerina
import ballerinax/activemq.driver as _;
import ballerinax/java.jms;
public function main() returns error? {
Expand All @@ -44,6 +45,7 @@ public function main() returns error? {
## JMS message consumer
The following Ballerina program receives messages from a queue named *MyQueue*.
```ballerina
import ballerinax/activemq.driver as _;
import ballerinax/java.jms;
import ballerina/log;
Expand Down Expand Up @@ -72,6 +74,7 @@ Ballerina transport listener concept is covered with **service** type, hence we
implement the message listener. Following is a message listener example listening on a queue named *MyQueue*.

```ballerina
import ballerinax/activemq.driver as _;
import ballerina/log;
import ballerinax/java.jms;
Expand All @@ -95,25 +98,3 @@ service "consumer-service" on new jms:Listener(
}
}
```

## Adding the required dependencies

Add the required dependencies to the `Ballerina.toml` file based on the broker that you're trying to connect to.
Add the configurations below to run the given examples using `Apache ActiveMQ`.

```
[[platform.java11.dependency]]
groupId = "org.apache.activemq"
artifactId = "activemq-client"
version = "5.18.2"
[[platform.java11.dependency]]
groupId = "org.apache.geronimo.specs"
artifactId = "geronimo-j2ee-management_1.1_spec"
version = "1.0.1"
[[platform.java11.dependency]]
groupId = "org.fusesource.hawtbuf"
artifactId = "hawtbuf"
version = "1.11"
```

0 comments on commit 461487d

Please sign in to comment.