Friday, 19 March 2010

Ant Ear -Adding weblogic-application.xml

One of the extensions we can add to an application is for weblogic.

We can do so by adding an xml called weblogic-application.xml to an ear's meta-inf directory and also mention the preferences.


To add the same to the ear file simply update you ant target for creating the ear file to something like this:

<ear earfile="${ear file name}" appxml="${meta-inf-directory}/application.xml">
<metainf dir="${meta-inf-directory}" excludes="application.xml, .mf">
</metainf>


One reason you we might want to add this file to your ear file is when we want to provide class loader filtering for certain packages.

No comments:

Post a Comment