Also, please be careful about using the DB for direct access to the messages; this is looking into the private internals of ActiveMQ.
If this is for a tool to diagnose or understand ActiveMQ internals, that's cool. If it's for the application logic, it could be very bad. For example, consider what happens when coordination between database accesses is lacking and needed. Or, if the application starts locking tables and rows, blocking ActiveMQ operations. It should be relatively easy to consume messages in an application and write the contents to a database. With camel, it's probably about 2 dozen lines (configuring the DB and activemq connections and endpoints). Something to consider... Remember, there's a certain amount of complexity every solution to a specific problem will require. Simplifying the solution in one place moves that complexity to another. It's important to choose appropriate places for that complexity. Is it wise to have the chat application's messages stored in the same DB as ActiveMQ's messages to simplify the task of getting them stored, at the cost of putting that added complexity in the messaging layer and possibly interfering with the operation of the messaging layer (not to mention creation of a circular dependency)? -- View this message in context: http://activemq.2283324.n4.nabble.com/MySQL-column-MSG-format-tp4680378p4680389.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.
