Unverified Commit 8db44ccb authored by kolo's avatar kolo
Browse files

ejercicio4: ajuste defensa

parent 009695d0
......@@ -16,11 +16,11 @@ import ejercicio.practico.datos.IDatosABMLocal;
// entries="queue/queue_alta_tipo_recurso java:jboss/exported/jms/queue/queue_alta_tipo_recurso"/>
@MessageDriven(name = "TipoRecursoMDBean", activationConfig = {
@ActivationConfigProperty(propertyName = "destination", propertyValue = "queue_alta_tipo_recurso"),
@ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
@ActivationConfigProperty(propertyName = "destinationLookup", propertyValue = "jms/queue/queue_alta_tipo_recurso"),
@ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge")
})
public class TipoRecursoMDBean /*implements MessageListener */{
public class TipoRecursoMDBean implements MessageListener {
@EJB
IDatosABMLocal datos;
......
......@@ -36,7 +36,7 @@ public class AltaTipoRecursoControlador extends HttpServlet {
// <jms-queue name="queue_alta_tipo_recurso"
// entries="jms/queue/queue_alta_tipo_recurso
// java:jboss/exported/jms/queue/queue_alta_tipo_recurso" />
@Resource(mappedName = "java:jms/queues/queue_alta_tipo_recurso")
@Resource(name = "queue_alta_tipo_recurso")
private Queue queue;
public AltaTipoRecursoControlador() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment