axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Kriger <andy.kri...@gmail.com>
Subject design question
Date Fri, 17 Dec 2004 21:53:28 GMT
I am fairly new to Axis and need some help with a design question.

I have a class that is being used to provide webservices. Thanks to
Axis, this class doesn't need to know that it is being used as a
webservice - it could be used as a command-line utility as a Swing
backend, etc. I deploy it in WEB-INF/classes and the
service-config.wsdd controls it's use as a webservice.

Here's the dilemma: I want to pass data about the request or data
created in request Handlers to this object and I want to keep this
separation of concerns intact. Is there any way I can get a reference
to the object being used for the webservice method call. Then I can
pass the data along such that when the webservice method is called the
data is there for the method to use?

For example, let's say I have webservice methods implemented by a
class called BusyBee. I want to grab the ID of the MessageContext
Session and use that as a key in my BusyBee.doSomething() method. I
could call MessageContext.getCurrentContext() in the method, but that
breaks the separation of concerns. So I have a method
BusyBee.setSessionId(). How can I call that method and apply the
MessageContext Session info from outside of BusyBee?

I'm sure the answer is right in front of me but I'm just not that
familiar with Axis yet to see it.

thx
andy

Mime
View raw message