{"action":"created","comment":{"url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/pulls/comments/214732138","pull_request_review_id":151847034,"id":214732138,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNDczMjEzOA==","diff_hunk":"@@ -0,0 +1,241 @@\n+import ballerina/log;\n+import ballerina/http;\n+import ballerina/jms;\n+\n+//Deploying on kubernetes\n+\n+//import ballerinax/kubernetes;\n+// Other imports\n+\n+// Type definition for a phone order\n+\n+//json[] phoneInventory = [\"Apple:190000\", \"Samsung:150000\", \"Nokia:80000\", \"HTC:40000\", \"Huawei:100000\"];\n+\n+// 'jms:Connection' definition\n+\n+// 'jms:Session' definition\n+\n+// 'jms:QueueSender' endpoint definition\n+\n+//@kubernetes:Ingress {\n+//hostname:\"ballerina.guides.io\",\n+//name:\"ballerina-guides-phone_store_service\",\n+//path:\"/\"\n+//}\n+\n+//@kubernetes:Service {\n+//serviceType:\"NodePort\",\n+//name:\"ballerina-guides-phone_store_service\"\n+//}\n+\n+//@kubernetes:Deployment {\n+//image:\"ballerina.guides.io/phone_store_service:v1.0\",\n+//name:\"ballerina-guides-phone_store_service\"\n+//}\n+\n+//endpoint http:Listener listener {\n+//port:9090\n+//};\n+\n+//@http:ServiceConfig {basePath:\"/phonestore\"}\n+//service<http:Service> phone_store_service bind listener {\n+\n+//Deploying on docker\n+\n+// import ballerinax/docker;\n+// Other imports\n+\n+// Type definition for a phone order\n+\n+//json[] phoneInventory = [\"Apple:190000\", \"Samsung:150000\", \"Nokia:80000\", \"HTC:40000\", \"Huawei:100000\"];\n+\n+// 'jms:Connection' definition\n+\n+// 'jms:Session' definition\n+\n+// 'jms:QueueSender' endpoint definition\n+\n+//@docker:Config {\n+//registry:\"ballerina.guides.io\",\n+//name:\"phone_store_service\",\n+//tag:\"v1.0\"\n+//}\n+\n+// Service endpoint\n+//@docker:Expose{}\n+//endpoint http:Listener listener {\n+//port:9090\n+//};\n+\n+// phone store service, which allows users to order phones online for delivery\n+//@http:ServiceConfig {basePath:\"/phonestore\"}\n+//service<http:Service> phone_store_service bind listener {\n+\n+public http:Request backendreq;\n+\n+// Type definition for a phone order\n+type phoneOrder record {\n+    string customerName;\n+    string address;\n+    string contactNumber;\n+    string orderedPhoneName;\n+};\n+\n+// Global variable containing all the available phones\n+json[] phoneInventory = [\"Apple:190000\", \"Samsung:150000\", \"Nokia:80000\", \"HTC:40000\", \"Huawei:100000\"];\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:\"OrderQueue\"\n+};\n+\n+// Service endpoint\n+endpoint http:Listener listener {\n+    port:9090\n+};\n+\n+// phone store service, which allows users to order phones online for delivery\n+@http:ServiceConfig {basePath:\"/phonestore\"}\n+service<http:Service> phone_store_service bind listener {","path":"guide/phone_store/phone_store_service.bal","position":null,"original_position":113,"commit_id":"45c015ffd72fe10456cb1b9c08782a59682564fa","original_commit_id":"229e7518cb6a383aca006d1a9f7f5914034f1110","user":{"login":"SavithriNandadasa","id":13152854,"node_id":"MDQ6VXNlcjEzMTUyODU0","avatar_url":"https://avatars2.githubusercontent.com/u/13152854?v=4","gravatar_id":"","url":"https://api.github.com/users/SavithriNandadasa","html_url":"https://github.com/SavithriNandadasa","followers_url":"https://api.github.com/users/SavithriNandadasa/followers","following_url":"https://api.github.com/users/SavithriNandadasa/following{/other_user}","gists_url":"https://api.github.com/users/SavithriNandadasa/gists{/gist_id}","starred_url":"https://api.github.com/users/SavithriNandadasa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SavithriNandadasa/subscriptions","organizations_url":"https://api.github.com/users/SavithriNandadasa/orgs","repos_url":"https://api.github.com/users/SavithriNandadasa/repos","events_url":"https://api.github.com/users/SavithriNandadasa/events{/privacy}","received_events_url":"https://api.github.com/users/SavithriNandadasa/received_events","type":"User","site_admin":false},"body":"done","created_at":"2018-09-03T16:26:15Z","updated_at":"2018-09-03T16:26:15Z","html_url":"https://github.com/ballerina-guides/eip-message-construction/pull/1#discussion_r214732138","pull_request_url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/ballerina-guides/eip-message-construction/pulls/comments/214732138"},"html":{"href":"https://github.com/ballerina-guides/eip-message-construction/pull/1#discussion_r214732138"},"pull_request":{"href":"https://api.github.com/repos/ballerina-guides/eip-message-construction/pulls/1"}},"in_reply_to_id":211522718},"pull_request":{"url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/pulls/1","id":207389268,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA3Mzg5MjY4","html_url":"https://github.com/ballerina-guides/eip-message-construction/pull/1","diff_url":"https://github.com/ballerina-guides/eip-message-construction/pull/1.diff","patch_url":"https://github.com/ballerina-guides/eip-message-construction/pull/1.patch","issue_url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/issues/1","number":1,"state":"open","locked":false,"title":"PR for eip-message-construction ","user":{"login":"SavithriNandadasa","id":13152854,"node_id":"MDQ6VXNlcjEzMTUyODU0","avatar_url":"https://avatars2.githubusercontent.com/u/13152854?v=4","gravatar_id":"","url":"https://api.github.com/users/SavithriNandadasa","html_url":"https://github.com/SavithriNandadasa","followers_url":"https://api.github.com/users/SavithriNandadasa/followers","following_url":"https://api.github.com/users/SavithriNandadasa/following{/other_user}","gists_url":"https://api.github.com/users/SavithriNandadasa/gists{/gist_id}","starred_url":"https://api.github.com/users/SavithriNandadasa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SavithriNandadasa/subscriptions","organizations_url":"https://api.github.com/users/SavithriNandadasa/orgs","repos_url":"https://api.github.com/users/SavithriNandadasa/repos","events_url":"https://api.github.com/users/SavithriNandadasa/events{/privacy}","received_events_url":"https://api.github.com/users/SavithriNandadasa/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-08-09T17:30:48Z","updated_at":"2018-09-03T16:26:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8c68521b1bdcb2cc6348d73e3a7f3bfea4050ed9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/pulls/1/commits","review_comments_url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/pulls/1/comments","review_comment_url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/issues/1/comments","statuses_url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/statuses/45c015ffd72fe10456cb1b9c08782a59682564fa","head":{"label":"SavithriNandadasa:master","ref":"master","sha":"45c015ffd72fe10456cb1b9c08782a59682564fa","user":{"login":"SavithriNandadasa","id":13152854,"node_id":"MDQ6VXNlcjEzMTUyODU0","avatar_url":"https://avatars2.githubusercontent.com/u/13152854?v=4","gravatar_id":"","url":"https://api.github.com/users/SavithriNandadasa","html_url":"https://github.com/SavithriNandadasa","followers_url":"https://api.github.com/users/SavithriNandadasa/followers","following_url":"https://api.github.com/users/SavithriNandadasa/following{/other_user}","gists_url":"https://api.github.com/users/SavithriNandadasa/gists{/gist_id}","starred_url":"https://api.github.com/users/SavithriNandadasa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SavithriNandadasa/subscriptions","organizations_url":"https://api.github.com/users/SavithriNandadasa/orgs","repos_url":"https://api.github.com/users/SavithriNandadasa/repos","events_url":"https://api.github.com/users/SavithriNandadasa/events{/privacy}","received_events_url":"https://api.github.com/users/SavithriNandadasa/received_events","type":"User","site_admin":false},"repo":{"id":144182930,"node_id":"MDEwOlJlcG9zaXRvcnkxNDQxODI5MzA=","name":"eip-message-construction","full_name":"SavithriNandadasa/eip-message-construction","owner":{"login":"SavithriNandadasa","id":13152854,"node_id":"MDQ6VXNlcjEzMTUyODU0","avatar_url":"https://avatars2.githubusercontent.com/u/13152854?v=4","gravatar_id":"","url":"https://api.github.com/users/SavithriNandadasa","html_url":"https://github.com/SavithriNandadasa","followers_url":"https://api.github.com/users/SavithriNandadasa/followers","following_url":"https://api.github.com/users/SavithriNandadasa/following{/other_user}","gists_url":"https://api.github.com/users/SavithriNandadasa/gists{/gist_id}","starred_url":"https://api.github.com/users/SavithriNandadasa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SavithriNandadasa/subscriptions","organizations_url":"https://api.github.com/users/SavithriNandadasa/orgs","repos_url":"https://api.github.com/users/SavithriNandadasa/repos","events_url":"https://api.github.com/users/SavithriNandadasa/events{/privacy}","received_events_url":"https://api.github.com/users/SavithriNandadasa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SavithriNandadasa/eip-message-construction","description":null,"fork":true,"url":"https://api.github.com/repos/SavithriNandadasa/eip-message-construction","forks_url":"https://api.github.com/repos/SavithriNandadasa/eip-message-construction/forks","keys_url":"https://api.github.com/repos/SavithriNandadasa/eip-message-construction/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SavithriNandadasa/eip-message-construction/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SavithriNandadasa/eip-message-construction/teams","hooks_url":"https://api.github.com/repos/SavithriNandadasa/eip-message-construction/hooks","issue_events_url":"https://api.github.com/repos/SavithriNandadasa/eip-message-construction/issues/events{/number}","events_url":"https://api.github.com/repos/SavithriNandadasa/eip-message-construction/events","assignees_url":"https://api.github.com/repos/SavithriNandadasa/eip-message-construction/assignees{/user}","branches_url":"https://api.github.com/repos/SavithriNandadasa/eip-message-construction/branches{/branch}","tags_url":"https://api.github.com/repos/SavithriNandadasa/eip-message-construction/tags","blobs_url":"https://api.github.com/repos/SavithriNandadasa/eip-message-construction/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SavithriNandadasa/eip-message-construction/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SavithriNandadasa/eip-message-construction/git/refs{/sha}","trees_url":"https://api.github.com/repos/SavithriNandadasa/eip-message-construction/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SavithriNandadasa/eip-message-construction/statuses/{sha}","languages_url":"https://api.github.com/repos/SavithriNandadasa/eip-message-construction/languages","stargazers_url":"https://api.github.com/repos/SavithriNandadasa/eip-message-construction/stargazers","contributors_url":"https://api.github.com/repos/SavithriNandadasa/eip-message-construction/contributors","subscribers_url":"https://api.github.com/repos/SavithriNandadasa/eip-message-construction/subscribers","subscription_url":"https://api.github.com/repos/SavithriNandadasa/eip-message-construction/subscription","commits_url":"https://api.github.com/repos/SavithriNandadasa/eip-message-construction/commits{/sha}","git_commits_url":"https://api.github.com/repos/SavithriNandadasa/eip-message-construction/git/commits{/sha}","comments_url":"https://api.github.com/repos/SavithriNandadasa/eip-message-construction/comments{/number}","issue_comment_url":"https://api.github.com/repos/SavithriNandadasa/eip-message-construction/issues/comments{/number}","contents_url":"https://api.github.com/repos/SavithriNandadasa/eip-message-construction/contents/{+path}","compare_url":"https://api.github.com/repos/SavithriNandadasa/eip-message-construction/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SavithriNandadasa/eip-message-construction/merges","archive_url":"https://api.github.com/repos/SavithriNandadasa/eip-message-construction/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SavithriNandadasa/eip-message-construction/downloads","issues_url":"https://api.github.com/repos/SavithriNandadasa/eip-message-construction/issues{/number}","pulls_url":"https://api.github.com/repos/SavithriNandadasa/eip-message-construction/pulls{/number}","milestones_url":"https://api.github.com/repos/SavithriNandadasa/eip-message-construction/milestones{/number}","notifications_url":"https://api.github.com/repos/SavithriNandadasa/eip-message-construction/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SavithriNandadasa/eip-message-construction/labels{/name}","releases_url":"https://api.github.com/repos/SavithriNandadasa/eip-message-construction/releases{/id}","deployments_url":"https://api.github.com/repos/SavithriNandadasa/eip-message-construction/deployments","created_at":"2018-08-09T17:19:28Z","updated_at":"2018-09-03T16:15:49Z","pushed_at":"2018-09-03T16:15:47Z","git_url":"git://github.com/SavithriNandadasa/eip-message-construction.git","ssh_url":"git@github.com:SavithriNandadasa/eip-message-construction.git","clone_url":"https://github.com/SavithriNandadasa/eip-message-construction.git","svn_url":"https://github.com/SavithriNandadasa/eip-message-construction","homepage":null,"size":168,"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":"e24f537f4e4011cfdd83387b6fecae7f7388241a","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":144087838,"node_id":"MDEwOlJlcG9zaXRvcnkxNDQwODc4Mzg=","name":"eip-message-construction","full_name":"ballerina-guides/eip-message-construction","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/eip-message-construction","description":null,"fork":false,"url":"https://api.github.com/repos/ballerina-guides/eip-message-construction","forks_url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/forks","keys_url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/teams","hooks_url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/hooks","issue_events_url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/issues/events{/number}","events_url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/events","assignees_url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/assignees{/user}","branches_url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/branches{/branch}","tags_url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/tags","blobs_url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/git/refs{/sha}","trees_url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/statuses/{sha}","languages_url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/languages","stargazers_url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/stargazers","contributors_url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/contributors","subscribers_url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/subscribers","subscription_url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/subscription","commits_url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/commits{/sha}","git_commits_url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/git/commits{/sha}","comments_url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/comments{/number}","issue_comment_url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/issues/comments{/number}","contents_url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/contents/{+path}","compare_url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/merges","archive_url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/downloads","issues_url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/issues{/number}","pulls_url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/pulls{/number}","milestones_url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/milestones{/number}","notifications_url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/labels{/name}","releases_url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/releases{/id}","deployments_url":"https://api.github.com/repos/ballerina-guides/eip-message-construction/deployments","created_at":"2018-08-09T01:49:32Z","updated_at":"2018-08-09T01:49:34Z","pushed_at":"2018-09-03T16:15:49Z","git_url":"git://github.com/ballerina-guides/eip-message-construction.git","ssh_url":"git@github.com:ballerina-guides/eip-message-construction.git","clone_url":"https://github.com/ballerina-guides/eip-message-construction.git","svn_url":"https://github.com/ballerina-guides/eip-message-construction","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/eip-message-construction/pulls/1"},"html":{"href":"https://github.com/ballerina-guides/eip-message-construction/pull/1"},"issue":{"href":"https://api.github.com/repos/ballerina-guides/eip-message-construction/issues/1"},"comments":{"href":"https://api.github.com/repos/ballerina-guides/eip-message-construction/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/ballerina-guides/eip-message-construction/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/ballerina-guides/eip-message-construction/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ballerina-guides/eip-message-construction/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/ballerina-guides/eip-message-construction/statuses/45c015ffd72fe10456cb1b9c08782a59682564fa"}},"author_association":"NONE"}}
{"actor":{"display_login":"SavithriNandadasa"}}