• 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

Externalize JASIG CAS client properties

 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I have configured JASIG CAS SSO client properites in web.xml as recommended
https://wiki.jasig.org/display/CASC/Configuring+the+Jasig+CAS+Client+for+Java+in+the+web.xml

But how to externalize properties to be set in properties file? instead of directly configuring in web.xml?

Thanks for any help.

 
Bartender
Posts: 10780
71
Hibernate Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Nikes Shah wrote:But how to externalize properties to be set in properties file? instead of directly configuring in web.xml?


Question: Why would you want to?

Think about what web.xml is - it's the configuration for the program(s) contained in your jar. And since you have no idea where that might end up, doesn't it make sense to keep them relative to your jar hierarchy?

Now if this is for some vast multi-jar deployment requirement, it could possibly be worth keeping some sort of "template" in a fixed position; but I'd still be copying it into place and then re-jaring.

I suspect also that things like Maven (or simple Ant) may well have tools for that stuff, but I'm definitely no expert.

Winston
 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Winston,

Actually I found a way to use properties file to externalize.
Externalize Jasig Cas Properties

Reason is, we have separate team for development and deployment. Deployment team handles any environment specific properties (tomcat/shared) path.

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic