You deploy a registry to the Enterprise Server just as you would any connector module, except that if you are using the Admin Console, you must select a Registry Type value. After deployment, you can configure a registry in one of the following ways:
In the Admin Console, open the Web Services component, and select the Registry tab. For details, click the Help button in the Admin Console.
To configure a registry using the command line, use the following commands.
Set the registry type to com.sun.appserv.registry.ebxml or com.sun.appserv.registry.uddi. Use a backslash before each period as an escape character. For example:
asadmin create-resource-adapter-config --user adminuser --property com\.sun\.appserv\.registry\.ebxml=true MyReg |
Set any properties needed by the registry. For an ebXML registry, set the LifeCycleManagerURL and QueryManagerURL properties. In the following example, the system property REG_URL is set to http\\:\\/\\/siroe.com\\:6789\\/soar\\/registry\\/soap.
asadmin create-connector-connection-pool --user adminuser --raname MyReg --connectiondefinition javax.xml.registry.ConnectionFactory --property LifeCycleManagerURL=${REG_URL}:QueryManagerURL=${REG_URL} MyRegCP |
Set a JNDI name for the registry resource. For example:
asadmin create-connector-resource --user adminuser --poolname MyRegCP jndi-MyReg |
For details on these commands, see the Sun GlassFish Enterprise Server v2.1.1 Reference Manual.
After you deploy a web service, you can publish it to a registry in one of the following ways:
In the Admin Console, open the Web Services component, select the web service in the listing on the General tab, and select the Publish tab. For details, click the Help button in the Admin Console.
Use the asadmin publish-to-registry command. For example:
asadmin publish-to-registry --user adminuser --registryjndinames jndi-MyReg --webservicename my-ws#simple |
For details, see the Sun GlassFish Enterprise Server v2.1.1 Reference Manual.
The Sun Java Enterprise System (Java ES) includes a Sun-specific ebXML registry. For more information about the Java ES registry and registries in general, see “Chapter 20: Java API for XML Registries” in the Java EE 5 Tutorial.
A connector module that accesses UDDI registries is provided with the Enterprise Server in the as-install/lib/install/applications/jaxr-ra directory.
You can also use the JWSDP registry available at http://java.sun.com/webservices/jwsdp/index.jsp or the SOA registry available at http://www.sun.com/products/soa/index.jsp.