Skip to content

Commit

Permalink
Fix for removal of test jms destinations in the JBoss configuration file
Browse files Browse the repository at this point in the history
  • Loading branch information
sgilda committed Mar 1, 2012
1 parent 595ca0c commit 0a815a4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*/
@MessageDriven(name = "HelloWorldMDB", activationConfig = {
@ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
@ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/test"),
@ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/HELLOWORLDMDBQueue"),
@ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge") })
public class HelloWorldMDB implements MessageListener {

Expand All @@ -44,4 +44,4 @@ public void onMessage(Message rcvMessage) {
throw new RuntimeException(e);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class HelloWorldMDBServletClient extends HttpServlet {
@Resource(mappedName = "java:/ConnectionFactory")
private ConnectionFactory connectionFactory;

@Resource(mappedName = "java:/queue/test")
@Resource(mappedName = "java:/queue/HELLOWORLDMDBQueue")
private Queue queue;

@Override
Expand Down
10 changes: 10 additions & 0 deletions helloworld-mdb/src/main/webapp/WEB-INF/hornetq-jms.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<messaging-deployment xmlns="urn:jboss:messaging-deployment:1.0">
<hornetq-server>
<jms-destinations>
<jms-queue name="HELLOWORLDMDBQueue">
<entry name="/queue/HELLOWORLDMDBQueue"/>
</jms-queue>
</jms-destinations>
</hornetq-server>
</messaging-deployment>

0 comments on commit 0a815a4

Please sign in to comment.