faq of camel and servicemix 4

1. ask:    Caused by: java.lang.IllegalArgumentException: org.hibernate.QueryException: ClassNotFoundException: org.hibernate.hql.ast.HqlToken [select x from org.apache.camel.processor.idempotent.jpa.MessageProcessed x where x.processorName = ?1 and x.messageId = ?2]
   answer:  add "org.hibernate.hql.ast," after <Import-Package>           

 

2. file  and idempotent

// if in gluster, will consume some duplicated edis
        //from("file:camel-in-edi?include=.*//.txt&delay=300&idempotent=true&idempotentRepository=#fileStore&move=done/${file:name}")
       
        //The underlining config causes the two servicemixes working on the same gluster  work alternately
        //from("file:camel-in-edi?include=.*//.txt&delay=300&readLock=changed&readLockTimeout=0&maxMessagesPerPoll=100&idempotent=true&idempotentRepository=#fileStore&delete=true&inProgressRepository=#file_inProgress")
       
        //this will cause the gluster dead soon ,because of the idempotentRepository=#fileStore&delete=true&inProgressRepository=#file_inProgress
        //from("file:camel-in-edi?include=.*//.txt&delay=300&readLock=fileLock&readLockTimeout=0&maxMessagesPerPoll=100&idempotent=true&idempotentRepository=#fileStore&delete=true&inProgressRepository=#file_inProgress")
       
        //this will cause 2 servicemix grab the edi filelock forever, cause deadlock
        //from("file:camel-in-edi?include=.*//.txt&delay=300&readLock=fileLock&readLockTimeout=0&maxMessagesPerPoll=100&delete=true")

你可能感兴趣的:(File,delete,idempotent)