[jboss-user] [JBoss Microcontainer] - JBoss 6.0: ignore persistence.xml in jar file

Gonne Martens do-not-reply at jboss.com
Wed Jun 22 12:32:15 EDT 2011


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&containerType=14&container=2114]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110622/a9a542b7/attachment.html 


More information about the jboss-user mailing list