Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Initizalization parameters for Apache Soap server classes?  RSS feed

 
Buzz Andersen
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This may be a stupid question, but no book, website, or tutorial that I have ever seen has answered this for me:
I am using Apache Soap via Tomcat, and I was wondering if there is any way to give my server-side class an initialization parameter, in the same way you can use the <init-param> tag in a web.xml file to give a servlet an initialization parameter. Perhaps through the deployment descriptor?
I'd really like to find a different way to do this, because right now I have a server-side class in production that has the path to it's configuration data hard-coded....
Buzz
 
Buzz Andersen
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Alright--for the benefit of posterity: I solved this problem by using a ResourceBundle (.properties file) located on the classpath. My class now simply looks for a specific ResourceBundle, which can be anywhere on the classpath.
Buzz
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!