-
1. Re: Storing a Message with a UUID of my Choosing
kurtstam Aug 21, 2007 9:39 AM (in response to jplenhart)I think it makes sense to be able to set your own UUID. I have another use case for that too. If that it all you need please open a feature request for it and assign it to me, I will simply add it to the current DBMessageStoreImpl. It will however throw an exception if the key is already in there. So it need to be a true UUID :).
--Kurt -
2. Re: Storing a Message with a UUID of my Choosing
kurtstam Aug 21, 2007 9:40 AM (in response to jplenhart)Or even better, send in a patch for it :).
-
3. Re: Storing a Message with a UUID of my Choosing
jplenhart Aug 21, 2007 9:44 AM (in response to jplenhart)Hi Kurt,
Are you thinking of setting this as a parameter like 'classifiction' is set in the jboss-esb.xml?
For my requirement I would have to do this at runtime - so I believe that perhaps there could be something in the message that could be set prior to calling the messagestore action - what do you think?
Thanks,
Jason -
4. Re: Storing a Message with a UUID of my Choosing
jplenhart Aug 21, 2007 10:47 AM (in response to jplenhart)I am having an issue with the MessageStore and no error messages...
<actions> <action name="displayMessage" class="org.jboss.soa.esb.actions.SystemPrintln"> <property name="message" value="XXXXXXXXXXX ABOUT TO INSERT TO MESSAGE STORE XXXXXXXXXXX" /> <property name="printfull" value="true" /> </action> <!-- Add a copy of the message to the message store under categorization 'test' --> <action name="PersistAction" class="org.jboss.soa.esb.actions.MessagePersister" > <property name="classfication" value="test"/> <property name="message-store-class" value="org.jboss.internal.soa.esb.persistence.format.db.DBMessageStoreImpl"/> </action> <action name="displayMessage" class="org.jboss.soa.esb.actions.SystemPrintln"> <property name="message" value="XXXXXXXXXXX FILE PLACED IN DIRECTORY XXXXXXXXXXXX" /> <property name="printfull" value="true" /> </action> </actions>
For some reason - I get the first SystemPrintln and the message is stored in the db - then I get no error and the second SystemPrintln does not happen.
Any ideas?
Thanks,
Jason -
5. Re: Storing a Message with a UUID of my Choosing
kurtstam Aug 21, 2007 2:19 PM (in response to jplenhart)1. You can set it at at runtime, with the code on the trunk, by setting a property on the message, like for example:
message.getProperties().setProperty(MessageStore.CLASSIFICATION, MessageStore.CLASSIFICATION_RDLVR
2. I have no idea why your second PrintLn would fail.
--Kurt