[jboss-user] [JBoss Messaging] - Re: Message redelivery
The MDB container / JCA layer also has its own DLQ - this is configured (normally) in standard-jboss.xml. This will take precedence over the jboss messaging DLQ - you would need to turn this off, or maybe you want to use it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021194#4021194 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4021194 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Message redelivery
Thanks for your reply. I see that MDBConfig in the proxy-factory-config for the invoker proxy takes precedence. However, I still see no way to configure the *delay* between message redeliveries. Is this still possible to configure? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022336#4022336 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022336 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Message redelivery
Perhaps it would be helpful to explain *why* the delay is necessary. Again, the current situation is that if a message is delivered to an MDB and the transaction is rolled back, the message is immediately and repeatedly redelivered until the maximum amount of times has been reached. We have two MDB's. Let's call them A and B. A reacts to an incoming message and performs an action that results in an eventual message to B. The amount of time that passes between A's action and the eventual arrival of a message to B is unquantifiable. Therefore, it is possible (and indeed likely in certain cases) that the message to B arrives before A's onMessage() completes. In this case, any data created by A will not be visible to B since its transaction is still open. B cannot complete its work until it has this information available to it. Detecting this situation, it manually rolls back the transaction. Once A's transaction has completed, B can complete its work. Unfortunately, what happens now is that B's message is redelivered so quickly that A never has a change to complete before B's message is trashed. Although increasing the maximum amount of retries is possible, this is a poor solution at best since the application server wastes precious resources. Therefore, I ask again: is it possible in JBoss Messaging to configure the message redelivery delay? Many thanks, Adam View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022940#4022940 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022940 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Message redelivery
"imaeses" wrote : | | Therefore, I ask again: is it possible in JBoss Messaging to configure the message redelivery delay? | | In 1.2, yes, in 1.0.1, no. Have a look at the destination and server peer mbean config. Queue/Topic: | | The delay before redelivering | RedeliveryDelay | long | | ServerPeer | | How long to wait before redelivery, can be overridden on the destination | DefaultRedeliveryDelay | long | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022944#4022944 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022944 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Message redelivery
Hi Tim, Thanks for the reply. Here's my problem: we aren't prepared to roll the 1.2 version into production because it's not a general release yet. We'd prefer to use the 1.0.1 version since it is stable. However, this one feature is quite important. Are you planning on enabling this feature in a SP release in the near future? If not, could you give me a hint where in the code I should go to implement this myself. Many thanks, Adam View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023100#4023100 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023100 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Message redelivery
1.2.0 will go GA tomorrow. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023392#4023392 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023392 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Message redelivery
"ctomc" wrote : | I know that resending because of exception in onMessage is not part of JMS spec but as far as I know jboss messaging(and mq) support this behavior. If a RuntimeException is thrown then redelivery should occur - this is mandated in the JMS spec 1.1, section 4.5.2. If this is not happening, can you replicate this in a simple test case / example and we can investigate further? Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981721#3981721 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981721 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Message redelivery
There is something I don't understand here, please forgive my intrusion: Tomaz says that he uses MDBs. The RuntimeException is thrown from within MDB's onMessage(). 4.5.2 is about MessageListener's onMessage(), and actually the session's acknowledgment mode has bearing on the behavior. This is a different situation. Tomaz, what EJB version are you using? 2.1 or 3? Joining Tim in his request, could you please sent a test case that fails, or somehow guide us into replicating the failure? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982263#3982263 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982263 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Message redelivery
anonymous wrote : | If a RuntimeException is thrown then redelivery should occur - this is mandated in the JMS spec 1.1, section 4.5.2. | Sort of. As Ovidiu points out, this is a bit different situation if he is using MDBs. This is one gray area where the JMS spec and the EJB spec are not exactly in agreement. If an runtime exception is thrown in the context of of a transaction, no problems there. However, if the exception is thrown using a NotSupported or BMT the spec is less clear as the delivery of the message occurs in a 'unspecified transaction context. JBoss supports varying behavior depending upon version and whether or not you are using JMS/JCA. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982266#3982266 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982266 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Message redelivery
Apologies - my head is in JMS world :) If the JCA layer calls the message listener directly in the case of a JMS MDB, and handles the redelivery itself then this is really a question for Weston, not a JMS question, n'est ce pas? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982313#3982313 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982313 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Message redelivery
Hi guys, I have been out for little holidays I am using EJB3. And I will make some simple test case when I come to office tomorrow. If you think that ejb 2.1 would behave behave differently I can try that also. cheers, tomaz View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982351#3982351 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982351 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Message redelivery
H. This anonymous wrote : | ERROR [MessageCallbackHandler] RuntimeException was thrown from onMessage, 90625 will be redelivered | Tells me that the JCA layer/MDB container is *not* calling onMessage directly (since this is logged from JBM), therefore JMS semantics do apply, and we need to follow the JMS spec. So, yes please Tomasz, please replicate in a simple test case/test program and we will investigate further. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982353#3982353 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982353 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Message redelivery
We also have to find out what version of JBoss (unless I missed it) as well as RC* candidate of EJB3. Both are important in terms of JCA being used at all. Transaction attributes would be good to know as well. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982385#3982385 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982385 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Message redelivery
Hi guys. I can confirm that problem exists only when I use EJB3 MDB. Jboss is 4.0.5.GA with ejb3 implementation that came with it. :-) all the configuration is default(only what messaging install changed it) I have created a simple test case that i attached to issue http://jira.jboss.com/jira/browse/JBMESSAGING-633 tomaz View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982611#3982611 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982611 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Message redelivery
Thanks. I've scheduled it for 1.0.2.CR1. I'll try to take a look at the test case ASAP, and I'll get back to you on this thread if I have further questions. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982843#3982843 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982843 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Message redelivery
If it is in fact the JMS/JCA adapter being used (this would be with EJB3RC9) let me know. There were some things added to support EJB3 that may be an issue. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982844#3982844 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982844 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Message redelivery
Absolutely, thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982845#3982845 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982845 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Message redelivery
Hi Guys, I know its been a month since you all had this conversation, i was wondering if anyone ever got this to work. I downloaded Version 1.2.0sp1 yesterday and dont seem to be able to get the redelivery delay to work. I have posted my setup for the queue below. Anyone have any ideas??? jboss.messaging:service=ServerPeer jboss.messaging:service=PostOffice 3 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046847#4046847 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046847 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Message redelivery
ok set-up didnt appear quite as i was hoping but heres another go jboss.messaging:service=ServerPeer jboss.messaging:service=PostOffice < attribute name="RedeliveryDelay">3 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046850#4046850 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046850 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Message redelivery
This thread is a dupe of http://www.jboss.org/index.html?module=bb&op=viewtopic&t=109165 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048031#4048031 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048031 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Message redelivery
Locking it View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048032#4048032 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048032 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
Re: [jboss-user] [JBoss Messaging] - Re: Message redelivery
1.2.0 will go GA tomorrow. imaeses wrote: Hi Tim, Thanks for the reply. Here's my problem: we aren't prepared to roll the 1.2 version into production because it's not a general release yet. We'd prefer to use the 1.0.1 version since it is stable. However, this one feature is quite important. Are you planning on enabling this feature in a SP release in the near future? If not, could you give me a hint where in the code I should go to implement this myself. Many thanks, Adam View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023100#4023100 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023100 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user