{"id":4652,"date":"2015-01-16T08:02:56","date_gmt":"2015-01-16T13:02:56","guid":{"rendered":"http:\/\/appcrawler.com\/wordpress\/?p=4652"},"modified":"2015-01-16T08:02:56","modified_gmt":"2015-01-16T13:02:56","slug":"weblogic-simple-queue-publish-and-subscribe","status":"publish","type":"post","link":"http:\/\/appcrawler.com\/wordpress\/2015\/01\/16\/weblogic-simple-queue-publish-and-subscribe\/","title":{"rendered":"Weblogic simple Queue publish and subscribe"},"content":{"rendered":"<p>This is a total rip from the <a href=\"https:\/\/blogs.oracle.com\/soaproactive\/entry\/how_to_create_a_simple\" target=_blank>oracle site<\/a>, but sometimes other sites content changes.  As such, I wanted to post it here after I worked through it and enhanced it a bit.<\/p>\n<p>I created the queue using the admin console and the instructions, changing only the file store to a directory location rather than in memory.  In the real world, you would use either a file or a database location to store persistent messages in either a queue or a topic.<\/p>\n<p>We start by posting a message to the queue&#8230;<\/p>\n<pre>\r\n[sa-weblogic@cmhldecomadm01 ~]$ java QueueSend t3:\/\/172.28.37.110:7001\r\nEnter message (\"quit\" to quit):\r\nhere comes another'n\r\nJMS Message Sent: here comes another'n\r\n\r\nEnter message (\"quit\" to quit):\r\nquit\r\nJMS Message Sent: quit\r\n<\/pre>\n<p>&#8230;then show the current content in the queue.  Notice the one current message&#8230;<\/p>\n<p><img alt='' class='alignnone size-full wp-image-4654 ' src='http:\/\/appcrawler.com\/wordpress\/wp-content\/uploads\/2015\/01\/img_54b90a96a9569.png' \/><\/p>\n<p>&#8230;then we show the message in the binary queue file&#8230;<\/p>\n<pre>\r\n[sa-weblogic@cmhldecomadm01 ~]$ strings -a \/tmp\/TESTFILESTORE000000.DAT | grep another\r\nhere comes another'n\r\n<\/pre>\n<p>&#8230;then consume the message in the queue&#8230;<\/p>\n<pre>\r\n[sa-weblogic@cmhldecomadm01 ~]$ java QueueReceive t3:\/\/172.28.37.110:7001\r\nJMS Ready To Receive Messages (To quit, send a \"quit\" message).\r\nMessage Received: here comes another'n\r\nMessage Received: quit\r\n<\/pre>\n<p>&#8230;and finally, show the message is no longer in the queue through the UI&#8230;<\/p>\n<p><img alt='' class='alignnone size-full wp-image-4655 ' src='http:\/\/appcrawler.com\/wordpress\/wp-content\/uploads\/2015\/01\/img_54b90b0ea81be.png' \/><\/p>\n<p>&#8230;and looking at the binary queue file itself&#8230;<\/p>\n<pre>\r\n[sa-weblogic@cmhldecomadm01 ~]$ strings -a \/tmp\/TESTFILESTORE000000.DAT | grep another\r\n[sa-weblogic@cmhldecomadm01 ~]$\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This is a total rip from the oracle site, but sometimes other sites content changes. As such, I wanted to post it here after I worked through it and enhanced it a bit. I created the queue using the admin&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"http:\/\/appcrawler.com\/wordpress\/2015\/01\/16\/weblogic-simple-queue-publish-and-subscribe\/\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"footnotes":""},"categories":[48,52],"tags":[],"_links":{"self":[{"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/posts\/4652"}],"collection":[{"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/comments?post=4652"}],"version-history":[{"count":2,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/posts\/4652\/revisions"}],"predecessor-version":[{"id":4657,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/posts\/4652\/revisions\/4657"}],"wp:attachment":[{"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/media?parent=4652"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/categories?post=4652"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/tags?post=4652"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}