{"action":"created","comment":{"url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/pulls/comments/214568243","pull_request_review_id":151650682,"id":214568243,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNDU2ODI0Mw==","diff_hunk":"@@ -0,0 +1,124 @@\n+// Copyright (c) 2018 WSO2 Inc. (http://www.wso2.org) All Rights Reserved.\n+//\n+// WSO2 Inc. licenses this file to you under the Apache License,\n+// Version 2.0 (the \"License\"); you may not use this file except\n+// in compliance with the License.\n+// You may obtain a copy of the License at\n+//\n+// http://www.apache.org/licenses/LICENSE-2.0\n+//\n+// Unless required by applicable law or agreed to in writing,\n+// software distributed under the License is distributed on an\n+// \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n+// KIND, either express or implied. See the License for the\n+// specific language governing permissions and limitations\n+// under the License.\n+\n+import ballerina/log;\n+import ballerina/http;\n+import ballerina/jms;\n+import ballerinax/docker;\n+\n+// Type definition for a order\n+type Order record {\n+    string customerID;\n+    string productID;\n+    string quantity;\n+    string orderType;\n+};\n+\n+// Initialize a JMS connection with the provider\n+// 'providerUrl' and 'initialContextFactory' vary based on the JMS provider you use\n+// 'Apache ActiveMQ' has been used as the message broker in this example\n+jms:Connection jmsConnection = new({\n+        initialContextFactory: \"org.apache.activemq.jndi.ActiveMQInitialContextFactory\",\n+        providerUrl: \"tcp://localhost:61616\"\n+    });\n+\n+// Initialize a JMS session on top of the created connection\n+jms:Session jmsSession = new(jmsConnection, {\n+        acknowledgementMode: \"AUTO_ACKNOWLEDGE\"\n+    });\n+\n+// Initialize a queue sender using the created session\n+endpoint jms:QueueSender jmsProducer {\n+    session: jmsSession,\n+    queueName: \"Order_Queue\"\n+};\n+\n+//@docker:Config {","path":"guide/order_accepting_service/order_accepting_service.bal","position":null,"original_position":49,"commit_id":"537dca965e58721e888852c02ab34caef1c1938d","original_commit_id":"51f7ca6c12495166976b037f6e5adff8cfecf60d","user":{"login":"tdkmalan","id":13659247,"node_id":"MDQ6VXNlcjEzNjU5MjQ3","avatar_url":"https://avatars2.githubusercontent.com/u/13659247?v=4","gravatar_id":"","url":"https://api.github.com/users/tdkmalan","html_url":"https://github.com/tdkmalan","followers_url":"https://api.github.com/users/tdkmalan/followers","following_url":"https://api.github.com/users/tdkmalan/following{/other_user}","gists_url":"https://api.github.com/users/tdkmalan/gists{/gist_id}","starred_url":"https://api.github.com/users/tdkmalan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdkmalan/subscriptions","organizations_url":"https://api.github.com/users/tdkmalan/orgs","repos_url":"https://api.github.com/users/tdkmalan/repos","events_url":"https://api.github.com/users/tdkmalan/events{/privacy}","received_events_url":"https://api.github.com/users/tdkmalan/received_events","type":"User","site_admin":false},"body":"Commented code has been removed - \r\n473e5a0","created_at":"2018-09-03T03:10:32Z","updated_at":"2018-09-03T03:10:32Z","html_url":"https://github.com/ballerina-guides/messaging-with-activemq/pull/1#discussion_r214568243","pull_request_url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/pulls/comments/214568243"},"html":{"href":"https://github.com/ballerina-guides/messaging-with-activemq/pull/1#discussion_r214568243"},"pull_request":{"href":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/pulls/1"}},"in_reply_to_id":214006294},"pull_request":{"url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/pulls/1","id":207490918,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA3NDkwOTE4","html_url":"https://github.com/ballerina-guides/messaging-with-activemq/pull/1","diff_url":"https://github.com/ballerina-guides/messaging-with-activemq/pull/1.diff","patch_url":"https://github.com/ballerina-guides/messaging-with-activemq/pull/1.patch","issue_url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/issues/1","number":1,"state":"open","locked":false,"title":"messaging-with-activemq - ballerina guide","user":{"login":"tdkmalan","id":13659247,"node_id":"MDQ6VXNlcjEzNjU5MjQ3","avatar_url":"https://avatars2.githubusercontent.com/u/13659247?v=4","gravatar_id":"","url":"https://api.github.com/users/tdkmalan","html_url":"https://github.com/tdkmalan","followers_url":"https://api.github.com/users/tdkmalan/followers","following_url":"https://api.github.com/users/tdkmalan/following{/other_user}","gists_url":"https://api.github.com/users/tdkmalan/gists{/gist_id}","starred_url":"https://api.github.com/users/tdkmalan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdkmalan/subscriptions","organizations_url":"https://api.github.com/users/tdkmalan/orgs","repos_url":"https://api.github.com/users/tdkmalan/repos","events_url":"https://api.github.com/users/tdkmalan/events{/privacy}","received_events_url":"https://api.github.com/users/tdkmalan/received_events","type":"User","site_admin":false},"body":"messaging-with-ActiveMQ - ballerina guide","created_at":"2018-08-10T02:24:23Z","updated_at":"2018-09-03T03:10:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6f56f2f4334ec4911f27285411f334deeb7cf7e7","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/pulls/1/commits","review_comments_url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/pulls/1/comments","review_comment_url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/issues/1/comments","statuses_url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/statuses/537dca965e58721e888852c02ab34caef1c1938d","head":{"label":"tdkmalan:master","ref":"master","sha":"537dca965e58721e888852c02ab34caef1c1938d","user":{"login":"tdkmalan","id":13659247,"node_id":"MDQ6VXNlcjEzNjU5MjQ3","avatar_url":"https://avatars2.githubusercontent.com/u/13659247?v=4","gravatar_id":"","url":"https://api.github.com/users/tdkmalan","html_url":"https://github.com/tdkmalan","followers_url":"https://api.github.com/users/tdkmalan/followers","following_url":"https://api.github.com/users/tdkmalan/following{/other_user}","gists_url":"https://api.github.com/users/tdkmalan/gists{/gist_id}","starred_url":"https://api.github.com/users/tdkmalan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdkmalan/subscriptions","organizations_url":"https://api.github.com/users/tdkmalan/orgs","repos_url":"https://api.github.com/users/tdkmalan/repos","events_url":"https://api.github.com/users/tdkmalan/events{/privacy}","received_events_url":"https://api.github.com/users/tdkmalan/received_events","type":"User","site_admin":false},"repo":{"id":144222818,"node_id":"MDEwOlJlcG9zaXRvcnkxNDQyMjI4MTg=","name":"messaging-with-activemq","full_name":"tdkmalan/messaging-with-activemq","owner":{"login":"tdkmalan","id":13659247,"node_id":"MDQ6VXNlcjEzNjU5MjQ3","avatar_url":"https://avatars2.githubusercontent.com/u/13659247?v=4","gravatar_id":"","url":"https://api.github.com/users/tdkmalan","html_url":"https://github.com/tdkmalan","followers_url":"https://api.github.com/users/tdkmalan/followers","following_url":"https://api.github.com/users/tdkmalan/following{/other_user}","gists_url":"https://api.github.com/users/tdkmalan/gists{/gist_id}","starred_url":"https://api.github.com/users/tdkmalan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdkmalan/subscriptions","organizations_url":"https://api.github.com/users/tdkmalan/orgs","repos_url":"https://api.github.com/users/tdkmalan/repos","events_url":"https://api.github.com/users/tdkmalan/events{/privacy}","received_events_url":"https://api.github.com/users/tdkmalan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tdkmalan/messaging-with-activemq","description":null,"fork":true,"url":"https://api.github.com/repos/tdkmalan/messaging-with-activemq","forks_url":"https://api.github.com/repos/tdkmalan/messaging-with-activemq/forks","keys_url":"https://api.github.com/repos/tdkmalan/messaging-with-activemq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tdkmalan/messaging-with-activemq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tdkmalan/messaging-with-activemq/teams","hooks_url":"https://api.github.com/repos/tdkmalan/messaging-with-activemq/hooks","issue_events_url":"https://api.github.com/repos/tdkmalan/messaging-with-activemq/issues/events{/number}","events_url":"https://api.github.com/repos/tdkmalan/messaging-with-activemq/events","assignees_url":"https://api.github.com/repos/tdkmalan/messaging-with-activemq/assignees{/user}","branches_url":"https://api.github.com/repos/tdkmalan/messaging-with-activemq/branches{/branch}","tags_url":"https://api.github.com/repos/tdkmalan/messaging-with-activemq/tags","blobs_url":"https://api.github.com/repos/tdkmalan/messaging-with-activemq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tdkmalan/messaging-with-activemq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tdkmalan/messaging-with-activemq/git/refs{/sha}","trees_url":"https://api.github.com/repos/tdkmalan/messaging-with-activemq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tdkmalan/messaging-with-activemq/statuses/{sha}","languages_url":"https://api.github.com/repos/tdkmalan/messaging-with-activemq/languages","stargazers_url":"https://api.github.com/repos/tdkmalan/messaging-with-activemq/stargazers","contributors_url":"https://api.github.com/repos/tdkmalan/messaging-with-activemq/contributors","subscribers_url":"https://api.github.com/repos/tdkmalan/messaging-with-activemq/subscribers","subscription_url":"https://api.github.com/repos/tdkmalan/messaging-with-activemq/subscription","commits_url":"https://api.github.com/repos/tdkmalan/messaging-with-activemq/commits{/sha}","git_commits_url":"https://api.github.com/repos/tdkmalan/messaging-with-activemq/git/commits{/sha}","comments_url":"https://api.github.com/repos/tdkmalan/messaging-with-activemq/comments{/number}","issue_comment_url":"https://api.github.com/repos/tdkmalan/messaging-with-activemq/issues/comments{/number}","contents_url":"https://api.github.com/repos/tdkmalan/messaging-with-activemq/contents/{+path}","compare_url":"https://api.github.com/repos/tdkmalan/messaging-with-activemq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tdkmalan/messaging-with-activemq/merges","archive_url":"https://api.github.com/repos/tdkmalan/messaging-with-activemq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tdkmalan/messaging-with-activemq/downloads","issues_url":"https://api.github.com/repos/tdkmalan/messaging-with-activemq/issues{/number}","pulls_url":"https://api.github.com/repos/tdkmalan/messaging-with-activemq/pulls{/number}","milestones_url":"https://api.github.com/repos/tdkmalan/messaging-with-activemq/milestones{/number}","notifications_url":"https://api.github.com/repos/tdkmalan/messaging-with-activemq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tdkmalan/messaging-with-activemq/labels{/name}","releases_url":"https://api.github.com/repos/tdkmalan/messaging-with-activemq/releases{/id}","deployments_url":"https://api.github.com/repos/tdkmalan/messaging-with-activemq/deployments","created_at":"2018-08-10T01:46:14Z","updated_at":"2018-09-03T03:07:29Z","pushed_at":"2018-09-03T03:07:28Z","git_url":"git://github.com/tdkmalan/messaging-with-activemq.git","ssh_url":"git@github.com:tdkmalan/messaging-with-activemq.git","clone_url":"https://github.com/tdkmalan/messaging-with-activemq.git","svn_url":"https://github.com/tdkmalan/messaging-with-activemq","homepage":null,"size":1494,"stargazers_count":0,"watchers_count":0,"language":"Ballerina","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ballerina-guides:master","ref":"master","sha":"f58f67b7831df8109f9a3cbabd8e2c3a8a6985bd","user":{"login":"ballerina-guides","id":36032949,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2MDMyOTQ5","avatar_url":"https://avatars3.githubusercontent.com/u/36032949?v=4","gravatar_id":"","url":"https://api.github.com/users/ballerina-guides","html_url":"https://github.com/ballerina-guides","followers_url":"https://api.github.com/users/ballerina-guides/followers","following_url":"https://api.github.com/users/ballerina-guides/following{/other_user}","gists_url":"https://api.github.com/users/ballerina-guides/gists{/gist_id}","starred_url":"https://api.github.com/users/ballerina-guides/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ballerina-guides/subscriptions","organizations_url":"https://api.github.com/users/ballerina-guides/orgs","repos_url":"https://api.github.com/users/ballerina-guides/repos","events_url":"https://api.github.com/users/ballerina-guides/events{/privacy}","received_events_url":"https://api.github.com/users/ballerina-guides/received_events","type":"Organization","site_admin":false},"repo":{"id":144154542,"node_id":"MDEwOlJlcG9zaXRvcnkxNDQxNTQ1NDI=","name":"messaging-with-activemq","full_name":"ballerina-guides/messaging-with-activemq","owner":{"login":"ballerina-guides","id":36032949,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2MDMyOTQ5","avatar_url":"https://avatars3.githubusercontent.com/u/36032949?v=4","gravatar_id":"","url":"https://api.github.com/users/ballerina-guides","html_url":"https://github.com/ballerina-guides","followers_url":"https://api.github.com/users/ballerina-guides/followers","following_url":"https://api.github.com/users/ballerina-guides/following{/other_user}","gists_url":"https://api.github.com/users/ballerina-guides/gists{/gist_id}","starred_url":"https://api.github.com/users/ballerina-guides/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ballerina-guides/subscriptions","organizations_url":"https://api.github.com/users/ballerina-guides/orgs","repos_url":"https://api.github.com/users/ballerina-guides/repos","events_url":"https://api.github.com/users/ballerina-guides/events{/privacy}","received_events_url":"https://api.github.com/users/ballerina-guides/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ballerina-guides/messaging-with-activemq","description":null,"fork":false,"url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq","forks_url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/forks","keys_url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/teams","hooks_url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/hooks","issue_events_url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/issues/events{/number}","events_url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/events","assignees_url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/assignees{/user}","branches_url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/branches{/branch}","tags_url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/tags","blobs_url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/git/refs{/sha}","trees_url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/statuses/{sha}","languages_url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/languages","stargazers_url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/stargazers","contributors_url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/contributors","subscribers_url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/subscribers","subscription_url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/subscription","commits_url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/commits{/sha}","git_commits_url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/git/commits{/sha}","comments_url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/comments{/number}","issue_comment_url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/issues/comments{/number}","contents_url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/contents/{+path}","compare_url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/merges","archive_url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/downloads","issues_url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/issues{/number}","pulls_url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/pulls{/number}","milestones_url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/milestones{/number}","notifications_url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/labels{/name}","releases_url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/releases{/id}","deployments_url":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/deployments","created_at":"2018-08-09T13:12:49Z","updated_at":"2018-08-09T13:12:52Z","pushed_at":"2018-09-03T03:07:29Z","git_url":"git://github.com/ballerina-guides/messaging-with-activemq.git","ssh_url":"git@github.com:ballerina-guides/messaging-with-activemq.git","clone_url":"https://github.com/ballerina-guides/messaging-with-activemq.git","svn_url":"https://github.com/ballerina-guides/messaging-with-activemq","homepage":null,"size":4,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/pulls/1"},"html":{"href":"https://github.com/ballerina-guides/messaging-with-activemq/pull/1"},"issue":{"href":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/issues/1"},"comments":{"href":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/ballerina-guides/messaging-with-activemq/statuses/537dca965e58721e888852c02ab34caef1c1938d"}},"author_association":"NONE"}}
{"actor":{"display_login":"tdkmalan"}}