Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Loading a properties file external to EAR

 
david lightman
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this seems like a pretty straight task, but just wanted clarification.

I want to have a properties file outside the app/EAR using WSAD/RAD- that loads during was test server startup and so i can simply swap out a file and restart the server again with different params etc, are these normally just placed in the properties directory (although im using WSAD/RSA6/RAD6 in prd we use only was5.1)

can anyone elaborate?

what exactly do i do?
[ January 23, 2006: Message edited by: david lightman ]
 
david lightman
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
anyone out there know the answer to this?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34973
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
David,
You can add any external directory you want to the server's classpath. This can be the WSAD server (in the server perspective) or the real server (in the admin console.)
 
Scott Selikoff
author
Saloon Keeper
Posts: 4028
18
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
...using Classloader.getResourceAsStream() on a live class loader.
 
Jawahar varadhan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do you do this in Tomcat 4.1 inside RAD? I would like my web-app use a properties file in an external folder. It is easy to do this on WSAD, but not in RAD.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34973
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jawahar,
In RAD 6, you need to go into the admin console to set this path.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic