L.S.,

As far as I know, you cannot have a separate auditor per service assembly. You'll have to configure the auditor in the container's config file (conf/servicemix.xml). You can extend on the JDBC auditor to filter out only the messages from a specific service assembly.

Gert

newmax wrote:
Per documentation, following is the code required to enable auditing.

<audit:jdbcAuditor container="#jbi" autoStart="true"> <audit:dataSource> <bean class="org.mysql.jdbc2.optional.SimpleDataSource"> <property name="databaseName" value="servicemixDB" /> <property name="user" value="user" /> <property name="password" value="password" /> </bean> </audit:dataSource>
In my case, I have service assembly consisting of several service units. I
would like to enable auditing for all the service units in this SA.
Following are my questions:

1. How do I get reference to JBI container as required by jdbcAuditor
2. If I initialize one auditor for each of the SAs, how will each of the
auditors get registered with JMX
3. Is there any other mechanism to capture all the message in flowing in NMR
for a given SA.

Your reponse will be appreciated!

Thanks,
GD

Reply via email to