• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Include folder to classpath in JBOSS7

 
Ranch Hand
Posts: 672
4
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 672
4
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic