-
1. Re: Questions on JBoss Messaging 1.4
gaohoward Jun 29, 2009 2:49 AM (in response to unwavering)Q1 : you can have a look at JBossMessage class.
Q2 : If a message is failed to be delivered by JBM for a certain times, it will go to DLQ if specified.
Q3 : no. I don't think you need it if your messages never expire.
Q4 : see Q2 for reference. -
2. Re: Questions on JBoss Messaging 1.4
unwavering Jun 29, 2009 4:42 AM (in response to unwavering)Thanks gaohoward. I still need some explanations:
Q1: Is there a configurable way to define default message headers from JBoss?
Q2: How do you define 'delivery'? Is it delivery between internal components of JBoss? Or is it delivery between external clients and JBoss? -
3. Re: Questions on JBoss Messaging 1.4
gaohoward Jun 29, 2009 5:35 AM (in response to unwavering)Q1: Is there a configurable way to define default message headers from JBoss?
--- I don't think it has a way to configure default values for message headers.
Q2: How do you define 'delivery'? Is it delivery between internal components of JBoss? Or is it delivery between external clients and JBoss?
-- here the delivery means the process in which messages are sent from JBM server to the clients (consumers). -
4. Re: Questions on JBoss Messaging 1.4
timfox Jun 29, 2009 5:39 AM (in response to unwavering)"gaohoward" wrote:
Q1: Is there a configurable way to define default message headers from JBoss?
--- I don't think it has a way to configure default values for message headers.
Actually you can probably do this by providing an AOP interceptor in JBM 1.x.
In JBM 2.0 interceptors are fully supported, see the docs for more info. -
5. Re: Questions on JBoss Messaging 1.4
unwavering Jun 29, 2009 6:55 AM (in response to unwavering)Another question:
I'm using a JMS client to drop messages in JBM 1.4. Although the client is changing the message header properties (expiry and priority), these changes are not taking effects on JBM. For example, the client is setting the message expiry to 1 second but JBM is keeping the message forever in the destination queue without moving it to the expiry queue. Can you help me to understand the reasons?
Thanks all. -
6. Re: Questions on JBoss Messaging 1.4
gaohoward Jun 29, 2009 7:11 AM (in response to unwavering)Hi, I think about those values you should consult JMS spec. Some of them are determined only when the message is sent. for example in the spec
JMSPriority
The JMSPriority header field contains the message’s priority.
When a message is sent, this field is ignored. After completion of the send, it
holds the value specified by the method sending the message.
That means you need to specify the priority in send() method. -
7. Re: Questions on JBoss Messaging 1.4
unwavering Jun 29, 2009 8:56 AM (in response to unwavering)You're right gaohoward. The priority should be set at the method level (send method) rather than at the message level. But I still can't control the expiry of the message even from the send() method. I will review the specs as you suggested. Thanks.