Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Servlet based web-services in Axis?

 
Meenal Srivastva
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I�ve seen a few examples of deploying POJO based web-services in Axis, but never any of Servlet based web-services. Is it possible to do so?

Or is it possible to deploy a web-service where we have a �Bootstrap� kind of a Servlet (which can perform certain common stuff after �load on startup�), and the functionality exposed through a POJO?

If so, how do we modify the deploy.wsdd? What happens to the web.xml of the Servlet � project in this case?

Thanks,
Meenal
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure what you mean by servlet-based. Axis is a web app - it is servlet-based. Of course you can write a servlet yourself and handle the HTTP requests, but then you'd be duplicating a lot of Axis' functionality.

Can you tell us what prompted this question? Are there limitations with POJOs that you're trying to work around?
 
Meenal Srivastva
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Basically i want a bootstrap functionality to do certain things
(like log-in to an application on the server side).
The idea came from looking at a web.xml (where we can use the tag "load-on startup").
What would be its equivalent in a web-service implemented with POJO?
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's no need to use an "equivalent" - you can use the real thing. Since Axis is a web app, nothing stops you from adding other servlets that get loaded at startup time. Or -much better, since you really shouldn't be using servlets purely for initialization tasks- you can use a ServletContextListener.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!