HiTo access the propery file change the ant script to include that file in WEB-INF/ folder and add in the war.

If you are using some frameworks like struts or spring its pretty easy to load property files. For struts you can refer to the example like how they load application message properties. For Spring i am giving you sample code belowif property file is likejdbc.driver=org.postgresql.Driverjdbc.url=jdbc:postgresql://localhost/testjdbc.user=postgresjdbc.password=

I have used another way I have added system/application properties to properties-service.xml, This file can be found at server/default/deploy.

To acess the variables declared in properties-service.xml , we will be able to access these varibles ${test.name}, This variable can be acceed from any config file like spring app-context.xml / web.xml . These properties can loaded prior to loading EJB/ any jar