{"id":202,"date":"2016-07-19T18:53:17","date_gmt":"2016-07-19T23:53:17","guid":{"rendered":"http:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/?page_id=202"},"modified":"2016-11-08T08:05:09","modified_gmt":"2016-11-08T13:05:09","slug":"crear-el-topicconnectionfactory-y-el-topic","status":"publish","type":"page","link":"https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/laboratorios\/laboratorio-6-beans-de-mensajeria\/reto\/crear-el-topicconnectionfactory-y-el-topic\/","title":{"rendered":"Crear el TopicConnectionFactory y el Topic"},"content":{"rendered":"<h2>Crear el TopicConnectionFactory<\/h2>\n<p>1. Sobre el proyecto EJB haga click con el bot\u00f3n derecho del mouse, seleccione New\u2192Others y en la lista de categor\u00edas seleccione Glassfish, en la parte derecha (File Types) seleccione <em>JMS Resource<\/em>.<\/p>\n<p><a href=\"http:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-203 size-full\" src=\"http:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen2.png\" alt=\"screen2\" width=\"600\" height=\"414\" srcset=\"https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen2.png 600w, https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen2-300x207.png 300w, https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen2-435x300.png 435w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a> <a href=\"http:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-204 size-full\" src=\"http:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen1.png\" alt=\"screen1\" width=\"569\" height=\"622\" srcset=\"https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen1.png 569w, https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen1-274x300.png 274w\" sizes=\"auto, (max-width: 569px) 100vw, 569px\" \/><\/a><\/p>\n<p>2. En la ventana de <em>New JMS Resource<\/em> ingrese los valores que se muestran en la siguiente imagen para crear un objeto administrado. Dicho objeto corresponde a una f\u00e1brica de conexiones llamada <em>cambioDeCargoTopicFactory<\/em>:<\/p>\n<p><a href=\"http:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-205 size-full\" src=\"http:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen3.png\" alt=\"screen3\" width=\"600\" height=\"352\" srcset=\"https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen3.png 600w, https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen3-300x176.png 300w, https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen3-500x293.png 500w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>3. Presione el bot\u00f3n <em>Terminar<\/em>.<\/p>\n<p>Cuando termine de realizar este paso en el proyecto EJB de la aplicaci\u00f3n empresarial aparecer\u00e1 en la carpeta <em>Server Resources<\/em> un archivo llamado <em>sun-resources.xml<\/em>, este archivo contiene las definiciones de los recursos que ser\u00e1n creados en el contenedor en el momento de desplegar la aplicaci\u00f3n. Tenga en cuenta que esta definici\u00f3n es espec\u00edfica para cada servidor de aplicaciones.<\/p>\n<p><strong>NOTA:<\/strong> el nombre del <em>connector-connection-pool<\/em> y el nombre del <em>connection-resource<\/em> deben ser iguales, por lo tanto modifique el archivo <em>sun-resources.xml<\/em> para que quede <em>jms\/cambioDeCargoTopicFactory<\/em><\/p>\n<p><a href=\"http:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen3.1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-206 size-full\" src=\"http:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen3.1.png\" alt=\"screen3.1\" width=\"600\" height=\"333\" srcset=\"https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen3.1.png 600w, https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen3.1-300x167.png 300w, https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen3.1-500x278.png 500w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<h2>Crear el Topic<\/h2>\n<p>1. Sobre el proyecto EJB haga click con el bot\u00f3n derecho del mouse, seleccione New\u2192Others y en la lista de categor\u00edas seleccione Glassfish, en la parte derecha (File Types) seleccione <em>JMS Resource<\/em>.<\/p>\n<p>2. En la ventana de <em>New JMS Resource<\/em> ingrese los valores que se muestra en la siguiente imagen para crear un objeto administrado. Dicho objeto corresponde a un Topic llamado <em>cambioDeCargoTopic<\/em>:<\/p>\n<p><a href=\"http:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-214 size-full\" src=\"http:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen4.png\" alt=\"screen4\" width=\"600\" height=\"413\" srcset=\"https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen4.png 600w, https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen4-300x207.png 300w, https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen4-436x300.png 436w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>3. Modifique el nombre del atributo por <em>PhysicalTopic<\/em>.<\/p>\n<p><a href=\"http:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen5_a.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-213 size-full\" src=\"http:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen5_a.png\" alt=\"screen5_a\" width=\"600\" height=\"353\" srcset=\"https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen5_a.png 600w, https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen5_a-300x177.png 300w, https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen5_a-500x294.png 500w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>4. Elimine el espacio en blanco y presione <em>Finish<\/em>.<\/p>\n<p>Verifique en el archivo<em> sun-resources.xml<\/em> que se ha registrado el t\u00f3pico. La informaci\u00f3n consignada all\u00ed debe lucir como la siguiente imagen:<\/p>\n<p><a href=\"http:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-212 size-full\" src=\"http:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen6.png\" alt=\"screen6\" width=\"600\" height=\"154\" srcset=\"https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen6.png 600w, https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen6-300x77.png 300w, https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen6-500x128.png 500w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<h2>Verificar el despliegue en el servidor<\/h2>\n<p>1. Haga despliegue de la aplicaci\u00f3n empresarial en el servidor.<\/p>\n<p>2. En la pesta\u00f1a de servicios haga click derecho sobre el servidor y seleccione la opci\u00f3n <em>View Admin Console<\/em>.<\/p>\n<p><a href=\"http:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-211\" src=\"http:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen7.png\" alt=\"screen7\" width=\"413\" height=\"448\" srcset=\"https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen7.png 413w, https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen7-277x300.png 277w\" sizes=\"auto, (max-width: 413px) 100vw, 413px\" \/><\/a><\/p>\n<p>3. Seleccione Recursos\u2192Recursos JMS<\/p>\n<p><a href=\"http:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-210 size-full\" src=\"http:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen8.png\" alt=\"screen8\" width=\"600\" height=\"277\" srcset=\"https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen8.png 600w, https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen8-300x139.png 300w, https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen8-500x231.png 500w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>4. Despliegue la selecci\u00f3n <em>Recursos JMS<\/em> y observar\u00e1 las <em>F\u00e1bricas de conexi\u00f3n<\/em> y <em>Recursos de destino<\/em> creados.<\/p>\n<p><a href=\"http:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen9.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-209\" src=\"http:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen9.png\" alt=\"screen9\" width=\"600\" height=\"276\" srcset=\"https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen9.png 600w, https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen9-300x138.png 300w, https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/screen9-500x230.png 500w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p><strong>Importante:<\/strong> Si los recursos no aparecen creados tanto en la secci\u00f3n <em>JMS Connection Factories<\/em> como en <em>JMS Destination Resources<\/em>, se deben crear mediante las opciones adminsitrativas:<\/p>\n<p><a href=\"http:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/createtopic.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-207\" src=\"http:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/createtopic.png\" alt=\"createtopic\" width=\"600\" height=\"249\" srcset=\"https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/createtopic.png 600w, https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/createtopic-300x125.png 300w, https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/createtopic-500x208.png 500w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a> <a href=\"http:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/createfactory.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-208\" src=\"http:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/createfactory.png\" alt=\"createfactory\" width=\"600\" height=\"248\" srcset=\"https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/createfactory.png 600w, https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/createfactory-300x124.png 300w, https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-content\/uploads\/sites\/99\/2016\/07\/createfactory-500x207.png 500w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Crear el TopicConnectionFactory 1. Sobre el proyecto EJB haga click con el bot\u00f3n derecho del mouse, seleccione New\u2192Others y en la lista de categor\u00edas seleccione Glassfish, en la parte derecha (File Types) seleccione JMS Resource. 2. En la ventana de &hellip; <a class=\"more-link\" href=\"https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/laboratorios\/laboratorio-6-beans-de-mensajeria\/reto\/crear-el-topicconnectionfactory-y-el-topic\/\">Sigue leyendo <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":107,"featured_media":0,"parent":200,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-202","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-json\/wp\/v2\/pages\/202","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-json\/wp\/v2\/users\/107"}],"replies":[{"embeddable":true,"href":"https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-json\/wp\/v2\/comments?post=202"}],"version-history":[{"count":3,"href":"https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-json\/wp\/v2\/pages\/202\/revisions"}],"predecessor-version":[{"id":371,"href":"https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-json\/wp\/v2\/pages\/202\/revisions\/371"}],"up":[{"embeddable":true,"href":"https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-json\/wp\/v2\/pages\/200"}],"wp:attachment":[{"href":"https:\/\/cursos.virtual.uniandes.edu.co\/csof5302\/wp-json\/wp\/v2\/media?parent=202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}