Hi,

I tried to filter log messages by their sources:
I've used the five-parameters format for FileLogging MLET
and set the third parameter to the name of my bean.
It works.
But I would like to have several logs for different sources.
When I add the second FileLogging MLET, I get

javax.management.InstanceAlreadyExistsException: DefaultDomain:service=Logging,t
ype=File
        at com.sun.management.jmx.RepositorySupport.addMBean(RepositorySupport.j
ava:134)
        at com.sun.management.jmx.MBeanServerImpl.internal_addObject(MBeanServer
Impl.java:2352)
        at com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.ja
va:775)
        at javax.management.loading.MLet.getMBeansFromURL(MLet.java:540)
        at javax.management.loading.MLet.getMBeansFromURL(MLet.java:369)
        at org.jboss.Main.<init>(Main.java:123)
        at org.jboss.Main.<init>(Main.java:98)
        at org.jboss.Main$1.run(Main.java:88)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.jboss.Main.main(Main.java:79)

Is it possible to solve this problem?
For example, ClassPathExtension MLET can be repeated many times, why
FileLogging cannot?

Best regards,
 Oleg Nitz    




--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to