Skip to content

Commit

Permalink
Merge pull request #45 from ayeshLK/build-ins
Browse files Browse the repository at this point in the history
Update documentation with decoupling IBM MQ client jar from the IBM MQ package
  • Loading branch information
ayeshLK authored Jul 8, 2024
2 parents f199920 + 2c59fa1 commit 7ee4216
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 9 deletions.
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,18 @@ Import `ballerinax/ibm.ibmmq` module into your Ballerina project.
import ballerinax/ibm.ibmmq;
```

### Step 2: Instantiate a new connector
### Step 2: Add IBM MQ driver

Add `com.ibm.mq.allclient` as a platform dependency to the `Ballerina.toml`.

```toml
[[platform.java17.dependency]]
groupId = "com.ibm.mq"
artifactId = "com.ibm.mq.allclient"
version = "9.3.4.0"
```

### Step 3: Instantiate a new connector

Create an `ibmmq:QueueManager` instance by giving IBM MQ configuration.

Expand Down Expand Up @@ -92,7 +103,7 @@ ibmmq:Topic topic = check queueManager.accessTopic(
);
```

### Step 3: Invoke the connector operations
### Step 4: Invoke the connector operations

Now, utilize the available connector operations.

Expand Down Expand Up @@ -124,7 +135,7 @@ ibmmq:Message? message = check queue->get();
ibmmq:Message? message = check topic->get();
```

### Step 4: Run the Ballerina application
### Step 5: Run the Ballerina application

```Shell
bal run
Expand Down
17 changes: 14 additions & 3 deletions ballerina/Module.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,18 @@ Import `ballerinax/ibm.ibmmq` module into your Ballerina project.
import ballerinax/ibm.ibmmq;
```

### Step 2: Instantiate a new connector
### Step 2: Add IBM MQ driver

Add `com.ibm.mq.allclient` as a platform dependency to the `Ballerina.toml`.

```toml
[[platform.java17.dependency]]
groupId = "com.ibm.mq"
artifactId = "com.ibm.mq.allclient"
version = "9.3.4.0"
```

### Step 3: Instantiate a new connector

Create an `ibmmq:QueueManager` instance by giving IBM MQ configuration.

Expand Down Expand Up @@ -87,7 +98,7 @@ ibmmq:Topic topic = check queueManager.accessTopic(
);
```

### Step 3: Invoke the connector operations
### Step 4: Invoke the connector operations

Now, utilize the available connector operations.

Expand Down Expand Up @@ -119,7 +130,7 @@ ibmmq:Message? message = check queue->get();
ibmmq:Message? message = check topic->get();
```

### Step 4: Run the Ballerina application
### Step 5: Run the Ballerina application

```Shell
bal run
Expand Down
17 changes: 14 additions & 3 deletions ballerina/Package.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,18 @@ Import `ballerinax/ibm.ibmmq` module into your Ballerina project.
import ballerinax/ibm.ibmmq;
```

### Step 2: Instantiate a new connector
### Step 2: Add IBM MQ driver

Add `com.ibm.mq.allclient` as a platform dependency to the `Ballerina.toml`.

```toml
[[platform.java17.dependency]]
groupId = "com.ibm.mq"
artifactId = "com.ibm.mq.allclient"
version = "9.3.4.0"
```

### Step 3: Instantiate a new connector

Create an `ibmmq:QueueManager` instance by giving IBM MQ configuration.

Expand Down Expand Up @@ -87,7 +98,7 @@ ibmmq:Topic topic = check queueManager.accessTopic(
);
```

### Step 3: Invoke the connector operations
### Step 4: Invoke the connector operations

Now, utilize the available connector operations.

Expand Down Expand Up @@ -119,7 +130,7 @@ ibmmq:Message? message = check queue->get();
ibmmq:Message? message = check topic->get();
```

### Step 4: Run the Ballerina application
### Step 5: Run the Ballerina application

```Shell
bal run
Expand Down

0 comments on commit 7ee4216

Please sign in to comment.