Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

webservice client jar JNDI question

Fhomas Peeters
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

My current organisation is using webservices for authentication and such. For this they provide a wsdl file which I use contract-first. For this I use the maven-jaxb2-plugin to create my contracted objects.
A Spring applicationcontext is used to create a webservice template bean which uses the defined marchaller that uses the generated ws objects, a defaultUri and credentials.

The whole thing is packaged in a jar file with interface and implementation that incapsulates the whole WS thing. An application using it does not need to know the contract.

This default uri and the username/password is kept in a properties file, which is of course not very optimal, but hardcoding isn't either. Now I'd like to use jndi properties and such, but I honestly have no idea how to get started with that.

There is a bit of jndi info available in my organisation however the explanation is done using the web.xml and context.xml files. I'm at a loss on how to get started. Strangely I've never set up jndi in any project so far.

If anyone can point me in the right direction that would be great.

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic