public class ExcludeJmsHeaders extends MetadataFilterImpl
^JMS.*$
.
Some brokers dislike any message properties that start with JMS
. For instance, producing a message to WebsphereMQ that
contains JMS_isMultiPart
as a string property will fail (JMS_isMultiPart
is populated by SonicMQ when using their
MulitpartMessages
implementations). You can configure this on a producer to automatically exclude any JMS style headers
from being added. Of course, you could configure the pattern as part of a RegexMetadataFilter
instead.
In the adapter configuration file this class is aliased as exclude-jms-headers which is the preferred alternative to the fully qualified classname when building your configuration.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
JMS_HDR_PATTERN
The Header pattern "^JMS.*$".
|
Constructor and Description |
---|
ExcludeJmsHeaders() |
Modifier and Type | Method and Description |
---|---|
MetadataCollection |
filter(MetadataCollection original)
Return all the metadata that matches the filter.
|
filter, filter
public static final java.lang.String JMS_HDR_PATTERN
public MetadataCollection filter(MetadataCollection original)
MetadataFilter
original
- the original set of metadata.MetadataCollection
instance that has been filtered.