FileDocCategorySizeDatePackage
WebServiceMgrImpl.javaAPI DocGlassfish v2 API9296Fri May 04 22:23:28 BST 2007com.sun.enterprise.management.ext.wsmgmt

WebServiceMgrImpl

public class WebServiceMgrImpl extends com.sun.enterprise.management.support.AMXImplBase
Manager MBean for web services. This enumerates the list of the web services deployed in the domain. For each web service, detailed information can be obtained.

Fields Summary
Constructors Summary
public WebServiceMgrImpl()
Default constructor for WebServiceMgrImpl

    
Methods Summary
public voidaddRegistryConnectionResources(java.lang.String jndiName, java.lang.String description, java.lang.String type, java.util.Map properties)
Adds registry specific resources to the domain. Adds a connector connection pool and then proceeds to add a connector resource

param
jndiName of the connector-resource that points to the registry
param
description of the connector-resource and the connector-connection -pool name
param
type type of registry. {@link com.sun.appserv.management.ext.wsmgmt.WebServiceMgr#UDDI_KEY} {@link com.sun.appserv.management.ext.wsmgmt.WebServiceMgr#EBXML_KEY}
param
properties a map of key, value pair that encapsulate the properties of the connection pool that connects to the registry. Properties are {@link WebServiceMgr#PUBLISH_URL_KEY} {@link WebServiceMgr#QUERY_URL_KEY} {@link WebServiceMgr#USERNAME_KEY} {@link WebServiceMgr#PASSWORD_KEY}

        WebServiceMgrBackEnd.getManager().
                addRegistryConnectionResources(jndiName, description, type, properties);
    
public final java.lang.StringgetGroup()
Returns the Group information of this MBean.

return
the group name (AMX.GROUP_OTHER)

        return( AMX.GROUP_OTHER );
    
public java.util.MapgetWebServiceEndpointInfo(java.lang.Object name)
Return WebServiceInfo for a web service.

param
name Fully qualified name of the web service
return
WebServiceInfo for a web service

        if ( name instanceof String)
        {
            return TypeCast.asMap(
                WebServiceMgrBackEnd.getManager().getWebServiceInfoMap((String)name) );
        }
        else
        {
            throw new IllegalArgumentException();
        }
    
public java.util.MapgetWebServiceEndpointKeys()
Returns a Map containing web services and the fully qualified name for each web service. This fully qualified name must be used to get more details about this web service.

return
Map of web service name and its fully qualified name

        final Map<?,?>   m = WebServiceMgrBackEnd.getManager().getWebServicesMap();
        
        final Map<Object,String> result =
            TypeCast.checkMap( m, Object.class, String.class );
        
        return result;
    
public java.util.SetgetWebServiceEndpointObjectNameSet(java.lang.Object webServiceInfoKey, java.lang.String sName)
Returns the set of WebServiceEndpoint runtime mbeans for the specified Web Service Endpoint name on the specified server instance.

param
webServiceInfoKey Web Service Info Key
param
sName Name of the server instance
return
Set of WebServiceEndpoint runtime mbeans

        
        String objNamePat = WebServiceMgrBackEnd.getManager().
                getWebServiceEndpointObjectNames(webServiceInfoKey, sName);
        if (objNamePat == null) {
            return new HashSet<ObjectName>();
        } else {
            return getQueryMgr().queryPropsObjectNameSet(objNamePat);
        }
    
public java.lang.String[]listRegistryLocations()
Returns list of configured web service registry access points.

        return WebServiceMgrBackEnd.getManager().listRegistryLocations();
    
public voidpublishToRegistry(java.lang.String[] registryLocations, java.lang.Object webServiceEndpointKey, java.util.Map optional)
Publishes the WSDL of webService to the registries specified by the JNDI Names

param
registryLocations array of jndi names of the connector resources pointing to different registries
param
webServiceEndpointKey web service endpoint(key) whose WSDL has to be published; format is appName#moduleName#webserviceName This is opaque, as returned by the method getWebServiceEndpointKeys
param
optional optional map contains the following:
lbhost, host name or ip address of the loadbalancer where this
service is publicly exposed
lbport, loadbalancer port used to expose this service
lbsslport, secure port in loadbalancer used to expose this service
categories, Categories under which this web service endpoint should be
published. This is an array of Strings.
description, Description of the web service endpoint

        WebServiceMgrBackEnd.getManager().
                publishToRegistry(registryLocations, webServiceEndpointKey,
                optional);
    
public voidremoveRegistryConnectionResources(java.lang.String jndiNameOfRegistry)
Removes the registry specific resources from the domain. Peeks at the connector-resource element to obtain the connector-connection-pool name. Using this pool name, removes the connector-connection-pool, proceeds further to remove the connector-resource

param
jndiNameOfRegistry whose resources are to be removed from the domain

        WebServiceMgrBackEnd.getManager().removeRegistryConnectionResources(jndiNameOfRegistry);
    
public voidunpublishFromRegistry(java.lang.String[] registryLocations, java.lang.Object webServiceEndpointKey)
Unpublish WSDL of the specified webservice from the registries specified via their JNDI names

param
registryLocations array of jndi names of the connector resources pointing to different registries
param
webServiceEndpointKey web service endpoint(key) whose WSDL has to be published; format is appName#moduleName#webserviceName This is opaque, as returned by the method getWebServiceEndpointKeys

        WebServiceMgrBackEnd.getManager().
                unpublishFromRegistry(registryLocations,
                webServiceEndpointKey);