[seam-dev] automatic loading of persistence units in JBoss AS 5

Ales Justin ales.justin at gmail.com
Tue Dec 2 09:07:31 EST 2008


It depends if you need any other metadata file from that META-INF directory.

If no, then simply exclude that META-INF as metadata path.

If yes, I currently cannot see how we can handle that,
unless you remove certain deployer.
How do others handle this?
As this is contradiction, since you expect for all other things to work 
out-of-the-box,
but not this one + you're not willing to change core configuration.
Beats me. :-)

Max Rydahl Andersen wrote:
> Could you give me an example on how to use jboss-structure.xml to have 
> it not pick-up META-INF/persistence.xml even if it is there
> (i.e. to allow a thirdparty library pick it up) ?
> 
> /max
> 
>>> We should fix AS 5 to have something that can allow it to be disabled 
>>> (preferably
>>> without having to change AS 5 structure deployers as Ales suggest)
>>
>> See my #4 --> jboss-structure.xml.
>> Changing structure deployers was more severe option. ;-)
>>
>> jboss-structure.xml is non invasive,
>> it will work on JBossAS, but won't interfere with other environments.
>>
>> Or what more do you want? :-)
> 
> 
> 



More information about the seam-dev mailing list