Gonne Martens [
http://community.jboss.org/people/gonne] created the discussion
"JBoss 6.0: ignore persistence.xml in jar file"
To view the discussion, visit:
http://community.jboss.org/message/611442#611442
--------------------------------------------------------------
Hello!
As Sergey I want to ignore the persistence.xml in a jar lib placed in the lib folder of my
ear.
I tried to use the AbstractIgnoreDeployer by placing a jboss-ignore.txt file in
ear/META-INF.
Structure of my ear:
playground.ear
\ lib
\ playgroundTool.jar
*\ META-INF\persistence.xml*
\ META-INF
\ jboss-ignore.txt
\ playgroundEJB.jar
\ META-INF\persistence.xml
\ other jars and wars
content of jboss-ignore.txt:
lib/playgroundTool.jar/META-INF/persistence.xml
Debugging of the AbstractIgnoreDeployer showed me that the jboss-ignore.txt file is parsed
and creates an instance of CollectionNameIgnoreMechanism with
"lib/playgroundTool.jar/META-INF/persistence.xml" as ignored path. I am not sure
that this is correct, but through further debugging I could see that only the ignoreName()
method is called once for the name persistence.xml of the playground.ear deployment unit
(the variable ignoredNames is always null, so the method returns false). The method
ignorePath is never called.
How should it work right?
Please help!
Kind regards,
Gonne
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/611442#611442]
Start a new discussion in JBoss Microcontainer at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]