You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Veprinsky, Michael" <Mi...@dig.com> on 2006/07/26 01:47:07 UTC

Using factory to instantiate service object

Basically, is there a way to supply a factory to instantiate service
object with Axis (currently using Axis 1.4)? Primary reason is that I
want to provide a Proxy around the class to handle basic input
validation and Exception->AxisFault conversion and generic stuff like
that.
 
Are there other ways to do this (Handlers maybe)?
 
Thank you,
-Michael
___________________
Words can never express what words can never express
                          -- /usr/bin/fortune
 

Re: Using factory to instantiate service object

Posted by Martin Gainty <mg...@hotmail.com>.
MessageTake a look in the samples folder for this input handler..

\META-INF\module.xml

<module name="logging" class="userguide.loggingmodule.LoggingModule">
    <inflow>
        <handler name="InFlowLogHandler" class="userguide.loggingmodule.LogHandler">
            <order phase="loggingPhase"/>
        </handler>
    </inflow>

where the LogHandler.java file is declared as

package userguide.loggingmodule;
public class LogHandler extends AbstractHandler implements Handler {

Martin --
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



  ----- Original Message ----- 
  From: Veprinsky, Michael 
  To: axis-user@ws.apache.org 
  Sent: Tuesday, July 25, 2006 7:47 PM
  Subject: Using factory to instantiate service object


  Basically, is there a way to supply a factory to instantiate service object with Axis (currently using Axis 1.4)? Primary reason is that I want to provide a Proxy around the class to handle basic input validation and Exception->AxisFault conversion and generic stuff like that.

  Are there other ways to do this (Handlers maybe)?

  Thank you,
  -Michael
  ___________________
  Words can never express what words can never express
                            -- /usr/bin/fortune