June 2017
Beginner to intermediate
468 pages
11h 24m
English
We can also add and remove the queue through an Arquillian test case:
@RunWith(Arquillian.class)@ServerSetup(MessagingResourcesSetupTask.class)public class MessageTestCase { ... private static final String QUEUE_NAME = "gps_coordinates"; private static final String QUEUE_LOOKUP = "java:/jms/queue/GPS"; static class MessagingResourcesSetupTask implements ServerSetupTask { @Override public void setup(ManagementClient managementClient, String containerId) throws Exception { getInstance(managementClient.getControllerClient()).createJmsQueue(QUEUE_NAME, QUEUE_LOOKUP); } @Override public void tearDown(ManagementClient managementClient, String containerId) throws Exception { getInstance(managementClient ...
Read now
Unlock full access