axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From santosh.jo...@bt.com
Subject RE: From Handler to Service
Date Fri, 11 Jul 2003 15:31:51 GMT
Ian,

What would happen in a multi-threaded environment, when multiple requests
are running through the server, will this still work? Just wanted to
enquire!!

Regards,

Santosh

-----Original Message-----
From: ian_d_stewart@bankone.com [mailto:ian_d_stewart@bankone.com]
Sent: Friday, July 11, 2003 4:12 PM
To: axis-user@ws.apache.org
Subject: Re: From Handler to Service




You can store any arbitrary data in the MessageContext, via getProperty
()/setProperty().  You can then access this information from within your
service by calling MessageContext.getCurrentContext().

Example:

Handler.invoke(MessageContext context) {
    context.setProperty("org", "research.ge.com");
}

Service.doSomething() {
    MessageContext context = MessageContext.getCurrentContext();
    String org = (String)context.getProperty("org");
}


HTH,
Ian

Ian D. Stewart
Open Systems Engineer II
Enterprise Midrange - Bank One Infrastructure & Operations
ian_d_stewart@bankone.com
(614) 213-6100




"Chen, Li (Research, YOH)" <chenl@research.ge.com> on 07/11/2003 10:59:14
AM

Please respond to axis-user@ws.apache.org

To:   axis-user@ws.apache.org
cc:

Subject:  From Handler to Service



Hi all,
     Is there any way to pass information (say, a String value) from a
handler to a service? The service is "registered" in the deploy.wsdd file.

Thanks.

     g                                     GE Global Research

____________________________________________________________________________

______________________________________________
     Li (Lee) Ye Chen
     Intern - Information Technology Management Services
     One Research Circle, KWC-255D
     Niskayuna, NY 12309
        (518) 387-4556









This transmission may contain information that is privileged, confidential
and/or exempt from disclosure under applicable law. If you are not the
intended recipient, you are hereby notified that any disclosure, copying,
distribution, or use of the information contained herein (including any
reliance thereon) is STRICTLY PROHIBITED. If you received this transmission
in error, please immediately contact the sender and destroy the material in
its entirety, whether in electronic or hard copy format. Thank you.


Mime
View raw message