camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcin (Created) (JIRA)" <>
Subject [jira] [Created] (CAMEL-4854) BAM - database constraint violation when restaring application
Date Tue, 03 Jan 2012 13:05:39 GMT
BAM - database constraint violation when restaring application

                 Key: CAMEL-4854
             Project: Camel
          Issue Type: Bug
          Components: camel-bam
    Affects Versions: 2.8.2
            Reporter: Marcin

Take BAM example from  (or any other one, it doesn't

Here is the one I'm using:

        ActivityBuilder request = activity("eaiBroker:topic:SOME_TOPIC?concurrentConsumers=1").name("Request")

        ActivityBuilder response = activity("eaiBroker:topic:SOME_OTHER_TOPIC?concurrentConsumers=1").name("Response")


 First run of the application and everything works. Restart application and try to activate
one of BAM rules, there will be an exception that database constraint has been violated. Every
time application is started, Camel tries to do following sql insert

insert into CAMEL_ACTIVITYDEFINITION (name, processDefinition_id, id) values (?, ?, ?)

but name columne must be unique in CAMEL_ACTIVITYDEFINITION .

Workaround for this is to purge BAM tables every time you want to restart the application,
but it's not a solution.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message