Thanks for responding.. Ok what I've tried is started two instances of hermes A & B. A has table name outbox and for B table name is outbox_1. Sent a message to A which processed the message and sent to thirdparty fine. But when an Acknowledgement was sent back by thirdparty to A, I seen an exception in B as following. Any idea how to fix this? Thanks
2013-05-15 16:30:41,313 ERROR [hk.hku.cecid.ebms.spa] (Thread-30) Error in storing message to inbox
hk.hku.cecid.piazza.commons.dao.DAOException: Error in executing hk.hku.cecid.ebms.spa.dao.InboxDataSourceDAO::Process@abc8ee
by hk.hku.cecid.piazza.commons.dao.DAOException: Error in executing update: INSERT INTO inbox (order_no, message_id) VALUES (?,?)
by hk.hku.cecid.piazza.commons.dao.DAOException: Error occurred when executing update at row 0 of the specified parameter array
by com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Duplicate entry 'response-1368631840923-4516325796575306752' for key 1
at hk.hku.cecid.piazza.commons.dao.ds.DataSourceProcess.start(DataSourceProcess.java:97)
at hk.hku.cecid.piazza.commons.dao.ds.DataSourceDAO.executeUpdate(DataSourceDAO.java:588)
at hk.hku.cecid.piazza.commons.dao.ds.DataSourceDAO.executeUpdate(DataSourceDAO.java:548)
at hk.hku.cecid.piazza.commons.dao.ds.DataSourceDAO.executeUpdate(DataSourceDAO.java:528)
at hk.hku.cecid.piazza.commons.dao.ds.DataSourceDAO.create(DataSourceDAO.java:626)
at hk.hku.cecid.piazza.commons.dao.ds.DataSourceDAO.create(DataSourceDAO.java:610)
at hk.hku.cecid.ebms.spa.task.InboxTask.execute(InboxTask.java:57)
at hk.hku.cecid.piazza.commons.module.ActiveThread.run(ActiveThread.java:90)
at java.lang.Thread.run(Unknown Source)
Caused by: hk.hku.cecid.piazza.commons.dao.DAOException: Error in executing update: INSERT INTO inbox (order_no, message_id) VALUES (?,?)
by hk.hku.cecid.piazza.commons.dao.DAOException: Error occurred when executing update at row 0 of the specified parameter array
by com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Duplicate entry 'response-1368631840923-4516325796575306752' for key 1
at hk.hku.cecid.piazza.commons.dao.ds.DataSourceUpdate.doTransaction(DataSourceUpdate.java:110)
at hk.hku.cecid.piazza.commons.dao.ds.DataSourceProcess.start(DataSourceProcess.java:89)
... 8 more
Caused by: hk.hku.cecid.piazza.commons.dao.DAOException: Error occurred when executing update at row 0 of the specified parameter array
by com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Duplicate entry 'response-1368631840923-4516325796575306752' for key 1
at hk.hku.cecid.piazza.commons.dao.ds.DataSourceUpdate.doTransaction(DataSourceUpdate.java:96)
... 9 more