Configuring destinations

Configuring and creating destinations is quite easy. You can rely on the Web console, or the CLI. As already mentioned in previous chapters, knowing CLI commands gives you more flexibility and a deeper knowledge of the entire platform. For these same reasons, we will see how to configure your destinations using the CLI.

To create a destination named testQueue, do as follows:

[standalone@192.168.59.104:9990 /] jms-queue add --queue-address=jms.queue.TestQueue --entries=java:/jms/queue/testQueue

If running in domain mode, just add the --profile directive, specifying the profile name to use, as follows:

[domain@192.168.59.104:9999 /] jms-queue add --queue-address=jms.queue.TestQueue --entries=java:/jms/queue/testQueue --profile=full ...

Get Mastering JBoss Enterprise Application Platform 7 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.