Aaron,

Thanks -- That helps a lot.

John

On 4/10/07, aaron aston <[EMAIL PROTECTED]> wrote:
John,

I went down this route a few weeks back:

MessageContext inContext =
MessageContext.getCurrentMessageContext(); // inbound soap
context (not needed)
MessageContext outContext =
(MessageContext)inContext.getOperationContext().getMessageContext("Out");
// outbound soap context

The trick was the static "getCurrentMessageContext()" call ...

I was implementing returned attachments;  I later abandoned this approach
and I no longer need the contexts from my POJO ...

Aaron.

P.S.  getCurrentMessageContext() doesn't seem to be in the Javadoc ?!



On 10-Apr-07, at 4:46 PM, John G. Norman wrote:

After reading the source for awhile, I can see that
org.apache.axis2.engine will init, startUp, and destroy on the service
at the appropriate times, passing in the ServiceContext -- that's
great!

But I still can't find any Axis class which calls a method on the
service with the message context as a parameter.

Is there some way to get the MessageContext passed into my POJO service?

:-)

On 4/9/07, John G. Norman <[EMAIL PROTECTED]> wrote:
The subject of this e-mail refers to a page which answers the question
"How do I make message contexts available to my service impl class?"

Here's the page:

    http://wso2.org/library/106

This page refers to the interface org.apache.axis2.Service

But I can't find it here:

    http://ws.apache.org/axis2/1_1_1/api/index.html

Where is this interface documented? Even better, in what jar is it
delivered?

As a bonus question:

Can the "service" mentioned be a POJO? I.e., a class named for
<parameter name="ServiceClass"> in services.xml when
org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver and
org.apache.axis2.rpc.receivers.RPCMessageReceiver are used?

Thanks!



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



_________________________________
Aaron Aston | Twisted Pair | 905.852.0950






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to