[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [xmlblaster] Message Structure ..

Arghad Arnaout wrote:
Hallo Everybody:
OK .. I have a question related to the message structure in XMLBlaster:
What if We want to create a topic which accepts only well defined messages structure,
for example, what if I want to create a topic accepts the messages in the following format:
<title>Title of the book</title>
<publisher>Publisher here .. </publisher>
<cover>image of the cover</cover>

I searched the requirements and examples for such thing and I found that we need define filter plug in to do that ..
Am I right ???? or we can do that using a different way ..

Thank you .. .

Hi Arghad,

Yes, a publish mime plugin is the way to go, see


it intercepts all incoming messages, does the schema check
and rejects unwanted messages.
See http://www.xmlblaster.org/xmlBlaster/doc/requirements/mime.plugin.publishfilter.html
You have to code such a plugin for your use case yourself (it is quite simple).

Note that subscribers can further filter the messages they
receive with specific "access mime plugins" using XPath, regex etc.
Such plugins are available with xmlBlaster already.

regards Marcel