I don't think you did anything wrong, but you still need to route the message in there. There are two actions you can use:
org.jboss.soa.esb.actions.MessagePersister, or org.jboss.soa.esb.actions.persistence.StoreMessage
Or you can add code in your own actions. Something like:
MessageStore messageStore = MessageStoreFactory.getInstance().getMessageStore(MessageStoreType.DEFAULT_TYPE);
messageStore.addMessage(message, "classification string");
Or you can use all three :).
Thanks Kurt, In fact, I examined the code and I found thoses actions. But, I
think that this information is not present in the dbstore tutorial, maybe a little
update could help ;)
If you haven't already done so, please add a JIRA task so we don't forget.
What is the purpose of the message store?
If I understand correctly from http://www.enterpriseintegrationpatterns.com/MessageStore.html the message store should be used for monitoring purposes. If so, are there any tools to analize the message store and maybe get statistics of the amount of messages, their type and so on?
And, is the whole message stored in the database? If so, is the esb administrator responsible of manualy deleting old messages or does the system provide means to do that?
We're currently working on tools.
Any updates regarding that?