You deploy a registry to the Enterprise Server just as you would any module, except that if you are using the Administration Console, you must select a Registry Type value. After deployment, you can configure a registry in one of the following ways:
In the Administration Console, open the Web Services component, and select the Registry tab. For details, click the Help button in the Administration 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 v3 Prelude Reference Manual.
After you deploy a web service, you can publish it to a registry in one of the following ways:
In the Administration 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 Administration 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 v3 Prelude Reference Manual.
For more information about registries, see “Chapter 20: Java API for XML Registries” in the Java EE 5 Tutorial.
A 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 SOA registry available at http://www.sun.com/products/soa/index.jsp.
For further information, see https://metro.dev.java.net/.