[Clustering/JBoss] - Re: Load balancing and dev environment
by maralcbr
Hi Brian,
I did some testing here. Follow my conclusions:
1)
<annotation expr="class((a)org.jboss.annotation.ejb.Clustered)">
| @org.jboss.annotation.ejb.Clustered(loadBalancePolicy=org.jboss.ha.framework.interfaces.FirstAvailableIdenticalAllProxies.class)
| </annotation>
|
| 11:08:27,539 WARN [EJBContainer] Unable to replace @Clustered partition attribute null. Caused by class java.lang.NullPointerException null
|
2)
<annotation expr="class((a)org.jboss.annotation.ejb.Clustered)">
| @org.jboss.annotation.ejb.Clustered(loadBalancePolicy=org.jboss.ha.framework.interfaces.FirstAvailableIdenticalAllProxies.class,partition=CorrectPartitionName)
| </annotation>
|
| Works ok.
|
3)
<annotation expr="class((a)org.jboss.annotation.ejb.Clustered)">
| @org.jboss.annotation.ejb.Clustered(loadBalancePolicy=org.jboss.ha.framework.interfaces.FirstAvailableIdenticalAllProxies.class,partition=${jboss.partition.name:DefaultPartition})
| </annotation>
|
| Big RuntimeException saying it does not understand the line.
|
Then, my conclusion is that is doesn't substitute the line. And it does not get the partition name set on the command line (-g partitionName).
The 2) is not an option, because we have a lot of developers here that load a local JBoss for testing, then everybody should have a different partition name (we are using -g %COMPUTERNAME%).
Do you have any ideas to work around this?
Thanks again.
Marcelo
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142912#4142912
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142912
18 years
[Messaging, JMS & JBossMQ] - DLQ - Cause logging?
by rfidler1978
I'm wondering if there is some way to figure out why a message gets to DLQ. Past experience is you'll see some sort of exception, but in this case messages are going straight to DLQ after the max size was reached for the queue. First off, the setup is:
- Persisted JMS (MySQL)
- JBoss 3.2
- Queues only
- Max size for queues is five
- Custom DLQ handler
- No MDB timeout/expiration set (to my knowledge)
- MDB configured for five instances max
- Logging has root element pointing to a file, all other severities turned down to TRACE.
What is occurring is 25 messages are sent to a queue name QUEUE.Preprocessor - no problem. Where the issue comes into play is immediately after five instances fire up two of the twenty five messages goto DLQ. The five that were/are running complete - no error. After two goto DLQ, the rest of the messages in the queue appear to processes fine. What I can't figure out is why the messages goto DLQ in the first place. I have cranked the logging down (see below snippet) but it doesn't show me how messages sent the QUEUE.Preprocessor got to DLQ. Past experience shows that normally you'll get some sort of exception, such as message was corrupt or exception was thrown by the MDB but in this situation there's nothing in the log file.
Is there any other DLQ interrogation, other than cranking down the logging, that can be done to see why a message is sent to DLQ? Any help or suggestions is very much appreciated.
Thanks!
Randall
Here's a short log snippet:
2008-04-09 15:24:20,098 DEBUG [plugins.LogInterceptor] 433498 Invoke: [ID:29-12077258586628] onMessage(org.jboss.mq.SpyObjectMessage {
Header {
jmsDestination : QUEUE.PreProcessor
jmsDeliveryMode : 2
jmsExpiration : 0
jmsPriority : 4
jmsMessageID : ID:29-12077258586628
jmsTimeStamp : 1207725858662
jmsCorrelationID: null
jmsReplyTo : null
jmsType : null
jmsRedelivered : false
jmsProperties : {}
jmsPropReadWrite: false
msgReadOnly : true
producerClientId: ID:29
}
})
2008-04-09 15:24:20,098 DEBUG [plugins.LogInterceptor] 433498 Invoke: [ID:29-12077258586628] onMessage(org.jboss.mq.SpyObjectMessage {
Header {
jmsDestination : QUEUE.PreProcessor
jmsDeliveryMode : 2
jmsExpiration : 0
jmsPriority : 4
jmsMessageID : ID:29-12077258586628
jmsTimeStamp : 1207725858662
jmsCorrelationID: null
jmsReplyTo : null
jmsType : null
jmsRedelivered : false
jmsProperties : {}
jmsPropReadWrite: false
msgReadOnly : true
producerClientId: ID:29
}
})
2008-04-09 15:24:20,098 DEBUG [engine.CacheSynchronization] 433498 transaction after completion callback, status: 3
2008-04-09 15:24:20,098 DEBUG [engine.CacheSynchronization] 433498 transaction after completion callback, status: 3
2008-04-09 15:24:20,098 DEBUG [impl.SessionImpl] 433498 transaction completion
2008-04-09 15:24:20,098 DEBUG [impl.SessionImpl] 433498 transaction completion
2008-04-09 15:24:20,098 DEBUG [plugins.LogInterceptor] 433498 Invoke: [ID:29-120772585867710] onMessage(org.jboss.mq.SpyObjectMessage {
Header {
jmsDestination : QUEUE.PreProcessor
jmsDeliveryMode : 2
jmsExpiration : 0
jmsPriority : 4
jmsMessageID : ID:29-120772585867710
jmsTimeStamp : 1207725858677
jmsCorrelationID: null
jmsReplyTo : null
jmsType : null
jmsRedelivered : false
jmsProperties : {}
jmsPropReadWrite: false
msgReadOnly : true
producerClientId: ID:29
}
})
2008-04-09 15:24:20,098 DEBUG [plugins.LogInterceptor] 433498 Invoke: [ID:29-120772585867710] onMessage(org.jboss.mq.SpyObjectMessage {
Header {
jmsDestination : QUEUE.PreProcessor
jmsDeliveryMode : 2
jmsExpiration : 0
jmsPriority : 4
jmsMessageID : ID:29-120772585867710
jmsTimeStamp : 1207725858677
jmsCorrelationID: null
jmsReplyTo : null
jmsType : null
jmsRedelivered : false
jmsProperties : {}
jmsPropReadWrite: false
msgReadOnly : true
producerClientId: ID:29
}
})
2008-04-09 15:24:20,098 DEBUG [plugins.LogInterceptor] 433498 Invoke: [ID:29-120772585867711] onMessage(org.jboss.mq.SpyObjectMessage {
Header {
jmsDestination : QUEUE.PreProcessor
jmsDeliveryMode : 2
jmsExpiration : 0
jmsPriority : 4
jmsMessageID : ID:29-120772585867711
jmsTimeStamp : 1207725858677
jmsCorrelationID: null
jmsReplyTo : null
jmsType : null
jmsRedelivered : false
jmsProperties : {}
jmsPropReadWrite: false
msgReadOnly : true
producerClientId: ID:29
}
})
2008-04-09 15:24:20,098 DEBUG [plugins.LogInterceptor] 433498 Invoke: [ID:29-120772585867711] onMessage(org.jboss.mq.SpyObjectMessage {
Header {
jmsDestination : QUEUE.PreProcessor
jmsDeliveryMode : 2
jmsExpiration : 0
jmsPriority : 4
jmsMessageID : ID:29-120772585867711
jmsTimeStamp : 1207725858677
jmsCorrelationID: null
jmsReplyTo : null
jmsType : null
jmsRedelivered : false
jmsProperties : {}
jmsPropReadWrite: false
msgReadOnly : true
producerClientId: ID:29
}
})
2008-04-09 15:24:20,098 DEBUG [plugins.LogInterceptor] 433498 Invoke: [ID:29-120772585867713] onMessage(org.jboss.mq.SpyObjectMessage {
Header {
jmsDestination : QUEUE.PreProcessor
jmsDeliveryMode : 2
jmsExpiration : 0
jmsPriority : 4
jmsMessageID : ID:29-120772585867713
jmsTimeStamp : 1207725858677
jmsCorrelationID: null
jmsReplyTo : null
jmsType : null
jmsRedelivered : false
jmsProperties : {}
jmsPropReadWrite: false
msgReadOnly : true
producerClientId: ID:29
}
})
2008-04-09 15:24:20,098 DEBUG [plugins.LogInterceptor] 433498 Invoke: [ID:29-120772585867713] onMessage(org.jboss.mq.SpyObjectMessage {
Header {
jmsDestination : QUEUE.PreProcessor
jmsDeliveryMode : 2
jmsExpiration : 0
jmsPriority : 4
jmsMessageID : ID:29-120772585867713
jmsTimeStamp : 1207725858677
jmsCorrelationID: null
jmsReplyTo : null
jmsType : null
jmsRedelivered : false
jmsProperties : {}
jmsPropReadWrite: false
msgReadOnly : true
producerClientId: ID:29
}
})
2008-04-09 15:24:20,114 DEBUG [plugins.LogInterceptor] 433514 Invoke: [ID:29-120772585902114] onMessage(org.jboss.mq.SpyObjectMessage {
Header {
jmsDestination : QUEUE.PreProcessor
jmsDeliveryMode : 2
jmsExpiration : 0
jmsPriority : 4
jmsMessageID : ID:29-120772585902114
jmsTimeStamp : 1207725859021
jmsCorrelationID: null
jmsReplyTo : null
jmsType : null
jmsRedelivered : false
jmsProperties : {}
jmsPropReadWrite: false
msgReadOnly : true
producerClientId: ID:29
}
})
2008-04-09 15:24:20,114 DEBUG [plugins.LogInterceptor] 433514 Invoke: [ID:29-120772585902114] onMessage(org.jboss.mq.SpyObjectMessage {
Header {
jmsDestination : QUEUE.PreProcessor
jmsDeliveryMode : 2
jmsExpiration : 0
jmsPriority : 4
jmsMessageID : ID:29-120772585902114
jmsTimeStamp : 1207725859021
jmsCorrelationID: null
jmsReplyTo : null
jmsType : null
jmsRedelivered : false
jmsProperties : {}
jmsPropReadWrite: false
msgReadOnly : true
producerClientId: ID:29
}
})
2008-04-09 15:24:20,130 DEBUG [local.LocalManagedConnectionFactory] 433530 Using properties: {user=streetwise, password=--hidden--}
2008-04-09 15:24:20,130 DEBUG [local.LocalManagedConnectionFactory] 433530 Using properties: {user=streetwise, password=--hidden--}
2008-04-09 15:24:20,130 DEBUG [local.LocalManagedConnectionFactory] 433530 Using properties: {user=streetwise, password=--hidden--}
2008-04-09 15:24:20,130 DEBUG [local.LocalManagedConnectionFactory] 433530 Using properties: {user=streetwise, password=--hidden--}
2008-04-09 15:24:20,130 DEBUG [plugins.LogInterceptor] 433530 Invoke: [ID:32-12077258607881] onMessage(org.jboss.mq.SpyObjectMessage {
Header {
jmsDestination : QUEUE.DLQ
jmsDeliveryMode : 2
jmsExpiration : 0
jmsPriority : 4
jmsMessageID : ID:32-12077258607881
jmsTimeStamp : 1207725860788
jmsCorrelationID: null
jmsReplyTo : null
jmsType : null
jmsRedelivered : false
jmsProperties : {JBOSS_ORIG_MESSAGEID=ID:29-12077258586629, JBOSS_ORIG_DESTINATION=QUEUE.PreProcessor}
jmsPropReadWrite: false
msgReadOnly : true
producerClientId: ID:32
}
})
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142906#4142906
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142906
18 years