File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to set external config directory on classpath ?

 
Czeslaw Szczotka
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I’m running web application on jboss 5.1. This web application is deployed in external directory ( I have proper entry set in jboss conf/boostrap/profile.xml ) .
Today war contains all configuration files like ( xml –s, spring context xml -s, properties ). Is it possible separate those configuration files from war and put into external config directory ? What should I change in jboss configuration so those config file –s will be available on classpath ?
 
uttam kumar
Ranch Hand
Posts: 128
Eclipse IDE Java Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can add the folder into JBOSS_CLASSPATH in run.bat
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The server/xxx/conf directory is part of the classpath for a web app, so you could place the configuration files there.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic