This content has been marked as final.
Show 3 replies
-
1. Re: AS integration Failing tests on Temporary Destinations
clebert.suconic Jan 26, 2010 2:02 PM (in response to clebert.suconic)I will use this thread for any other failures I get on the AS Integration Testsuite:
Another failure I get is you won't createDurableSubscription with a subscriptionName = null won't throw an exception.
Actually, from what I inspected on the code, that will cause a temporary destination to be created instead of making it a topic subscription.
-
2. Re: AS integration Failing tests on Temporary Destinations
clebert.suconic Jan 27, 2010 1:11 PM (in response to clebert.suconic)Another failure:
Say, you do this in one thread producing messages:
TemporaryQueue temp = session.createTemporaryQueue(); Message message = session.createTextMessage(); message.setJMSReplyTo(temp); QueueSender sender = session.createSender(queue); sender.send(message);
On a message Listener, you do:public void onMessage(Message message) { try { QueueSession session = queueConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); Queue replyQueue = session.createQueue(((Queue)message.getJMSReplyTo()).getQueueName()); QueueSender sender = session.createSender(replyQueue); System.out.println("Sending response"); sender.send(message); sender.close(); session.close(); } catch (Throwable t) { state.addError(t); } }
The createQueue (with the same ID for the temporary queue) will make this to throw an Non Existent Destination exception.Is this a bug, or a test broken? -
3. Re: AS integration Failing tests on Temporary Destinations
timfox Jan 31, 2010 3:46 AM (in response to clebert.suconic)This is fixed in TRUNK now