[Design of Messaging on JBoss (Messaging/JBoss)] - javax.jms.IllegalStateException vs java.lang.IllegalStateExc
by clebert.suconic@jboss.com
I'm trying to keep JORAM tests discussions under "Invalid JORAM Test" thread, but I wanted to open this one here to start a new discussion.
According to this test, we should be throwing javax.jms.IllegalStateException, but JBossConnection is actually throwing java.lang.IllegalStateException, causing the test to fail.
| /**
| * Test that a call to <code>createDurableConnectionConsumer()</code> method
| * on a <code>QueueConnection</code> throws a
| * <code>javax.jms.IllegalStateException</code>.
| * (see JMS 1.1 specs, table 4-1).
| *
| * @since JMS 1.1
| */
| public void testCreateDurableConnectionConsumerOnQueueConnection()
| {
| try
| {
| queueConnection.createDurableConnectionConsumer(topic, "subscriptionName", "", (ServerSessionPool) null, 1);
| fail("Should throw a javax.jms.IllegalStateException");
| }
| catch (javax.jms.IllegalStateException e)
| {
| }
| catch (JMSException e)
| {
| fail("Should throw a javax.jms.IllegalStateException, not a " + e);
| }
| }
|
On the JMS spec, at section 7.3, JMS defines IllegalStateException. From that I read we should be aways throwing javax.jms.IllegalStateException... but from what I inspected on code, we aways use java.lang.IllegalStateException.
Should we change this?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055820#4055820
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055820
18 years, 9 months
[Design of JBoss Transaction Services] - Re: JBossTS Tx timeout (with CMT beans)
by dimitris@jboss.org
I've managed (finally) to enable logging (that would be another topic of discussion apparently).
With the default settings:
comm.arjuna.ats.arjuna.coordinator.txReaperTimeout=120000
com.arjuna.ats.arjuna.coordinator.txReaperMode=NORMAL
I'm just seeing a Repear thread working every 5 seconds, so I don't know what this txReaperTimeout actually does. Maybe it is microsecs by it defaults to 5 secs minimum???
| sleeping for 5000
| 2007-06-19 22:24:33,542 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] TransactionReaper::check ()
| 2007-06-19 22:24:33,542 DEBUG [com.arjuna.ats.arjuna.logging.arjLoggerI18N] [com.arjuna.ats.internal.arjuna.coordinator.ReaperThread_1] - Thread Thread[Thread-4,5,jboss]
| sleeping for 5000
| 2007-06-19 22:24:38,549 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] TransactionReaper::check ()
| 2007-06-19 22:24:38,549 DEBUG [com.arjuna.ats.arjuna.logging.arjLoggerI18N] [com.arjuna.ats.internal.arjuna.coordinator.ReaperThread_1] - Thread Thread[Thread-4,5,jboss]
| sleeping for 5000
| 2007-06-19 22:24:43,556 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] TransactionReaper::check ()
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055795#4055795
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055795
18 years, 9 months