}
public MessageIdentity addMessage(ActiveMQMessage message) throws JMSException {
String messageID = message.getJMSMessageID();
try {
Dbt key = createKey(messageID);
Dbt value = new Dbt(asBytes(message));
database.put(BDbHelper.getTransaction(), key, value, 0);
return new MessageIdentity(messageID);
}
catch (DbException e) {
throw JMSExceptionHelper.newJMSException("Failed to broker message: " + messageID + " in container: " + e, e);