Hi Arno,
Thanks for the answer.
I change values of Spring Batch core and Spring Batch Infrastructure to 2.1.8 and try to change value of property 'domain', but problem is not solved.
Here is the BatchMBeanExporter bean definition:
Code:
<bean id="customBatchMBeanExporter" class="org.springframework.batch.admin.jmx.BatchMBeanExporter"
p:jobService-ref="jobService"
p:defaultDomain="com.telegraaf.relatieplanet.findmatches" />
I got the same exception after these changes:
Code:
Caused by: org.springframework.jmx.export.UnableToRegisterMBe anException: Unable to register MBean [org.springframework.batch.admin.jmx.BatchMBeanExpo rter@1c70e21] with key 'batchMBeanExporter'; nested exception is javax.management.InstanceAlreadyExistsException: spring.application:name=batchMBeanExporter,type=Ba tchMBeanExporter
Should I re-define some more beans? Or, should I change some more properties in BatchMBeanExporter bean definition?

Originally Posted by
arno
looks like a conflict, did you try the domainName property in BatchMBeanExporter?
BTW, you should use the same version for all your Spring Batch dependencies.