http://git-wip-us.apache.org/repos/asf/juddi/blob/7c8594ca/juddi-gui-test/juddi_install_data_node2/root_BusinessEntity.xml ---------------------------------------------------------------------- diff --git a/juddi-gui-test/juddi_install_data_node2/root_BusinessEntity.xml b/juddi-gui-test/juddi_install_data_node2/root_BusinessEntity.xml new file mode 100644 index 0000000..8c923d9 --- /dev/null +++ b/juddi-gui-test/juddi_install_data_node2/root_BusinessEntity.xml @@ -0,0 +1,668 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Copyright 2001-2009 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ --> + <!-- + This file contains the root business entity structure that represents your registry. The key chosen (or generated) for this entity will serve + as the node id for all entities published within the registry. The services contained within this business entity reflect the UDDI APIs that + you wish to support (adding or subtracting the services here will not enable/disable them, simply add/omit them from being discovered via UDDI). + + The top-level business entity and sub-entities all use keys as unique identifiers. They are left blank by default which means the system will + generate a key (generated as root partition with GUID appended). You can choose to create your own, human-readable keys but they must match + the root key generator created in the root_tModelKeyGen.xml file. Matching means they must equal the root key generator with the keyword + "keygenerator" replaced by your own string. + + Example: + + root_tModelKeyGen.xml key is uddi:www.mycompany.com:registry:keygenerator + + Legal user-defined keys are: + + uddi:www.mycompany.com:registry:ubr-node (for the businessKey) + uddi:www.mycompany.com:registry:inquiry-service (for the inquiry service service key) + uddi:www.mycompany.com:registry:inquiry-service-wsdlDeployment (for the inquiry service binding template that represents the WSDL) + + +See below for other fields that you may want to edit... +--> +<businessEntity xmlns="urn:uddi-org:api_v3" xmlns:xml="http://www.w3.org/XML/1998/namespace" businessKey="uddi:another.juddi.apache.org:businesses-asf"> + <!-- Change the name field to represent the name of your registry --> + <name xml:lang="en">An Apache jUDDI Node (2)</name> + <!-- Change the description field to provided a brief description of your registry --> + <description xml:lang="en">This is a UDDI registry node as implemented by Apache jUDDI.</description> + <discoveryURLs> + <!-- This discovery URL should point to the home installation URL of jUDDI --> + <discoveryURL useType="homepage">${juddi.server.baseurl}</discoveryURL> + </discoveryURLs> + <categoryBag> + <keyedReference tModelKey="uddi:uddi.org:categorization:nodes" keyValue="node" keyName="uddi.org:categorization:nodes"/> + </categoryBag> + <businessServices> + <!-- As mentioned above, you may want to provide user-defined keys for these (and the services/bindingTemplates below. Services that you + don't intend to support should be removed entirely --> + <!-- inquiry v3 --> + <businessService serviceKey="uddi:another.juddi.apache.org:services-inquiry" businessKey="uddi:another.juddi.apache.org:businesses-asf"> + <name xml:lang="en">UDDI Inquiry Service</name> + <description xml:lang="en">Web Service supporting UDDI Inquiry API</description> + <bindingTemplates> + <bindingTemplate bindingKey="uddi:another.juddi.apache.org:servicebindings-inquiry-ws" serviceKey="uddi:another.juddi.apache.org:services-inquiry"> + <description>UDDI Inquiry API V3</description> + <!-- This should be changed to the WSDL URL of the inquiry API. An access point inside a bindingTemplate will be found for every service + in this file. They all must point to their API's WSDL URL --> + <accessPoint useType="wsdlDeployment">${juddi.server.baseurl}/services/inquiry?wsdl</accessPoint> + <tModelInstanceDetails> + <tModelInstanceInfo tModelKey="uddi:uddi.org:v3_inquiry"> + <instanceDetails> + <instanceParms> + <![CDATA[ + <?xml version="1.0" encoding="utf-8" ?> + <UDDIinstanceParmsContainer xmlns="urn:uddi-org:policy_v3_instanceParms"> + <defaultSortOrder> + uddi:uddi.org:sortorder:binarysort + </defaultSortOrder> + </UDDIinstanceParmsContainer> + ]]> + </instanceParms> + </instanceDetails> + </tModelInstanceInfo> + <tModelInstanceInfo tModelKey="uddi:uddi.org:protocol:soap" /> + <tModelInstanceInfo tModelKey="uddi:uddi.org:transport:http" /> + + </tModelInstanceDetails> + <categoryBag> + <keyedReference keyName="uddi-org:types:wsdl" keyValue="wsdlDeployment" tModelKey="uddi:uddi.org:categorization:types"/> + </categoryBag> + </bindingTemplate> + + <bindingTemplate bindingKey="uddi:another.juddi.apache.org:servicebindings-inquiry-ws-ssl" serviceKey="uddi:another.juddi.apache.org:services-inquiry"> + <description>UDDI Inquiry API V3 SSL</description> + <!-- This should be changed to the WSDL URL of the inquiry API. An access point inside a bindingTemplate will be found for every service + in this file. They all must point to their API's WSDL URL --> + <accessPoint useType="wsdlDeployment">${juddi.server.baseurlsecure}/services/inquiry?wsdl</accessPoint> + <tModelInstanceDetails> + <tModelInstanceInfo tModelKey="uddi:uddi.org:v3_inquiry"> + <instanceDetails> + <instanceParms> + <![CDATA[ + <?xml version="1.0" encoding="utf-8" ?> + <UDDIinstanceParmsContainer xmlns="urn:uddi-org:policy_v3_instanceParms"> + <defaultSortOrder> + uddi:uddi.org:sortorder:binarysort + </defaultSortOrder> + </UDDIinstanceParmsContainer> + ]]> + </instanceParms> + </instanceDetails> + </tModelInstanceInfo> + <tModelInstanceInfo tModelKey="uddi:uddi.org:protocol:serverauthenticatedssl3"/> + <tModelInstanceInfo tModelKey="uddi:uddi.org:protocol:soap" /> + <tModelInstanceInfo tModelKey="uddi:uddi.org:transport:http" /> + + </tModelInstanceDetails> + <categoryBag> + <keyedReference keyName="uddi-org:types:wsdl" keyValue="wsdlDeployment" tModelKey="uddi:uddi.org:categorization:types"/> + </categoryBag> + </bindingTemplate> + </bindingTemplates> + <categoryBag> + <keyedReference tModelKey="uddi:uddi.org:xml:namespace" keyName="uddi-org:xml:namespace" keyValue="urn:uddi-org:v3_service"/> + <keyedReference tModelKey="uddi:uddi.org:wsdl:types" keyName="uddi-org:wsdl:types" keyValue="service"/> + <keyedReference tModelKey="uddi:uddi.org:xml:localname" keyName="uddi-org:xml:localName" keyValue="UDDIInquiryService"/> + </categoryBag> + </businessService> + <!-- inquiry v2 --> + <businessService serviceKey="uddi:another.juddi.apache.org:services-inquiryv2" businessKey="uddi:another.juddi.apache.org:businesses-asf"> + <name xml:lang="en">UDDIv2 Inquiry Service</name> + <description xml:lang="en">Web Service supporting UDDIv2 Inquiry API</description> + <bindingTemplates> + <bindingTemplate bindingKey="uddi:another.juddi.apache.org:servicebindings-inquiryv2-ws" serviceKey="uddi:another.juddi.apache.org:services-inquiryv2"> + <description>UDDI Inquiry API V2</description> + <!-- This should be changed to the WSDL URL of the inquiry API. An access point inside a bindingTemplate will be found for every service + in this file. They all must point to their API's WSDL URL --> + <accessPoint useType="wsdlDeployment">${juddi.server.baseurl}/services/inquiryv2?wsdl</accessPoint> + <tModelInstanceDetails> + <tModelInstanceInfo tModelKey="uddi:uddi.org:protocol:soap" /> + <tModelInstanceInfo tModelKey="uddi:uddi.org:transport:http" /> + + </tModelInstanceDetails> + <categoryBag> + <keyedReference keyName="uddi-org:types:wsdl" keyValue="wsdlDeployment" tModelKey="uddi:uddi.org:categorization:types"/> + </categoryBag> + </bindingTemplate> + + <bindingTemplate bindingKey="uddi:another.juddi.apache.org:servicebindings-inquiryv2-ws-ssl" serviceKey="uddi:another.juddi.apache.org:services-inquiryv2"> + <description>UDDI Inquiry API V3 SSL</description> + <!-- This should be changed to the WSDL URL of the inquiry API. An access point inside a bindingTemplate will be found for every service + in this file. They all must point to their API's WSDL URL --> + <accessPoint useType="wsdlDeployment">${juddi.server.baseurlsecure}/services/inquiryv2?wsdl</accessPoint> + <tModelInstanceDetails> + <tModelInstanceInfo tModelKey="uddi:uddi.org:protocol:serverauthenticatedssl3"/> + <tModelInstanceInfo tModelKey="uddi:uddi.org:protocol:soap" /> + <tModelInstanceInfo tModelKey="uddi:uddi.org:transport:http" /> + </tModelInstanceDetails> + <categoryBag> + <keyedReference keyName="uddi-org:types:wsdl" keyValue="wsdlDeployment" tModelKey="uddi:uddi.org:categorization:types"/> + </categoryBag> + </bindingTemplate> + </bindingTemplates> + <categoryBag> + <keyedReference tModelKey="uddi:uddi.org:xml:namespace" keyName="uddi-org:xml:namespace" keyValue="urn:uddi-org:inquiry_v2"/> + <keyedReference tModelKey="uddi:uddi.org:wsdl:types" keyName="uddi-org:wsdl:types" keyValue="service"/> + <keyedReference tModelKey="uddi:uddi.org:xml:localname" keyName="uddi-org:xml:localName" keyValue="Inquire"/> + </categoryBag> + </businessService> + <!-- inquiry v3 REST --> + <businessService serviceKey="uddi:another.juddi.apache.org:services-inquiry-rest" businessKey="uddi:another.juddi.apache.org:businesses-asf"> + <name xml:lang="en">UDDI Inquiry REST Service</name> + <description xml:lang="en">Web Service supporting UDDI Inquiry API via HTTP GET</description> + <bindingTemplates> + <bindingTemplate bindingKey="uddi:another.juddi.apache.org:servicebindings-inquiry-rest" serviceKey="uddi:another.juddi.apache.org:services-inquiry-rest"> + <description>UDDI Inquiry API V3 REST</description> + <tModelInstanceDetails> + <tModelInstanceInfo tModelKey="uddi:uddi.org:transport:http" /> + <tModelInstanceInfo tModelKey="uddi:uddi.org:protocol:rest" /> + </tModelInstanceDetails> + <accessPoint useType="wadlDeployment">${juddi.server.baseurl}/services/inquiryRest?_wadl</accessPoint> + <categoryBag> + <keyedReference keyName="uddi-org:types:wadl" keyValue="wadlDeployment" tModelKey="uddi:uddi.org:categorization:types"/> + </categoryBag> + </bindingTemplate> + <bindingTemplate bindingKey="uddi:another.juddi.apache.org:servicebindings-inquiry-rest-ssl" serviceKey="uddi:another.juddi.apache.org:services-inquiry-rest"> + <description>UDDI Inquiry API V3 REST SSL</description> + <accessPoint useType="wadlDeployment">${juddi.server.baseurlsecure}/services/inquiryRest?_wadl</accessPoint> + <tModelInstanceDetails> + <tModelInstanceInfo tModelKey="uddi:uddi.org:protocol:serverauthenticatedssl3"/> + <tModelInstanceInfo tModelKey="uddi:uddi.org:transport:http" /> + <tModelInstanceInfo tModelKey="uddi:uddi.org:protocol:rest" /> + </tModelInstanceDetails> + <categoryBag> + <keyedReference keyName="uddi-org:types:wadl" keyValue="wadlDeployment" tModelKey="uddi:uddi.org:categorization:types"/> + </categoryBag> + </bindingTemplate> + </bindingTemplates> + <categoryBag> + <keyedReference tModelKey="uddi:uddi.org:xml:namespace" keyName="uddi-org:xml:namespace" keyValue="localhost"/> + <keyedReference tModelKey="uddi:uddi.org:wadl:types" keyName="uddi-org:wadl:types" keyValue="service"/> + <keyedReference tModelKey="uddi:uddi.org:xml:localname" keyName="uddi-org:xml:localName" keyValue="Servicename"/> + </categoryBag> + </businessService> + <!-- publish v3 --> + <businessService serviceKey="uddi:another.juddi.apache.org:services-publish" businessKey="uddi:another.juddi.apache.org:businesses-asf"> + <name xml:lang="en">UDDI Publish Service</name> + <description xml:lang="en">Web Service supporting UDDI Publish API</description> + <bindingTemplates> + <bindingTemplate bindingKey="uddi:another.juddi.apache.org:servicebindings-publish-ws" serviceKey="uddi:another.juddi.apache.org:services-publish"> + <description>UDDI Publication API V3</description> + <accessPoint useType="wsdlDeployment">${juddi.server.baseurl}/services/publish?wsdl</accessPoint> + <tModelInstanceDetails> + <tModelInstanceInfo tModelKey="uddi:uddi.org:v3_publication"> + <instanceDetails> + <instanceParms> + <![CDATA[ + <?xml version="1.0" encoding="utf-8" ?> + <UDDIinstanceParmsContainer xmlns="urn:uddi-org:policy_v3_instanceParms"> + <authInfoUse>required</authInfoUse> + </UDDIinstanceParmsContainer> + ]]> + </instanceParms> + </instanceDetails> + </tModelInstanceInfo> + <tModelInstanceInfo tModelKey="uddi:uddi.org:protocol:soap" /> + <tModelInstanceInfo tModelKey="uddi:uddi.org:transport:http" /> + + </tModelInstanceDetails> + <categoryBag> + <keyedReference keyName="uddi-org:types:wsdl" keyValue="wsdlDeployment" tModelKey="uddi:uddi.org:categorization:types"/> + </categoryBag> + </bindingTemplate> + + <bindingTemplate bindingKey="uddi:another.juddi.apache.org:servicebindings-publish-ws-ssl" serviceKey="uddi:another.juddi.apache.org:services-publish"> + <description>UDDI Publication API V3 SSL</description> + <accessPoint useType="wsdlDeployment">${juddi.server.baseurlsecure}/services/publish?wsdl</accessPoint> + <tModelInstanceDetails> + <tModelInstanceInfo tModelKey="uddi:uddi.org:v3_publication"> + <instanceDetails> + <instanceParms> + <![CDATA[ + <?xml version="1.0" encoding="utf-8" ?> + <UDDIinstanceParmsContainer xmlns="urn:uddi-org:policy_v3_instanceParms"> + <authInfoUse>required</authInfoUse> + </UDDIinstanceParmsContainer> + ]]> + </instanceParms> + </instanceDetails> + </tModelInstanceInfo> + <tModelInstanceInfo tModelKey="uddi:uddi.org:v3_security" /> + <tModelInstanceInfo tModelKey="uddi:uddi.org:protocol:soap" /> + <tModelInstanceInfo tModelKey="uddi:uddi.org:transport:http" /> + <tModelInstanceInfo tModelKey="uddi:uddi.org:protocol:serverauthenticatedssl3" /> + + </tModelInstanceDetails> + <categoryBag> + <keyedReference keyName="uddi-org:types:wsdl" keyValue="wsdlDeployment" tModelKey="uddi:uddi.org:categorization:types"/> + </categoryBag> + </bindingTemplate> + + </bindingTemplates> + <categoryBag> + <keyedReference tModelKey="uddi:uddi.org:xml:namespace" keyName="uddi-org:xml:namespace" keyValue="urn:uddi-org:v3_service"/> + <keyedReference tModelKey="uddi:uddi.org:wsdl:types" keyName="uddi-org:wsdl:types" keyValue="service"/> + <keyedReference tModelKey="uddi:uddi.org:xml:localname" keyName="uddi-org:xml:localName" keyValue="UDDIPublicationService"/> + </categoryBag> + </businessService> + + <!-- publish v2 --> + <businessService serviceKey="uddi:another.juddi.apache.org:services-publishv2" businessKey="uddi:another.juddi.apache.org:businesses-asf"> + <name xml:lang="en">UDDIv2 Publish Service</name> + <description xml:lang="en">Web Service supporting UDDIv2 Publish API</description> + <bindingTemplates> + <bindingTemplate bindingKey="uddi:another.juddi.apache.org:servicebindings-publishv2-ws" serviceKey="uddi:another.juddi.apache.org:services-publishv2"> + <description>UDDIv2 Publication API V2</description> + <accessPoint useType="wsdlDeployment">${juddi.server.baseurl}/services/publishv2?wsdl</accessPoint> + <tModelInstanceDetails> + <tModelInstanceInfo tModelKey="uddi:uddi.org:protocol:soap" /> + <tModelInstanceInfo tModelKey="uddi:uddi.org:transport:http" /> + </tModelInstanceDetails> + <categoryBag> + <keyedReference keyName="uddi-org:types:wsdl" keyValue="wsdlDeployment" tModelKey="uddi:uddi.org:categorization:types"/> + </categoryBag> + </bindingTemplate> + <bindingTemplate bindingKey="uddi:another.juddi.apache.org:servicebindings-publishv2-ws-ssl" serviceKey="uddi:another.juddi.apache.org:services-publishv2"> + <description>UDDI Publication API V2 SSL</description> + <accessPoint useType="wsdlDeployment">${juddi.server.baseurlsecure}/services/publishv2?wsdl</accessPoint> + <tModelInstanceDetails> + <tModelInstanceInfo tModelKey="uddi:uddi.org:protocol:soap" /> + <tModelInstanceInfo tModelKey="uddi:uddi.org:transport:http" /> + <tModelInstanceInfo tModelKey="uddi:uddi.org:protocol:serverauthenticatedssl3" /> + </tModelInstanceDetails> + <categoryBag> + <keyedReference keyName="uddi-org:types:wsdl" keyValue="wsdlDeployment" tModelKey="uddi:uddi.org:categorization:types"/> + </categoryBag> + </bindingTemplate> + </bindingTemplates> + <categoryBag> + <keyedReference tModelKey="uddi:uddi.org:xml:namespace" keyName="uddi-org:xml:namespace" keyValue="urn:uddi-org:inquiry_v2"/> + <keyedReference tModelKey="uddi:uddi.org:wsdl:types" keyName="uddi-org:wsdl:types" keyValue="service"/> + <keyedReference tModelKey="uddi:uddi.org:xml:localname" keyName="uddi-org:xml:localName" keyValue="Publish"/> + </categoryBag> + </businessService> + + <!-- security v3 --> + + <businessService serviceKey="uddi:another.juddi.apache.org:services-security" businessKey="uddi:another.juddi.apache.org:businesses-asf"> + <name xml:lang="en">UDDI Security Service</name> + <description xml:lang="en">Web Service supporting UDDI Security API</description> + <bindingTemplates> + <bindingTemplate bindingKey="uddi:another.juddi.apache.org:servicebindings-security-ws" serviceKey="uddi:another.juddi.apache.org:services-security"> + <description>UDDI Security API V3</description> + <accessPoint useType="wsdlDeployment">${juddi.server.baseurl}/services/security?wsdl</accessPoint> + <tModelInstanceDetails> + <tModelInstanceInfo tModelKey="uddi:uddi.org:v3_security" /> + <tModelInstanceInfo tModelKey="uddi:uddi.org:protocol:soap" /> + <tModelInstanceInfo tModelKey="uddi:uddi.org:transport:http" /> + <tModelInstanceInfo tModelKey="uddi:uddi.org:protocol:serverauthenticatedssl3" /> + + </tModelInstanceDetails> + <categoryBag> + <keyedReference keyName="uddi-org:types:wsdl" keyValue="wsdlDeployment" tModelKey="uddi:uddi.org:categorization:types"/> + </categoryBag> + </bindingTemplate> + <bindingTemplate bindingKey="uddi:another.juddi.apache.org:servicebindings-security-ws-ssl" serviceKey="uddi:another.juddi.apache.org:services-security"> + <description>UDDI Security API V3 SSL</description> + <accessPoint useType="wsdlDeployment">${juddi.server.baseurlsecure}/services/security?wsdl</accessPoint> + <tModelInstanceDetails> + <tModelInstanceInfo tModelKey="uddi:uddi.org:v3_security" /> + <tModelInstanceInfo tModelKey="uddi:uddi.org:protocol:soap" /> + <tModelInstanceInfo tModelKey="uddi:uddi.org:transport:http" /> + <tModelInstanceInfo tModelKey="uddi:uddi.org:protocol:serverauthenticatedssl3" /> + + </tModelInstanceDetails> + <categoryBag> + <keyedReference keyName="uddi-org:types:wsdl" keyValue="wsdlDeployment" tModelKey="uddi:uddi.org:categorization:types"/> + </categoryBag> + </bindingTemplate> + </bindingTemplates> + <categoryBag> + <keyedReference tModelKey="uddi:uddi.org:xml:namespace" keyName="uddi-org:xml:namespace" keyValue="urn:uddi-org:v3_service"/> + <keyedReference tModelKey="uddi:uddi.org:wsdl:types" keyName="uddi-org:wsdl:types" keyValue="service"/> + <keyedReference tModelKey="uddi:uddi.org:xml:localname" keyName="uddi-org:xml:localName" keyValue="UDDISecurityService"/> + </categoryBag> + </businessService> + <!-- custody v3 --> + <businessService serviceKey="uddi:another.juddi.apache.org:services-custodytransfer" businessKey="uddi:another.juddi.apache.org:businesses-asf"> + <name xml:lang="en">UDDI Custody and Ownership Transfer Service</name> + <description xml:lang="en">Web Service supporting UDDI Custody and Ownership Transfer API</description> + <bindingTemplates> + <bindingTemplate bindingKey="uddi:another.juddi.apache.org:servicebindings-custodytransfer-ws" serviceKey="uddi:another.juddi.apache.org:services-custodytransfer"> + <description>UDDI Custody and Ownership Transfer API V3</description> + <accessPoint useType="wsdlDeployment">${juddi.server.baseurl}/services/custody-transfer?wsdl</accessPoint> + <tModelInstanceDetails> + <tModelInstanceInfo tModelKey="uddi:uddi.org:v3_ownership_transfer"> + <instanceDetails> + <instanceParms> + <![CDATA[ + <?xml version="1.0" encoding="utf-8" ?> + <UDDIinstanceParmsContainer + xmlns="urn:uddi-org:policy_v3_instanceParms"> + <authInfoUse>required</authInfoUse> + </UDDIinstanceParmsContainer> + ]]> + </instanceParms> + </instanceDetails> + + </tModelInstanceInfo> + <tModelInstanceInfo tModelKey="uddi:uddi.org:protocol:soap" /> + <tModelInstanceInfo tModelKey="uddi:uddi.org:transport:http" /> + + </tModelInstanceDetails> + <categoryBag> + <keyedReference keyName="uddi-org:types:wsdl" keyValue="wsdlDeployment" tModelKey="uddi:uddi.org:categorization:types"/> + </categoryBag> + </bindingTemplate> + + + <bindingTemplate bindingKey="uddi:another.juddi.apache.org:servicebindings-custodytransfer-ws-ssl" serviceKey="uddi:another.juddi.apache.org:services-custodytransfer"> + <description>UDDI Custody and Ownership Transfer API V3 SSL</description> + <accessPoint useType="wsdlDeployment">${juddi.server.baseurlsecure}/services/custody-transfer?wsdl</accessPoint> + <tModelInstanceDetails> + <tModelInstanceInfo tModelKey="uddi:uddi.org:v3_ownership_transfer"> + <instanceDetails> + <instanceParms> + <![CDATA[ + <?xml version="1.0" encoding="utf-8" ?> + <UDDIinstanceParmsContainer + xmlns="urn:uddi-org:policy_v3_instanceParms"> + <authInfoUse>required</authInfoUse> + </UDDIinstanceParmsContainer> + ]]> + </instanceParms> + </instanceDetails> + </tModelInstanceInfo> + <tModelInstanceInfo tModelKey="uddi:uddi.org:protocol:serverauthenticatedssl3"/> + <tModelInstanceInfo tModelKey="uddi:uddi.org:protocol:soap" /> + <tModelInstanceInfo tModelKey="uddi:uddi.org:transport:http" /> + + </tModelInstanceDetails> + <categoryBag> + <keyedReference keyName="uddi-org:types:wsdl" keyValue="wsdlDeployment" tModelKey="uddi:uddi.org:categorization:types"/> + </categoryBag> + </bindingTemplate> + + + </bindingTemplates> + <categoryBag> + <keyedReference tModelKey="uddi:uddi.org:xml:namespace" keyName="uddi-org:xml:namespace" keyValue="urn:uddi-org:v3_service"/> + <keyedReference tModelKey="uddi:uddi.org:wsdl:types" keyName="uddi-org:wsdl:types" keyValue="service"/> + <keyedReference tModelKey="uddi:uddi.org:xml:localname" keyName="uddi-org:xml:localName" keyValue="UDDICustodyTransferService"/> + </categoryBag> + </businessService> + + <!-- subscription v3 --> + <businessService serviceKey="uddi:another.juddi.apache.org:services-subscription" businessKey="uddi:another.juddi.apache.org:businesses-asf"> + <name xml:lang="en">UDDI Subscription Service</name> + <description xml:lang="en">Web Service supporting UDDI Subscription API</description> + <bindingTemplates> + <bindingTemplate bindingKey="uddi:another.juddi.apache.org:servicebindings-subscription-ws" serviceKey="uddi:another.juddi.apache.org:services-subscription"> + <description>UDDI Subscription API V3</description> + <accessPoint useType="wsdlDeployment">${juddi.server.baseurl}/services/subscription?wsdl</accessPoint> + <tModelInstanceDetails> + <tModelInstanceInfo tModelKey="uddi:uddi.org:v3_subscription"> + <instanceDetails> + <instanceParms> + <![CDATA[ + <?xml version="1.0" encoding="utf-8" ?> + <UDDIinstanceParmsContainer + xmlns="urn:uddi-org:policy_v3_instanceParms"> + <authInfoUse>required</authInfoUse> + <filterUsingFindAPI>supported</filterUsingFindAPI> + </UDDIinstanceParmsContainer> + ]]> + </instanceParms> + </instanceDetails> + </tModelInstanceInfo> + <tModelInstanceInfo tModelKey="uddi:uddi.org:protocol:soap" /> + <tModelInstanceInfo tModelKey="uddi:uddi.org:transport:http" /> + + </tModelInstanceDetails> + <categoryBag> + <keyedReference keyName="uddi-org:types:wsdl" keyValue="wsdlDeployment" tModelKey="uddi:uddi.org:categorization:types"/> + </categoryBag> + </bindingTemplate> + + <bindingTemplate bindingKey="uddi:another.juddi.apache.org:servicebindings-subscription-ws-ssl" serviceKey="uddi:another.juddi.apache.org:services-subscription"> + <description>UDDI Subscription API V3 SSL</description> + <accessPoint useType="wsdlDeployment">${juddi.server.baseurlsecure}/services/subscription?wsdl</accessPoint> + <tModelInstanceDetails> + <tModelInstanceInfo tModelKey="uddi:uddi.org:v3_subscription"> + <instanceDetails> + <instanceParms> + <![CDATA[ + <?xml version="1.0" encoding="utf-8" ?> + <UDDIinstanceParmsContainer + xmlns="urn:uddi-org:policy_v3_instanceParms"> + <authInfoUse>required</authInfoUse> + <filterUsingFindAPI>supported</filterUsingFindAPI> + </UDDIinstanceParmsContainer> + ]]> + </instanceParms> + </instanceDetails> + </tModelInstanceInfo> + <tModelInstanceInfo tModelKey="uddi:uddi.org:protocol:serverauthenticatedssl3"/> + <tModelInstanceInfo tModelKey="uddi:uddi.org:protocol:soap" /> + <tModelInstanceInfo tModelKey="uddi:uddi.org:transport:http" /> + + </tModelInstanceDetails> + <categoryBag> + <keyedReference keyName="uddi-org:types:wsdl" keyValue="wsdlDeployment" tModelKey="uddi:uddi.org:categorization:types"/> + </categoryBag> + </bindingTemplate> + </bindingTemplates> + <categoryBag> + <keyedReference tModelKey="uddi:uddi.org:xml:namespace" keyName="uddi-org:xml:namespace" keyValue="urn:uddi-org:v3_service"/> + <keyedReference tModelKey="uddi:uddi.org:wsdl:types" keyName="uddi-org:wsdl:types" keyValue="service"/> + <keyedReference tModelKey="uddi:uddi.org:xml:localname" keyName="uddi-org:xml:localName" keyValue="UDDISubscriptionService"/> + </categoryBag> + </businessService> + <!-- subscription listener v3 --> + <businessService serviceKey="uddi:another.juddi.apache.org:services-subscriptionlistener" businessKey="uddi:another.juddi.apache.org:businesses-asf"> + <name xml:lang="en">UDDI Subscription Listener Service</name> + <description xml:lang="en">Web Service supporting UDDI Subscription Listener API</description> + <bindingTemplates> + <bindingTemplate bindingKey="uddi:another.juddi.apache.org:servicebindings-subscriptionlistener-ws" serviceKey="uddi:another.juddi.apache.org:services-subscriptionlistener"> + <description>UDDI Subscription Listener API V3</description> + <accessPoint useType="wsdlDeployment">${juddi.server.baseurl}/services/subscription-listener?wsdl</accessPoint> + <tModelInstanceDetails> + <tModelInstanceInfo tModelKey="uddi:uddi.org:v3_subscriptionlistener" /> + <tModelInstanceInfo tModelKey="uddi:uddi.org:protocol:soap" /> + <tModelInstanceInfo tModelKey="uddi:uddi.org:transport:http" /> + + </tModelInstanceDetails> + <categoryBag> + <keyedReference keyName="uddi-org:types:wsdl" keyValue="wsdlDeployment" tModelKey="uddi:uddi.org:categorization:types"/> + </categoryBag> + </bindingTemplate> + + <bindingTemplate bindingKey="uddi:another.juddi.apache.org:servicebindings-subscriptionlistener-ws-ssl" serviceKey="uddi:another.juddi.apache.org:services-subscriptionlistener"> + <description>UDDI Subscription Listener API V3 SSL</description> + <accessPoint useType="wsdlDeployment">${juddi.server.baseurlsecure}/services/subscription-listener?wsdl</accessPoint> + <tModelInstanceDetails> + <tModelInstanceInfo tModelKey="uddi:uddi.org:v3_subscriptionlistener" /> + <tModelInstanceInfo tModelKey="uddi:uddi.org:protocol:soap" /> + <tModelInstanceInfo tModelKey="uddi:uddi.org:transport:http" /> + <tModelInstanceInfo tModelKey="uddi:uddi.org:protocol:serverauthenticatedssl3" /> + + </tModelInstanceDetails> + <categoryBag> + <keyedReference keyName="uddi-org:types:wsdl" keyValue="wsdlDeployment" tModelKey="uddi:uddi.org:categorization:types"/> + </categoryBag> + </bindingTemplate> + + + </bindingTemplates> + <categoryBag> + <keyedReference tModelKey="uddi:uddi.org:xml:namespace" keyName="uddi-org:xml:namespace" keyValue="urn:uddi-org:v3_service"/> + <keyedReference tModelKey="uddi:uddi.org:wsdl:types" keyName="uddi-org:wsdl:types" keyValue="service"/> + <keyedReference tModelKey="uddi:uddi.org:xml:localname" keyName="uddi-org:xml:localName" keyValue="UDDISubscriptionListenerService"/> + </categoryBag> + </businessService> + + + <businessService serviceKey="uddi:another.juddi.apache.org:services-valueset" businessKey="uddi:another.juddi.apache.org:businesses-asf"> + <name xml:lang="en">UDDI Value Set API Service</name> + <description xml:lang="en">Web Service supporting UDDI Value Set Validation service. This service provides tModel value validation and is + configured using the jUDDI Publisher Service</description> + <bindingTemplates> + <bindingTemplate bindingKey="uddi:another.juddi.apache.org:servicebindings-valueset-ws" serviceKey="uddi:another.juddi.apache.org:services-valueset"> + <description>UDDI Value Set Validation API Version 3</description> + <accessPoint useType="wsdlDeployment">${juddi.server.baseurl}/services/valueset-validation?wsdl</accessPoint> + <tModelInstanceDetails> + <tModelInstanceInfo tModelKey="uddi:uddi.org:v3_valuesetvalidation" /> + </tModelInstanceDetails> + <categoryBag> + <keyedReference keyName="uddi-org:types:wsdl" keyValue="wsdlDeployment" tModelKey="uddi:uddi.org:categorization:types"/> + </categoryBag> + </bindingTemplate> + + <bindingTemplate bindingKey="uddi:another.juddi.apache.org:servicebindings-valueset-ws-ssl" serviceKey="uddi:another.juddi.apache.org:services-valueset"> + <description>UDDI Value Set Validation API Version 3 SSL</description> + <accessPoint useType="wsdlDeployment">${juddi.server.baseurlsecure}/services/valueset-validation?wsdl</accessPoint> + <tModelInstanceDetails> + + <tModelInstanceInfo tModelKey="uddi:uddi.org:v3_valuesetvalidation" /> + + </tModelInstanceDetails> + <categoryBag> + <keyedReference keyName="uddi-org:types:wsdl" keyValue="wsdlDeployment" tModelKey="uddi:uddi.org:categorization:types"/> + </categoryBag> + </bindingTemplate> + + <bindingTemplate bindingKey="uddi:another.juddi.apache.org:servicebindings-valueset-cp" serviceKey="uddi:another.juddi.apache.org:services-valueset"> + <description>UDDI Value Set Validation API Version 3 using InVM Classpath Transport. Use this endpoint for Value Set Validation when + located on the same instance of jUDDI.</description> + <accessPoint useType="classpath">classpath:/org.apache.juddi.api.impl.UDDIValueSetValidationImpl</accessPoint> + <tModelInstanceDetails> + <tModelInstanceInfo tModelKey="uddi:uddi.org:v3_valuesetvalidation" /> + </tModelInstanceDetails> + </bindingTemplate> + + </bindingTemplates> + </businessService> + + + <businessService serviceKey="uddi:another.juddi.apache.org:services-valueset-cache" businessKey="uddi:another.juddi.apache.org:businesses-asf"> + <name xml:lang="en">UDDI Value Set Caching API Service</name> + <description xml:lang="en">Web Service supporting UDDI Value Set Caching service. This service provides tModel value validation and is + configured using the jUDDI Publisher Service</description> + <bindingTemplates> + <bindingTemplate bindingKey="uddi:another.juddi.apache.org:servicebindings-valueset-cache-ws" serviceKey="uddi:another.juddi.apache.org:services-valueset-cache"> + <description>UDDI Value Set Caching API Version 3</description> + <accessPoint useType="wsdlDeployment">${juddi.server.baseurl}/services/valueset-caching?wsdl</accessPoint> + <tModelInstanceDetails> + <tModelInstanceInfo tModelKey="uddi:uddi-org:valueSetCaching_v3" /> + </tModelInstanceDetails> + <categoryBag> + <keyedReference keyName="uddi-org:types:wsdl" keyValue="wsdlDeployment" tModelKey="uddi:uddi.org:categorization:types"/> + </categoryBag> + </bindingTemplate> + + <bindingTemplate bindingKey="uddi:another.juddi.apache.org:servicebindings-valueset-cache-ws-ssl" serviceKey="uddi:another.juddi.apache.org:services-valueset-cache"> + <description>UDDI Value Set caching API Version 3 SSL</description> + <accessPoint useType="wsdlDeployment">${juddi.server.baseurlsecure}/services/valueset-caching?wsdl</accessPoint> + <tModelInstanceDetails> + <tModelInstanceInfo tModelKey="uddi:uddi-org:valueSetCaching_v3" /> + </tModelInstanceDetails> + <categoryBag> + <keyedReference keyName="uddi-org:types:wsdl" keyValue="wsdlDeployment" tModelKey="uddi:uddi.org:categorization:types"/> + + + + + + </categoryBag> + </bindingTemplate> + + </bindingTemplates> + </businessService> + + + + + + <businessService serviceKey="uddi:another.juddi.apache.org:replication" businessKey="uddi:another.juddi.apache.org:businesses-asf"> + <name xml:lang="en">UDDI Replication API Version 3</name> + <description xml:lang="en">UDDI Replication API Version 3</description> + <bindingTemplates> + <bindingTemplate bindingKey="uddi:another.juddi.apache.org:servicebindings-replication-ws" serviceKey="uddi:another.juddi.apache.org:replication"> + <description>UDDI Value Set Validation API Version 3</description> + <accessPoint useType="wsdlDeployment">${juddi.server.baseurl}/services/replication?wsdl</accessPoint> + + <tModelInstanceInfo + tModelKey="uddi:uddi.org:v3_replication" /> + <tModelInstanceInfo + tModelKey="uddi:uddi.org:protocol:mutualauthenticatedssl3" /> + + + <categoryBag> + <keyedReference keyName="uddi-org:types:wsdl" keyValue="wsdlDeployment" tModelKey="uddi:uddi.org:categorization:types"/> + </categoryBag> + </bindingTemplate> + </bindingTemplates> + </businessService> + + + + <!-- juddi api service --> + <businessService serviceKey="uddi:another.juddi.apache.org:services-publisher" businessKey="uddi:another.juddi.apache.org:businesses-asf"> + <name xml:lang="en">jUDDI Publisher Service</name> + <description xml:lang="en">Web Service supporting jUDDI specific API</description> + <bindingTemplates> + <bindingTemplate bindingKey="uddi:another.juddi.apache.org:servicebindings-publisher-ws" serviceKey="uddi:another.juddi.apache.org:services-publisher"> + <description>jUDDI Publisher Service API V3</description> + <accessPoint useType="wsdlDeployment">${juddi.server.baseurl}/services/publisher?wsdl</accessPoint> + <tModelInstanceDetails> + <tModelInstanceInfo tModelKey="uddi:uddi.org:protocol:soap" /> + <tModelInstanceInfo tModelKey="uddi:uddi.org:transport:http" /> + </tModelInstanceDetails> + <categoryBag> + <keyedReference keyName="uddi-org:types:wsdl" keyValue="wsdlDeployment" tModelKey="uddi:uddi.org:categorization:types"/> + </categoryBag> + </bindingTemplate> + <bindingTemplate bindingKey="uddi:another.juddi.apache.org:servicebindings-publisher-ws-ssl" serviceKey="uddi:another.juddi.apache.org:services-publisher"> + <description>jUDDI Publisher Service API V3 SSL</description> + <accessPoint useType="wsdlDeployment">${juddi.server.baseurlsecure}/services/publisher?wsdl</accessPoint> + <tModelInstanceDetails> + <tModelInstanceInfo tModelKey="uddi:uddi.org:protocol:serverauthenticatedssl3"/> + <tModelInstanceInfo tModelKey="uddi:uddi.org:protocol:soap" /> + <tModelInstanceInfo tModelKey="uddi:uddi.org:transport:http" /> + + </tModelInstanceDetails> + <categoryBag> + <keyedReference keyName="uddi-org:types:wsdl" keyValue="wsdlDeployment" tModelKey="uddi:uddi.org:categorization:types"/> + </categoryBag> + </bindingTemplate> + </bindingTemplates> + <categoryBag> + <keyedReference tModelKey="uddi:uddi.org:xml:namespace" keyName="uddi-org:xml:namespace" keyValue="urn:juddi-apache-org:v3_service"/> + <keyedReference tModelKey="uddi:uddi.org:wsdl:types" keyName="uddi-org:wsdl:types" keyValue="service"/> + <keyedReference tModelKey="uddi:uddi.org:xml:localname" keyName="uddi-org:xml:localName" keyValue="JUDDIApiService"/> + </categoryBag> + </businessService> + </businessServices> +</businessEntity> + + + +
http://git-wip-us.apache.org/repos/asf/juddi/blob/7c8594ca/juddi-gui-test/juddi_install_data_node2/root_Publisher.xml ---------------------------------------------------------------------- diff --git a/juddi-gui-test/juddi_install_data_node2/root_Publisher.xml b/juddi-gui-test/juddi_install_data_node2/root_Publisher.xml new file mode 100644 index 0000000..a5949f1 --- /dev/null +++ b/juddi-gui-test/juddi_install_data_node2/root_Publisher.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Copyright 2001-2009 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ --> +<publisher xmlns="urn:juddi-apache-org:api_v3" authorizedName="root"> + <publisherName>root publisher</publisherName> + <isAdmin>true</isAdmin> +</publisher> http://git-wip-us.apache.org/repos/asf/juddi/blob/7c8594ca/juddi-gui-test/juddi_install_data_node2/root_tModelKeyGen.xml ---------------------------------------------------------------------- diff --git a/juddi-gui-test/juddi_install_data_node2/root_tModelKeyGen.xml b/juddi-gui-test/juddi_install_data_node2/root_tModelKeyGen.xml new file mode 100644 index 0000000..3ae411a --- /dev/null +++ b/juddi-gui-test/juddi_install_data_node2/root_tModelKeyGen.xml @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Copyright 2001-2009 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ --> +<!-- + In this file, you only need to edit the tModelKey just below. This will determine your root partition; the base that all system-generated + keys will use. The keywords "uddi" and "keygenerator" must enclose the partition, but you are free to edit the interior. The general format + is a domain name followed by a colon-delimited list of keywords (known as key-specific strings). + + Examples: + + uddi:www.mycompany.com:registry:keygenerator + uddi:uddi.acme.com:keygenerator + uddi:engineering.umich.edu:soa:ubr:keygenerator + --> +<tModel tModelKey="uddi:another.juddi.apache.org:keygenerator" xmlns="urn:uddi-org:api_v3"> + <name>uddi-org:keyGenerator</name> + <description>Root domain key generator</description> + <overviewDoc> + <overviewURL useType="text"> + http://uddi.org/pubs/uddi_v3.htm#keyGen</overviewURL> + </overviewDoc> + <categoryBag> + <keyedReference tModelKey="uddi:uddi.org:categorization:types" keyName="uddi-org:types:keyGenerator" + keyValue="keyGenerator" /> + </categoryBag> +</tModel> http://git-wip-us.apache.org/repos/asf/juddi/blob/7c8594ca/juddi-gui-test/juddiv3Node1.xml ---------------------------------------------------------------------- diff --git a/juddi-gui-test/juddiv3Node1.xml b/juddi-gui-test/juddiv3Node1.xml new file mode 100644 index 0000000..962a920 --- /dev/null +++ b/juddi-gui-test/juddiv3Node1.xml @@ -0,0 +1,217 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<!-- +/* + * Copyright 2001-2008 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + --> +<!-- +################################################################ +# jUDDI-v3.0 configuration. # +################################################################ +# Note that the property settings in this # +# file can be overriden by system parameters # +# # +################################################################ +--> +<config> + <juddi> + <!-- The ${juddi.server.baseurl} token can be referenced in accessPoints and will be resolved at runtime. --> + <server> + <baseurl>http://localhost:8880/juddiv3</baseurl> + <baseurlsecure>https://localhost:8443/juddiv3</baseurlsecure> + </server> + <!-- The node Id must be unique when setup in a cluster of UDDI servers implementing the replication API + don't worry, jUDDI doesn't implement it right now, but it may come in the future + + Per the spec, The value used MUST match the businessKey of the Node Business Entity + --> + <nodeId>uddi:juddi.apache.org:node1</nodeId> + <!-- The key of the root business that all of the UDDI services are registered in, as defined in the install_data --> + <root> + <!-- this is the 'root' username, or owner of the node --> + <publisher>root</publisher> + <!-- The key of the root business that all of the UDDI services are registered in, as defined in the install_data --> + <businessId>uddi:juddi.apache.org:node1</businessId> + <partition>uddi:juddi.apache.org</partition> + </root> + <seed> + <always>false</always> + </seed> + + <!-- Name of the persistence unit to use (the default, "juddiDatabase" refers to the unit compiled into the juddi library)--> + <persistenceunit> + <name>juddiDatabase</name> + </persistenceunit> + + <!-- Check-the-time-stamp-on-this-file Interval in milli seconds --> + <configuration> + <reload> + <delay>2000</delay> + </reload> + </configuration> + <!--Default locale--> + <locale>en_US</locale> + + <!--The UDDI Operator Contact Email Address--> + <operatorEmailAddress>[email protected]</operatorEmailAddress> + + <!-- The maximum name size and maximum number of name elements allows in several of the FindXxxx and SaveXxxx UDDI functions.--> + <maxNameLength>255</maxNameLength> + <maxNameElementsAllowed>5</maxNameElementsAllowed> + + + <!-- The maximum number of rows returned in a find_* operation. Each call can set this independently, but this property defines a global maximum.--> + <maxRows>1000</maxRows> + <!-- The maximum number of "IN" clause parameters. Some RDMBS limit the number of parameters allowed in a SQL "IN" clause.--> + <maxInClause>1000</maxInClause> + + <!-- The maximum number of UDDI artifacts allowed per publisher. A value of '-1' indicates any number of artifacts is valid (These values can be overridden at the individual publisher level).--> + <maxBusinessesPerPublisher>-1</maxBusinessesPerPublisher> + <maxServicesPerBusiness>-1</maxServicesPerBusiness> + <maxBindingsPerService>-1</maxBindingsPerService> + <maxTModelsPerPublisher>-1</maxTModelsPerPublisher> + + <!-- Days before a transfer request expires--> + <transfer> + <expiration> + <days>3</days> + </expiration> + </transfer> + + <!-- Days before a subscription expires--> + <subscription> + <expiration> + <days>30</days> + </expiration> + + <!-- Minutes before a "chunked" subscription call expires--> + <chunkexpiration> + <minutes>5</minutes> + </chunkexpiration> + + <!--Since 3.1.5 the maxium ammount of returned subscription entities allowed--> + <maxentities>1000</maxentities> + </subscription> + + <!-- jUDDI UUIDGen implementation to use--> + <uuidgen>org.apache.juddi.uuidgen.DefaultUUIDGen</uuidgen> + + <!-- jUDDI Cryptor implementation to use--> + <cryptor>org.apache.juddi.cryptor.DefaultCryptor</cryptor> + + <!-- jUDDI Key Generator to use--> + <keygenerator>org.apache.juddi.keygen.DefaultKeyGenerator</keygenerator> + + <notification> + <!-- Specifies the interval at which the notification timer triggers--> + <interval>5000</interval> + <!-- Specifies the amount of time to wait before the notification timer initially fires--> + <start> + <buffer>0</buffer> + </start> + <acceptableLagtime>1000</acceptableLagtime> + <maxTries>3</maxTries> + <!-- 10 minutes --> + <maxTriesResetInterval>600000</maxTriesResetInterval> + <sendAuthTokenWithResultList>false</sendAuthTokenWithResultList> + </notification> + <!-- All Authentication related settings --> + <auth> + <!-- Specifies whether the inquiry API requires authentication, all other APIs require authN--> + <Inquiry>false</Inquiry> + + <!-- When using file based authentication, this is the filename to use + <usersfile>juddi-users.xml</usersfile>--> + <!-- jUDDI Authentication module to use--> + <authenticator> + <!-- build in Authenticators: + org.apache.juddi.v3.auth.JUDDIAuthenticator - no authentication + LDAP Based + org.apache.juddi.v3.auth.LdapSimpleAuthenticator - use LDAP + org.apache.juddi.v3.auth.LdapExpandedAuthenticator - use LDAP + + File based, see usersfile + org.apache.juddi.v3.auth.XMLDocAuthenticator - XML doc, clear text + org.apache.juddi.v3.auth.CryptedXMLDocAuthenticator - XML doc, encrypted + org.apache.juddi.v3.auth.MD5XMLDocAuthenticator - XML doc, Hashed + --> + <class>org.apache.juddi.v3.auth.JUDDIAuthenticator</class> + <!-- other settings + url + initialcontext + style + ldapexp + + --> + </authenticator> + + <token> + <!-- Time in minutes to expire tokes after inactivity--> + <Timeout>15</Timeout> + <!-- As of 3.1.5 Duration of time for tokens to expire, regardless of inactivity --> + <Expiration>60</Expiration> + </token> + </auth> + + + + + <validation> + <!-- As of 3.1.5 This setting will force referential integrity for all tModels (except keyGenerators), category bags, bindingTemplate/AccessPoint/hostingRedirector (referencing another host), tModelinstanceparms and anything else that references a KeyName default value is true. set to false for backwards compatibility or for a more lax registry--> + <enforceReferentialIntegrity>true</enforceReferentialIntegrity> + </validation> + + <!--As of 3.1.5 Email delivery options for subscription API functions--> + <mail> + <smtp> + <!--The Operatorâs Email address + <from>[email protected]</from>--> + + <!--the hostname of the SMTP server + <host>localhost</host>--> + + <!--The portname of the SMTP server + <port>25</port>--> + + <!--If set, specifies the name of a class that implements the javax.net.SocketFactory interface. This class will be used to create SMTP sockets.--> + <socketFactory> + <!--<class></class>--> + + <!--If set to true, failure to create a socket using the specified socket factory class will cause the socket to be created using the java.net.Socket class. Defaults to true. + <fallback>true</fallback>--> + <!--Specifies the port to connect to when using the specified socket factory. If not set, the default port will be used. + <port>25</port>--> + </socketFactory> + <!--if true, enables the use of the STARTTLS command (if supported by the server) to switch the connection to a TLS-protected connection before issuing any login commands. Note that an appropriate trust store must configured so that the client will trust the serverâs certificate. Defaults to false. + <starttls> + <enabled>false</enabled> + </starttls>--> + + <!--If true, attempt to authenticate the user using the AUTH command. Defaults to false. + <auth>false</auth>--> + + <!--Username used to authenticate to the SMTP server used only if mail.smtp.auth is true + <user>user</user>--> + + <!--Password used to authenticate to the SMTP server, used only if mail.smtp.auth is true + <password encrypted="false">pass</password>--> + </smtp> + </mail> + + <logging> + <logInquirySearchPayloads>false</logInquirySearchPayloads> + </logging> + </juddi> +</config> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/juddi/blob/7c8594ca/juddi-gui-test/juddiv3Node2.xml ---------------------------------------------------------------------- diff --git a/juddi-gui-test/juddiv3Node2.xml b/juddi-gui-test/juddiv3Node2.xml new file mode 100644 index 0000000..3a8008c --- /dev/null +++ b/juddi-gui-test/juddiv3Node2.xml @@ -0,0 +1,217 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<!-- +/* + * Copyright 2001-2008 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + --> +<!-- +################################################################ +# jUDDI-v3.0 configuration. # +################################################################ +# Note that the property settings in this # +# file can be overriden by system parameters # +# # +################################################################ +--> +<config> + <juddi> + <!-- The ${juddi.server.baseurl} token can be referenced in accessPoints and will be resolved at runtime. --> + <server> + <baseurl>http://localhost:8980/juddiv3</baseurl> + <baseurlsecure>https://localhost:9443/juddiv3</baseurlsecure> + </server> + <!-- The node Id must be unique when setup in a cluster of UDDI servers implementing the replication API + don't worry, jUDDI doesn't implement it right now, but it may come in the future + + Per the spec, The value used MUST match the businessKey of the Node Business Entity + --> + <nodeId>uddi:another.juddi.apache.org:node2</nodeId> + <!-- The key of the root business that all of the UDDI services are registered in, as defined in the install_data --> + <root> + <!-- this is the 'root' username, or owner of the node --> + <publisher>root</publisher> + <!-- The key of the root business that all of the UDDI services are registered in, as defined in the install_data --> + <businessId>uddi:another.juddi.apache.org:businesses-asf</businessId> + <partition>uddi:another.juddi.apache.org</partition> + </root> + <seed> + <always>false</always> + </seed> + + <!-- Name of the persistence unit to use (the default, "juddiDatabase" refers to the unit compiled into the juddi library)--> + <persistenceunit> + <name>juddiDatabase</name> + </persistenceunit> + + <!-- Check-the-time-stamp-on-this-file Interval in milli seconds --> + <configuration> + <reload> + <delay>2000</delay> + </reload> + </configuration> + <!--Default locale--> + <locale>en_US</locale> + + <!--The UDDI Operator Contact Email Address--> + <operatorEmailAddress>[email protected]</operatorEmailAddress> + + <!-- The maximum name size and maximum number of name elements allows in several of the FindXxxx and SaveXxxx UDDI functions.--> + <maxNameLength>255</maxNameLength> + <maxNameElementsAllowed>5</maxNameElementsAllowed> + + + <!-- The maximum number of rows returned in a find_* operation. Each call can set this independently, but this property defines a global maximum.--> + <maxRows>1000</maxRows> + <!-- The maximum number of "IN" clause parameters. Some RDMBS limit the number of parameters allowed in a SQL "IN" clause.--> + <maxInClause>1000</maxInClause> + + <!-- The maximum number of UDDI artifacts allowed per publisher. A value of '-1' indicates any number of artifacts is valid (These values can be overridden at the individual publisher level).--> + <maxBusinessesPerPublisher>-1</maxBusinessesPerPublisher> + <maxServicesPerBusiness>-1</maxServicesPerBusiness> + <maxBindingsPerService>-1</maxBindingsPerService> + <maxTModelsPerPublisher>-1</maxTModelsPerPublisher> + + <!-- Days before a transfer request expires--> + <transfer> + <expiration> + <days>3</days> + </expiration> + </transfer> + + <!-- Days before a subscription expires--> + <subscription> + <expiration> + <days>30</days> + </expiration> + + <!-- Minutes before a "chunked" subscription call expires--> + <chunkexpiration> + <minutes>5</minutes> + </chunkexpiration> + + <!--Since 3.1.5 the maxium ammount of returned subscription entities allowed--> + <maxentities>1000</maxentities> + </subscription> + + <!-- jUDDI UUIDGen implementation to use--> + <uuidgen>org.apache.juddi.uuidgen.DefaultUUIDGen</uuidgen> + + <!-- jUDDI Cryptor implementation to use--> + <cryptor>org.apache.juddi.cryptor.DefaultCryptor</cryptor> + + <!-- jUDDI Key Generator to use--> + <keygenerator>org.apache.juddi.keygen.DefaultKeyGenerator</keygenerator> + + <notification> + <!-- Specifies the interval at which the notification timer triggers--> + <interval>5000</interval> + <!-- Specifies the amount of time to wait before the notification timer initially fires--> + <start> + <buffer>0</buffer> + </start> + <acceptableLagtime>1000</acceptableLagtime> + <maxTries>3</maxTries> + <!-- 10 minutes --> + <maxTriesResetInterval>600000</maxTriesResetInterval> + <sendAuthTokenWithResultList>false</sendAuthTokenWithResultList> + </notification> + <!-- All Authentication related settings --> + <auth> + <!-- Specifies whether the inquiry API requires authentication, all other APIs require authN--> + <Inquiry>false</Inquiry> + + <!-- When using file based authentication, this is the filename to use + <usersfile>juddi-users.xml</usersfile>--> + <!-- jUDDI Authentication module to use--> + <authenticator> + <!-- build in Authenticators: + org.apache.juddi.v3.auth.JUDDIAuthenticator - no authentication + LDAP Based + org.apache.juddi.v3.auth.LdapSimpleAuthenticator - use LDAP + org.apache.juddi.v3.auth.LdapExpandedAuthenticator - use LDAP + + File based, see usersfile + org.apache.juddi.v3.auth.XMLDocAuthenticator - XML doc, clear text + org.apache.juddi.v3.auth.CryptedXMLDocAuthenticator - XML doc, encrypted + org.apache.juddi.v3.auth.MD5XMLDocAuthenticator - XML doc, Hashed + --> + <class>org.apache.juddi.v3.auth.JUDDIAuthenticator</class> + <!-- other settings + url + initialcontext + style + ldapexp + + --> + </authenticator> + + <token> + <!-- Time in minutes to expire tokes after inactivity--> + <Timeout>15</Timeout> + <!-- As of 3.1.5 Duration of time for tokens to expire, regardless of inactivity --> + <Expiration>15</Expiration> + </token> + </auth> + + + + + <validation> + <!-- As of 3.1.5 This setting will force referential integrity for all tModels (except keyGenerators), category bags, bindingTemplate/AccessPoint/hostingRedirector (referencing another host), tModelinstanceparms and anything else that references a KeyName default value is true. set to false for backwards compatibility or for a more lax registry--> + <enforceReferentialIntegrity>true</enforceReferentialIntegrity> + </validation> + + <!--As of 3.1.5 Email delivery options for subscription API functions--> + <mail> + <smtp> + <!--The Operatorâs Email address + <from>[email protected]</from>--> + + <!--the hostname of the SMTP server + <host>localhost</host>--> + + <!--The portname of the SMTP server + <port>25</port>--> + + <!--If set, specifies the name of a class that implements the javax.net.SocketFactory interface. This class will be used to create SMTP sockets.--> + <socketFactory> + <!--<class></class>--> + + <!--If set to true, failure to create a socket using the specified socket factory class will cause the socket to be created using the java.net.Socket class. Defaults to true. + <fallback>true</fallback>--> + <!--Specifies the port to connect to when using the specified socket factory. If not set, the default port will be used. + <port>25</port>--> + </socketFactory> + <!--if true, enables the use of the STARTTLS command (if supported by the server) to switch the connection to a TLS-protected connection before issuing any login commands. Note that an appropriate trust store must configured so that the client will trust the serverâs certificate. Defaults to false. + <starttls> + <enabled>false</enabled> + </starttls>--> + + <!--If true, attempt to authenticate the user using the AUTH command. Defaults to false. + <auth>false</auth>--> + + <!--Username used to authenticate to the SMTP server used only if mail.smtp.auth is true + <user>user</user>--> + + <!--Password used to authenticate to the SMTP server, used only if mail.smtp.auth is true + <password encrypted="false">pass</password>--> + </smtp> + </mail> + + <logging> + <logInquirySearchPayloads>false</logInquirySearchPayloads> + </logging> + </juddi> +</config> http://git-wip-us.apache.org/repos/asf/juddi/blob/7c8594ca/juddi-gui-test/log4j.properties ---------------------------------------------------------------------- diff --git a/juddi-gui-test/log4j.properties b/juddi-gui-test/log4j.properties new file mode 100644 index 0000000..186cec1 --- /dev/null +++ b/juddi-gui-test/log4j.properties @@ -0,0 +1,26 @@ +log4j.logger.org.apache.juddi.api.impl=INFO +log4j.rootLogger=INFO, logfile + +# in case any output is given to stdout, format it +log4j.appender.stdout=org.apache.log4j.ConsoleAppender +log4j.appender.stdout.layout=org.apache.log4j.PatternLayout +log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - %m%n + +log4j.appender.logfile=org.apache.log4j.RollingFileAppender +log4j.appender.logfile.File=${catalina.home}/logs/juddi.log +log4j.appender.logfile.MaxFileSize=512MB +# Keep three backup files. +log4j.appender.logfile.MaxBackupIndex=3 +# Pattern to output: date priority [category] - message +log4j.appender.logfile.layout=org.apache.log4j.PatternLayout +log4j.appender.logfile.layout.ConversionPattern=%d %p [%c] - %m%n +log4j.logger.org.apache.cxf.wsdl.EndpointReferenceUtils=ERROR + +#log4j.category.org.springframework.beans.property editors.CustomDateEditor=DEBUG + +log4j.debug=false + +# showing sql +#log4j.category.org.hibernate.hql.ast.QueryTranslatorImpl=DEBUG +#log4j.category.org.hibernate.SQL=DEBUG +#log4j.category.org.hibernate.loader.hql.QueryLoad er=DEBUG http://git-wip-us.apache.org/repos/asf/juddi/blob/7c8594ca/juddi-gui-test/pom.xml ---------------------------------------------------------------------- diff --git a/juddi-gui-test/pom.xml b/juddi-gui-test/pom.xml new file mode 100644 index 0000000..091045e --- /dev/null +++ b/juddi-gui-test/pom.xml @@ -0,0 +1,277 @@ +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <!-- + * Copyright 2001-2009 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ --> + + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>org.apache.juddi</groupId> + <artifactId>juddi-parent</artifactId> + <version>3.3.3-SNAPSHOT</version> + </parent> + <properties> + <cargo.version>1.4.16</cargo.version> + <selenium.version>2.48.2</selenium.version> + + </properties> + <artifactId>juddi-gui-test</artifactId> + <name>jUDDI GUI UI Tests</name> + <description>Unit and integration tests for jUDDI's user interface</description> + <packaging>jar</packaging> + <dependencies> + <dependency> + <groupId>org.seleniumhq.selenium</groupId> + <artifactId>selenium-firefox-driver</artifactId> + <version>${selenium.version}</version> + </dependency> + <dependency> + <groupId>org.seleniumhq.selenium</groupId> + <artifactId>selenium-chrome-driver</artifactId> + <version>${selenium.version}</version> + </dependency> + <dependency> + <groupId>org.seleniumhq.selenium</groupId> + <artifactId>selenium-ie-driver</artifactId> + <version>${selenium.version}</version> + </dependency> + <dependency> + <groupId>org.seleniumhq.selenium</groupId> + <artifactId>selenium-safari-driver</artifactId> + <version>${selenium.version}</version> + </dependency> + <dependency> + <groupId>org.seleniumhq.selenium</groupId> + <artifactId>selenium-java</artifactId> + <version>${selenium.version}</version> + </dependency> + + </dependencies> + <build> + <plugins> + <plugin> + <artifactId>maven-clean-plugin</artifactId> + <version>2.6.1</version> + <configuration> + <filesets> + <fileset> + <directory>.</directory> + <includes> + <include>pref-rpt-*.txt</include> + </includes> + <followSymlinks>false</followSymlinks> + </fileset> + </filesets> + </configuration> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-dependency-plugin</artifactId> + <version>2.1</version> + <executions> + <execution> + <id>copy</id> + <phase>package</phase> + <goals> + <goal>copy</goal> + </goals> + <configuration> + <artifactItems> + <artifactItem> + <groupId>org.apache.juddi</groupId> + <artifactId>juddi-tomcat</artifactId> + <version>${project.parent.version}</version> + <type>zip</type> + <outputDirectory>${basedir}/target</outputDirectory> + </artifactItem> + </artifactItems> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-antrun-plugin</artifactId> + <version>1.3</version> + <executions> + <execution> + <id>test</id> + <phase>pre-integration-test</phase> + <configuration> + <tasks> + <unzip dest="target" src="target/juddi-tomcat-${project.parent.version}.zip" /> + <copy file="${basedir}/server.xml" todir="target/juddi-tomcat-${project.parent.version}/conf" overwrite="true" /> + <copy file="${basedir}/log4j.properties" todir="target/juddi-tomcat-${project.parent.version}/webapps/juddiv3/WEB-INF/classes" overwrite="true" /> + + <unzip dest="target/node2" src="target/juddi-tomcat-${project.parent.version}.zip" /> + + <copy file="${basedir}/juddiv3Node1.xml" tofile="target/juddi-tomcat-${project.parent.version}/webapps/juddiv3/WEB-INF/classes/juddiv3.xml" overwrite="true" /> + <copy file="${basedir}/uddiNode.xml" tofile="target/juddi-tomcat-${project.parent.version}/webapps/juddi-gui/WEB-INF/classes/META-INF/uddi.xml" overwrite="true" /> + + + + + + </tasks> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.codehaus.cargo</groupId> + <artifactId>cargo-maven2-plugin</artifactId> + <version>${cargo.version}</version> + + <executions> + <execution> + <id>start-container1</id> + <phase>pre-integration-test</phase> + <configuration> + <wait>false</wait> + <container> + <containerId>tomcat7x</containerId> + <home>${basedir}/target/juddi-tomcat-${project.parent.version}</home> + </container> + <configuration> + <type>existing</type> + <home>${project.build.directory}/juddi-tomcat-${project.parent.version}</home> + <properties> + <cargo.logging>high</cargo.logging> + <cargo.hostname>localhost</cargo.hostname> + <cargo.servlet.port>8880</cargo.servlet.port> + <cargo.jvmargs>-Xms256m -Xmx256m -XX:MaxPermSize=256M -Djava.endorsed.dirs=${basedir}/target/juddi-tomcat-${project.parent.version}/endorsed -Djavax.net.ssl.keyStore=${basedir}/../juddi-tomcat/keystore.jks -Djavax.net.ssl.keyStorePassword=password -Djavax.net.ssl.trustStore=${basedir}/../juddi-tomcat/truststore.jks -Djavax.net.ssl.trustStorePassword=password</cargo.jvmargs> + </properties> + </configuration> + </configuration> + <goals> + <goal>start</goal> + </goals> + </execution> + + + + <execution> + <id>stop-container1</id> + <phase>post-integration-test</phase> + <configuration> + <container> + <containerId>tomcat7x</containerId> + </container> + <configuration> + <properties> + <cargo.servlet.port>8880</cargo.servlet.port> + </properties> + <home>${project.build.directory}/juddi-tomcat-${project.parent.version}</home> + </configuration> + </configuration> + <goals> + <goal>stop</goal> + </goals> + </execution> + + + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <version>2.4</version> + <configuration> + <skip>true</skip> + <includes> + <include>**/*IntegrationTest.java</include> + </includes> + <systemProperties> + <property> + <name>derby.stream.error.file</name> + <value>target/derby.log</value> + </property> + <property> + <name>java.io.tmpdir</name> + <value>${basedir}/temp</value> + </property> + </systemProperties> + </configuration> + <executions> + <execution> + <id>surefire-it</id> + <phase>integration-test</phase> + <goals> + <goal>test</goal> + </goals> + <configuration> + <skip>false</skip> + <systemProperties> + <property> + <name>cactus.contextURL</name> + <value>http://localhost:8880/juddi</value> + </property> + <property> + <name>java.io.tmpdir</name> + <value>${basedir}/temp</value> + </property> + </systemProperties> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <!-- deploying test-jar --> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + <executions> + <execution> + <goals> + <goal>jar</goal> + <goal>test-jar</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <!-- deploying test-jar src --> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-source-plugin</artifactId> + <executions> + <execution> + <id>attach-sources</id> + <phase>verify</phase> + <goals> + <goal>jar</goal> + <goal>generated-test-jar</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + <executions> + <execution> + <id>attach-javadocs</id> + <goals> + <goal>test-jar</goal> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> +</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/juddi/blob/7c8594ca/juddi-gui-test/readme.txt ---------------------------------------------------------------------- diff --git a/juddi-gui-test/readme.txt b/juddi-gui-test/readme.txt new file mode 100644 index 0000000..9717f2d --- /dev/null +++ b/juddi-gui-test/readme.txt @@ -0,0 +1,5 @@ +Prequists for running the UI tests with Selenium + +MAC users onlt: + +brew install chromedriver \ No newline at end of file http://git-wip-us.apache.org/repos/asf/juddi/blob/7c8594ca/juddi-gui-test/server.xml ---------------------------------------------------------------------- diff --git a/juddi-gui-test/server.xml b/juddi-gui-test/server.xml new file mode 100644 index 0000000..3d00eb2 --- /dev/null +++ b/juddi-gui-test/server.xml @@ -0,0 +1,145 @@ +<?xml version='1.0' encoding='utf-8'?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<!-- Note: A "Server" is not itself a "Container", so you may not + define subcomponents such as "Valves" at this level. + Documentation at /docs/config/server.html + --> +<Server port="8005" shutdown="SHUTDOWN"> + <Listener className="org.apache.catalina.startup.VersionLoggerListener" /> + <!-- Security listener. Documentation at /docs/config/listeners.html + <Listener className="org.apache.catalina.security.SecurityListener" /> + --> + <!--APR library loader. Documentation at /docs/apr.html --> + <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" /> + <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html --> + <Listener className="org.apache.catalina.core.JasperListener" /> + <!-- Prevent memory leaks due to use of particular java/javax APIs--> + <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" /> + <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" /> + <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" /> + + <!-- Global JNDI resources + Documentation at /docs/jndi-resources-howto.html + --> + <GlobalNamingResources> + <!-- Editable user database that can also be used by + UserDatabaseRealm to authenticate users + --> + <Resource name="UserDatabase" auth="Container" + type="org.apache.catalina.UserDatabase" + description="User database that can be updated and saved" + factory="org.apache.catalina.users.MemoryUserDatabaseFactory" + pathname="conf/tomcat-users.xml" /> + </GlobalNamingResources> + + <!-- A "Service" is a collection of one or more "Connectors" that share + a single "Container" Note: A "Service" is not itself a "Container", + so you may not define subcomponents such as "Valves" at this level. + Documentation at /docs/config/service.html + --> + <Service name="Catalina"> + + <!--The connectors can use a shared executor, you can define one or more named thread pools--> + <!-- + <Executor name="tomcatThreadPool" namePrefix="catalina-exec-" + maxThreads="150" minSpareThreads="4"/> + --> + + + <!-- A "Connector" represents an endpoint by which requests are received + and responses are returned. Documentation at : + Java HTTP Connector: /docs/config/http.html (blocking & non-blocking) + Java AJP Connector: /docs/config/ajp.html + APR (HTTP/AJP) Connector: /docs/apr.html + Define a non-SSL HTTP/1.1 Connector on port 8080 + --> + <Connector port="8880" protocol="HTTP/1.1" + connectionTimeout="20000" + redirectPort="8443" /> + <!-- A "Connector" using the shared thread pool--> + <!-- + <Connector executor="tomcatThreadPool" + port="8080" protocol="HTTP/1.1" + connectionTimeout="20000" + redirectPort="8443" /> + --> + <!-- Define a SSL HTTP/1.1 Connector on port 8443 + This connector uses the BIO implementation that requires the JSSE + style configuration. When using the APR/native implementation, the + OpenSSL style configuration is required as described in the APR/native + documentation --> + <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" + maxThreads="150" scheme="https" secure="true" + clientAuth="want" sslProtocol="TLS" + truststoreFile="truststore.jks" truststorePass="password" + keystoreFile="conf/keystore.jks" keystorePass="password" + /> + + <!-- Define an AJP 1.3 Connector on port 8009 --> + <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /> + + + <!-- An Engine represents the entry point (within Catalina) that processes + every request. The Engine implementation for Tomcat stand alone + analyzes the HTTP headers included with the request, and passes them + on to the appropriate Host (virtual host). + Documentation at /docs/config/engine.html --> + + <!-- You should set jvmRoute to support load-balancing via AJP ie : + <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1"> + --> + <Engine name="Catalina" defaultHost="localhost"> + + <!--For clustering, please take a look at documentation at: + /docs/cluster-howto.html (simple how to) + /docs/config/cluster.html (reference documentation) --> + <!-- + <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/> + --> + + <!-- Use the LockOutRealm to prevent attempts to guess user passwords + via a brute-force attack --> + <Realm className="org.apache.catalina.realm.LockOutRealm"> + <!-- This Realm uses the UserDatabase configured in the global JNDI + resources under the key "UserDatabase". Any edits + that are performed against this UserDatabase are immediately + available for use by the Realm. --> + <Realm className="org.apache.catalina.realm.UserDatabaseRealm" + resourceName="UserDatabase"/> + </Realm> + + <Host name="localhost" appBase="webapps" + unpackWARs="true" autoDeploy="true"> + + <!-- SingleSignOn valve, share authentication between web applications + Documentation at: /docs/config/valve.html --> + <!-- + <Valve className="org.apache.catalina.authenticator.SingleSignOn" /> + --> + + <!-- Access log processes all example. + Documentation at: /docs/config/valve.html + Note: The pattern used is equivalent to using pattern="common" --> + <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" + prefix="localhost_access_log." suffix=".txt" + pattern="%h %l %u %t "%r" %s %b" /> + + </Host> + </Engine> + </Service> +</Server> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
