logging - How to reference jboss-client.jar as a module? -


I am using jboss 7.1.1.final and I have a logging module that I have written The org.jboss .logmanager.ExtHandler and writes the log to DB, the problem is that the ExtHandler class is in jboss-client.jar, which is under JBOSS_HOME / bin / client.

So I have to refer to it in my reference logging module, but it seems wrong to copy under the module because it makes duplication, is there a better way to go to my logging module, Depends on the jar?

Here's my module Xml is:

  & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt ;! - OG-Logging represents the module - & gt; & Lt; Module xmlns = "vase: jboss: module: 1.1" name = "com.mycomp" & gt; & Lt; Resources & gt; & Lt; Resource-root path = "OG-logging-1.0.jar" /> & Lt; / Resources & gt; & Lt; Dependency & gt; & Lt; System export = "wrong" & gt; & Lt; Paths & gt; & Lt; Path name = "javax / naming" /> & Lt; Path name = "javax / nomination / directory" /> & Lt; Path name = "javax / naming / event" /> & Lt; Path name = "javax / naming / ldap" /> & Lt; Path name = "javax / naming / spi" /> & Lt; Path name = "javax / sql" /> & Lt; / Paths & gt; & Lt; / System & gt; & Lt; Module name = "org.apache.log4j" /> & Lt; Module name = "org.apache.commons.lang" /> & Lt; Module name = "com.oracle.ojdbc" /> & Lt; / Dependencies & gt; & Lt; / Module & gt;  

short answer: Read JBOSS_HOME / bin / client / README.txt

Long answer:

Make your deputy your module. Add to XML:

  org.jboss.logging: jboss-logging org.jboss.logmanager: jboss-logmanager  

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -