This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Axis: Instantiating class with parameters

 
Joel Carklin
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I'm new to web services and Axis, I don't quite understand the workings yet, and hope I can explain myself clearly.
I'm using a wsdd file to inform the Axis server which class to instantiate when it receives a method call. The class contains the method logic for dealing with the call. These methods need to connect to databases and in some cases need to 'forward' the method call to another web service. The database connection data (address, passwords etc) as well as the endpoint of the web service the call is forwarded to, are dynamic, and are contained in configuration files for another app within which axis is 'embedded'. Is there any way to pass this information to axis so when it instantiates the class it does so with the correct parameters. Can Axis call a construcor which accepts parameters? Alternatively, can I point axis to an already instantiated object of the defined class, so it doesn't need to instatiate it at all?

Thanks
Joel
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic