站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 .net API Documentation 英文版文档

AxisService (JBoss.Net API) - JBoss 4.0.1 sp1 .net API Documentation 英文版文档


org.jboss.net.axis.server
Class AxisService

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended byorg.jboss.system.ServiceMBeanSupport
          extended byorg.jboss.deployment.SubDeployerSupport
              extended byorg.jboss.net.axis.server.AxisService
All Implemented Interfaces:
AxisServiceMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.jboss.system.Service, org.jboss.system.ServiceMBean, org.jboss.deployment.SubDeployer, org.jboss.deployment.SubDeployerMBean

public class AxisService
extends org.jboss.deployment.SubDeployerSupport
implements AxisServiceMBean, javax.management.MBeanRegistration

A deployer service that installs Axis and manages Web-Services within the Jboss JMX environment. It is the base for all plain axis deployments, web service archive support and also (via an additional layer) WS4EE functionality.

Since:
27. September 2001
Version:
$Revision: 1.47.2.3 $
Author:
Christoph G. Jung

Nested Class Summary
 
Nested classes inherited from class org.jboss.deployment.SubDeployerSupport
org.jboss.deployment.SubDeployerSupport.ClassConfiguration
 
Field Summary
protected  org.apache.axis.server.AxisServer axisServer
          the engine belonging to this service
protected  XMLResourceProvider clientConfiguration
          the client configuration belonging to this service
protected  DocumentBuilder documentBuilder
          document builder
protected  InitialContext initialContext
          the initial context into which we bind external web-service proxies
protected  XMLResourceProvider serverConfiguration
          the server configuration belonging to this service
protected  boolean validateDTDs
          whether we are validating
 
Fields inherited from class org.jboss.deployment.SubDeployerSupport
CONFIGURATION, mainDeployer, nativePrefix, nativeSuffix, relativeOrder, suffixes, tempDeployDir
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.net.axis.server.AxisServiceMBean
OBJECT_NAME
 
Fields inherited from interface org.jboss.system.ServiceMBean
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Fields inherited from interface org.jboss.deployment.SubDeployer
CREATE_NOTIFICATION, DESTROY_NOTIFICATION, INIT_NOTIFICATION, RELATIVE_ORDER_100, RELATIVE_ORDER_200, RELATIVE_ORDER_300, RELATIVE_ORDER_400, RELATIVE_ORDER_500, RELATIVE_ORDER_600, RELATIVE_ORDER_700, RELATIVE_ORDER_800, RELATIVE_ORDER_900, START_NOTIFICATION, STOP_NOTIFICATION
 
Constructor Summary
AxisService()
          default
 
Method Summary
 boolean accepts(org.jboss.deployment.DeploymentInfo sdi)
           
protected  void copyChildren(Document sourceDoc, Element source, String match, Element target)
          this tiny helper copies all children of the given element that are elements and match the given name to the other element
 void create(org.jboss.deployment.DeploymentInfo sdi)
           
protected  void deployExternalWebService(Element deployElement)
          deploy an external web service reference
 void destroy(org.jboss.deployment.DeploymentInfo sdi)
           
 org.apache.axis.server.AxisServer getAxisServer()
          return the associated server
 org.apache.axis.EngineConfiguration getClientEngineConfiguration()
          return the associated client configuration
 org.apache.axis.EngineConfiguration getServerEngineConfiguration()
          return the associated server configuration
 void init(org.jboss.deployment.DeploymentInfo sdi)
           
 void start(org.jboss.deployment.DeploymentInfo sdi)
           
 void start(String deploymentName, Document doc, ClassLoader serviceLoader)
          start method for usage with immediately known documents
protected  void startAxisDeployment(String deploymentName, Element root, ClassLoader deploymentLoader)
          starts a single axis deployment
protected  void startService()
          start service means - initialise axis engine - register Axis servlet in WebContainer - contact the maindeployer
 void stop(org.jboss.deployment.DeploymentInfo sdi)
           
 void stop(Document doc)
          stop a given deployment by document
protected  void stopAxisDeployment(Element root)
          stops a single axis deployment
protected  void stopService()
          what to do to stop axis temporarily --> undeploy the servlet
protected  void undeployExternalWebService(Element deployElement)
          undeploys an external web service reference
 
Methods inherited from class org.jboss.deployment.SubDeployerSupport
addDeployableFiles, addDeployableJar, createService, deployUrl, destroyService, getRelativeOrder, getSuffixes, isDeployable, processNestedDeployments, setRelativeOrder, setSuffixes
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
create, destroy, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.deployment.SubDeployerMBean
getRelativeOrder, getSuffixes, setRelativeOrder, setSuffixes
 
Methods inherited from interface org.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 
Methods inherited from interface javax.management.MBeanRegistration
postDeregister, postRegister, preDeregister, preRegister
 
Methods inherited from interface org.jboss.deployment.SubDeployer
getServiceName
 

Field Detail

axisServer

protected org.apache.axis.server.AxisServer axisServer
the engine belonging to this service


clientConfiguration

protected XMLResourceProvider clientConfiguration
the client configuration belonging to this service


serverConfiguration

protected XMLResourceProvider serverConfiguration
the server configuration belonging to this service


initialContext

protected InitialContext initialContext
the initial context into which we bind external web-service proxies


documentBuilder

protected DocumentBuilder documentBuilder
document builder


validateDTDs

protected boolean validateDTDs
whether we are validating

Constructor Detail

AxisService

public AxisService()
default

Method Detail

copyChildren

protected void copyChildren(Document sourceDoc,
                            Element source,
                            String match,
                            Element target)
this tiny helper copies all children of the given element that are elements and match the given name to the other element


startAxisDeployment

protected void startAxisDeployment(String deploymentName,
                                   Element root,
                                   ClassLoader deploymentLoader)
                            throws org.jboss.deployment.DeploymentException
starts a single axis deployment

Throws:
org.jboss.deployment.DeploymentException

stopAxisDeployment

protected void stopAxisDeployment(Element root)
                           throws org.jboss.deployment.DeploymentException
stops a single axis deployment

Throws:
org.jboss.deployment.DeploymentException

deployExternalWebService

protected void deployExternalWebService(Element deployElement)
                                 throws org.jboss.deployment.DeploymentException
deploy an external web service reference

Throws:
org.jboss.deployment.DeploymentException

undeployExternalWebService

protected void undeployExternalWebService(Element deployElement)
undeploys an external web service reference


startService

protected void startService()
                     throws Exception
start service means - initialise axis engine - register Axis servlet in WebContainer - contact the maindeployer

Throws:
Exception

stopService

protected void stopService()
                    throws Exception
what to do to stop axis temporarily --> undeploy the servlet

Throws:
Exception

accepts

public boolean accepts(org.jboss.deployment.DeploymentInfo sdi)
Specified by:
accepts in interface org.jboss.deployment.SubDeployerMBean

init

public void init(org.jboss.deployment.DeploymentInfo sdi)
          throws org.jboss.deployment.DeploymentException
Specified by:
init in interface org.jboss.deployment.SubDeployerMBean
Throws:
org.jboss.deployment.DeploymentException

create

public void create(org.jboss.deployment.DeploymentInfo sdi)
            throws org.jboss.deployment.DeploymentException
Specified by:
create in interface org.jboss.deployment.SubDeployerMBean
Throws:
org.jboss.deployment.DeploymentException

start

public void start(org.jboss.deployment.DeploymentInfo sdi)
           throws org.jboss.deployment.DeploymentException
Specified by:
start in interface org.jboss.deployment.SubDeployerMBean
Throws:
org.jboss.deployment.DeploymentException

start

public void start(String deploymentName,
                  Document doc,
                  ClassLoader serviceLoader)
           throws org.jboss.deployment.DeploymentException
start method for usage with immediately known documents

Specified by:
start in interface AxisServiceMBean
Throws:
org.jboss.deployment.DeploymentException

stop

public void stop(org.jboss.deployment.DeploymentInfo sdi)
          throws org.jboss.deployment.DeploymentException
Specified by:
stop in interface org.jboss.deployment.SubDeployerMBean
Throws:
org.jboss.deployment.DeploymentException

stop

public void stop(Document doc)
          throws org.jboss.deployment.DeploymentException
stop a given deployment by document

Specified by:
stop in interface AxisServiceMBean
Throws:
org.jboss.deployment.DeploymentException

destroy

public void destroy(org.jboss.deployment.DeploymentInfo sdi)
             throws org.jboss.deployment.DeploymentException
Specified by:
destroy in interface org.jboss.deployment.SubDeployerMBean
Throws:
org.jboss.deployment.DeploymentException

getClientEngineConfiguration

public org.apache.axis.EngineConfiguration getClientEngineConfiguration()
return the associated client configuration

Specified by:
getClientEngineConfiguration in interface AxisServiceMBean

getServerEngineConfiguration

public org.apache.axis.EngineConfiguration getServerEngineConfiguration()
return the associated server configuration

Specified by:
getServerEngineConfiguration in interface AxisServiceMBean

getAxisServer

public org.apache.axis.server.AxisServer getAxisServer()
return the associated server

Specified by:
getAxisServer in interface AxisServiceMBean


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.