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

Include folder to classpath in JBOSS7

 
Prasad Krishnegowda
Ranch Hand
Posts: 665
4
Eclipse IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Currently, we are using JBOSS 5.1.0, in our application. Now, we have decided to migrate it to JBOSS7. The problem is as below.
We have a config folder in where we have around 7-8 properties file, which are referred by our application. In JBOSS 5, we pasted this config file inside JBOSS_HOME and edited the run.bat/run.sh file, to include this folder in JBOSS classpath and in Java file, we used to access it.

Now, in JBOSS7, we are not able to do this. Can anyone help me in achieving the same. Do we need to do some configuration in stanalone.xml/domain.xml? Please help on the same.

P:S: we are using jboss-as-7.1.1.Final
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In earlier versions of JBoss AS, such as 5.1, the server/xxx/conf directory was always in the classpath, so placing a properties file in there enabled you to do a getResource lookup. I haven't tried this yet, bu in 7.1, try placing the properties file in standalone/configuration.
 
Prasad Krishnegowda
Ranch Hand
Posts: 665
4
Eclipse IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Peter for the reply, but, putting properties file into standalone/configurations didn't work, however, I found an solution by loading the properties file as modules.
 
Paco Perez
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. I'm new to jBoss 7.1.1 and i'm very interested in doing what you have managed loading properties files as modules, because i've the same problem.

I come from jBoss 4.2.2 world and i used to load properties and resources using the classpath but i don't know how to change it in this jBoss version. is it possible? If not, i would like to load my properties files as modules.

Could you explain in a few lines the method?

Thank you very much.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic