http://git-wip-us.apache.org/repos/asf/juddi/blob/5994cd06/juddiv3-war-repl/JAX-WS/CXF/WEB-INF/classes/schemas/spring-util.xsd ---------------------------------------------------------------------- diff --git a/juddiv3-war-repl/JAX-WS/CXF/WEB-INF/classes/schemas/spring-util.xsd b/juddiv3-war-repl/JAX-WS/CXF/WEB-INF/classes/schemas/spring-util.xsd new file mode 100644 index 0000000..f7a754a --- /dev/null +++ b/juddiv3-war-repl/JAX-WS/CXF/WEB-INF/classes/schemas/spring-util.xsd @@ -0,0 +1,212 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> + +<xsd:schema xmlns="http://www.springframework.org/schema/util" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:beans="http://www.springframework.org/schema/beans" + xmlns:tool="http://www.springframework.org/schema/tool" + targetNamespace="http://www.springframework.org/schema/util" + elementFormDefault="qualified" + attributeFormDefault="unqualified"> + + <xsd:import namespace="http://www.springframework.org/schema/beans" schemaLocation="http://www.springframework.org/schema/beans/spring-beans-3.2.xsd"/> + <xsd:import namespace="http://www.springframework.org/schema/tool" schemaLocation="http://www.springframework.org/schema/tool/spring-tool-3.2.xsd"/> + + <xsd:element name="constant"> + <xsd:annotation> + <xsd:documentation> + Reference a public, static field on a type and expose its value as + a bean. For example <code><util:constant static-field="java.lang.Integer.MAX_VALUE"/></code>. + </xsd:documentation> + </xsd:annotation> + <xsd:complexType> + <xsd:attribute name="id" type="xsd:string"/> + <xsd:attribute name="static-field" type="xsd:string" use="required"/> + </xsd:complexType> + </xsd:element> + + <xsd:element name="property-path"> + <xsd:annotation> + <xsd:documentation> + Reference a property on a bean (or as a nested value) and expose its values as + a bean. For example <util:property-path path="order.customer.name"/>. + </xsd:documentation> + </xsd:annotation> + <xsd:complexType> + <xsd:attribute name="id" type="xsd:string"/> + <xsd:attribute name="path" type="xsd:string" use="required"/> + </xsd:complexType> + </xsd:element> + + <xsd:element name="list"> + <xsd:annotation> + <xsd:documentation source="java:org.springframework.beans.factory.config.ListFactoryBean"> + Builds a List instance of the specified type, populated with the specified content. + </xsd:documentation> + <xsd:appinfo> + <tool:annotation> + <tool:exports type="java.util.List"/> + </tool:annotation> + </xsd:appinfo> + </xsd:annotation> + <xsd:complexType> + <xsd:complexContent> + <xsd:extension base="beans:listOrSetType"> + <xsd:attribute name="id" type="xsd:string"/> + <xsd:attribute name="list-class" type="xsd:string"> + <xsd:annotation> + <xsd:appinfo> + <tool:annotation> + <tool:expected-type type="java.lang.Class"/> + <tool:assignable-to type="java.util.List"/> + </tool:annotation> + </xsd:appinfo> + </xsd:annotation> + </xsd:attribute> + <xsd:attribute name="scope" type="xsd:string"> + <xsd:annotation> + <xsd:documentation><![CDATA[ + The scope of this collection bean: typically "singleton" (one shared instance, + which will be returned by all calls to getBean with the given id), or + "prototype" (independent instance resulting from each call to getBean). + Default is "singleton". Further scopes, such as "request" or "session", + might be supported by extended bean factories (e.g. in a web environment). + ]]></xsd:documentation> + </xsd:annotation> + </xsd:attribute> + </xsd:extension> + </xsd:complexContent> + </xsd:complexType> + </xsd:element> + + <xsd:element name="set"> + <xsd:annotation> + <xsd:documentation source="java:org.springframework.beans.factory.config.SetFactoryBean"> + Builds a Set instance of the specified type, populated with the specified content. + </xsd:documentation> + <xsd:appinfo> + <tool:annotation> + <tool:exports type="java.util.Set"/> + </tool:annotation> + </xsd:appinfo> + </xsd:annotation> + <xsd:complexType> + <xsd:complexContent> + <xsd:extension base="beans:listOrSetType"> + <xsd:attribute name="id" type="xsd:string"/> + <xsd:attribute name="set-class" type="xsd:string"> + <xsd:annotation> + <xsd:appinfo> + <tool:annotation> + <tool:expected-type type="java.lang.Class"/> + <tool:assignable-to type="java.util.Set"/> + </tool:annotation> + </xsd:appinfo> + </xsd:annotation> + </xsd:attribute> + <xsd:attribute name="scope" type="xsd:string"> + <xsd:annotation> + <xsd:documentation><![CDATA[ + The scope of this collection bean: typically "singleton" (one shared instance, + which will be returned by all calls to getBean with the given id), or + "prototype" (independent instance resulting from each call to getBean). + Default is "singleton". Further scopes, such as "request" or "session", + might be supported by extended bean factories (e.g. in a web environment). + ]]></xsd:documentation> + </xsd:annotation> + </xsd:attribute> + </xsd:extension> + </xsd:complexContent> + </xsd:complexType> + </xsd:element> + + <xsd:element name="map"> + <xsd:annotation> + <xsd:documentation source="java:org.springframework.beans.factory.config.MapFactoryBean"> + Builds a Map instance of the specified type, populated with the specified content. + </xsd:documentation> + <xsd:appinfo> + <tool:annotation> + <tool:exports type="java.util.Map"/> + </tool:annotation> + </xsd:appinfo> + </xsd:annotation> + <xsd:complexType> + <xsd:complexContent> + <xsd:extension base="beans:mapType"> + <xsd:attribute name="id" type="xsd:string"/> + <xsd:attribute name="map-class" type="xsd:string"> + <xsd:annotation> + <xsd:appinfo> + <tool:annotation> + <tool:expected-type type="java.lang.Class"/> + <tool:assignable-to type="java.util.Map"/> + </tool:annotation> + </xsd:appinfo> + </xsd:annotation> + </xsd:attribute> + <xsd:attribute name="scope" type="xsd:string"> + <xsd:annotation> + <xsd:documentation><![CDATA[ + The scope of this collection bean: typically "singleton" (one shared instance, + which will be returned by all calls to getBean with the given id), or + "prototype" (independent instance resulting from each call to getBean). + Default is "singleton". Further scopes, such as "request" or "session", + might be supported by extended bean factories (e.g. in a web environment). + ]]></xsd:documentation> + </xsd:annotation> + </xsd:attribute> + </xsd:extension> + </xsd:complexContent> + </xsd:complexType> + </xsd:element> + + <xsd:element name="properties"> + <xsd:annotation> + <xsd:documentation source="java:org.springframework.beans.factory.config.PropertiesFactoryBean"> + Loads a Properties instance from the resource location specified by the '<code>location</code>' attribute. + </xsd:documentation> + <xsd:appinfo> + <tool:annotation> + <tool:exports type="java.util.Properties"/> + </tool:annotation> + </xsd:appinfo> + </xsd:annotation> + <xsd:complexType> + <xsd:complexContent> + <xsd:extension base="beans:propsType"> + <xsd:attribute name="id" type="xsd:string"/> + <xsd:attribute name="location" type="xsd:string"> + <xsd:annotation> + <xsd:appinfo> + <tool:annotation> + <tool:expected-type type="org.springframework.core.io.Resource"/> + </tool:annotation> + </xsd:appinfo> + </xsd:annotation> + </xsd:attribute> + <xsd:attribute name="local-override" type="xsd:boolean"> + <xsd:annotation> + <xsd:documentation><![CDATA[ + Specifies whether local properties override properties from files. + Default is "false": properties from files override local defaults. + If set to "true", local properties will override defaults from files. + ]]></xsd:documentation> + </xsd:annotation> + </xsd:attribute> + <xsd:attribute name="scope" type="xsd:string"> + <xsd:annotation> + <xsd:documentation><![CDATA[ + The scope of this collection bean: typically "singleton" (one shared instance, + which will be returned by all calls to getBean with the given id), or + "prototype" (independent instance resulting from each call to getBean). + Default is "singleton". Further scopes, such as "request" or "session", + might be supported by extended bean factories (e.g. in a web environment). + ]]></xsd:documentation> + </xsd:annotation> + </xsd:attribute> + </xsd:extension> + </xsd:complexContent> + </xsd:complexType> + </xsd:element> + +</xsd:schema>
http://git-wip-us.apache.org/repos/asf/juddi/blob/5994cd06/juddiv3-war-repl/JAX-WS/CXF/WEB-INF/web.xml ---------------------------------------------------------------------- diff --git a/juddiv3-war-repl/JAX-WS/CXF/WEB-INF/web.xml b/juddiv3-war-repl/JAX-WS/CXF/WEB-INF/web.xml new file mode 100644 index 0000000..8997354 --- /dev/null +++ b/juddiv3-war-repl/JAX-WS/CXF/WEB-INF/web.xml @@ -0,0 +1,114 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> + +<!DOCTYPE web-app + PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" + "http://java.sun.com/dtd/web-app_2_3.dtd"> + +<!-- + 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. +--> +<web-app> + <context-param> + <param-name>contextConfigLocation</param-name> + <param-value>WEB-INF/beans.xml</param-value> + </context-param> + + <context-param> + <param-name>log4jConfigLocation</param-name> + <param-value>/WEB-INF/classes/log4j.properties</param-value> + </context-param> + + <listener> + <listener-class> + org.springframework.web.context.ContextLoaderListener + </listener-class> + <!-- this class setups the encryption key for the session--> + <listener-class>org.apache.juddi.adminconsole.StartupServlet</listener-class> + + </listener> + + <servlet> + <servlet-name>CXFServlet</servlet-name> + <display-name>CXF Servlet</display-name> + <servlet-class> + org.apache.cxf.transport.servlet.CXFServlet + </servlet-class> + <load-on-startup>1</load-on-startup> + </servlet> + + <servlet> + <servlet-name>RegistryServlet</servlet-name> + <display-name>Registry Servlet</display-name> + <servlet-class> + org.apache.juddi.servlets.RegistryServlet + </servlet-class> + <load-on-startup>1</load-on-startup> + </servlet> + + <servlet> + <servlet-name>NotifyServlet</servlet-name> + <display-name>Notify Servlet</display-name> + <servlet-class> + org.apache.juddi.servlets.NotifyServlet + </servlet-class> + <load-on-startup>1</load-on-startup> + </servlet> + + <servlet-mapping> + <servlet-name>CXFServlet</servlet-name> + <url-pattern>/services/*</url-pattern> + </servlet-mapping> + + <servlet-mapping> + <servlet-name>NotifyServlet</servlet-name> + <url-pattern>/notify/*</url-pattern> + </servlet-mapping> + + <resource-ref> + <description>jUDDI DataSource</description> + <res-ref-name>jdbc/juddiDB</res-ref-name> + <res-type>javax.sql.DataSource</res-type> + <res-auth>Container</res-auth> + <res-sharing-scope>Shareable</res-sharing-scope> + </resource-ref> + <security-constraint> + <display-name>jUDDI Replication content</display-name> + <web-resource-collection> + <web-resource-name>admin</web-resource-name> + <url-pattern>/*</url-pattern> + + + </web-resource-collection> + <auth-constraint> + <role-name>replication</role-name> + </auth-constraint> + <!-- uncomment to require SSL --> + <user-data-constraint> + <transport-guarantee>CONFIDENTIAL</transport-guarantee> + </user-data-constraint> + </security-constraint> + <login-config> + <auth-method>CLIENT-CERT</auth-method> + <realm-name>Apache jUDDI - Make sure you're using HTTPS!</realm-name> + </login-config> + <security-role> + <role-name>replication</role-name> + </security-role> + + +</web-app> http://git-wip-us.apache.org/repos/asf/juddi/blob/5994cd06/juddiv3-war-repl/JAX-WS/JBossWS-CXF/WEB-INF/web.xml ---------------------------------------------------------------------- diff --git a/juddiv3-war-repl/JAX-WS/JBossWS-CXF/WEB-INF/web.xml b/juddiv3-war-repl/JAX-WS/JBossWS-CXF/WEB-INF/web.xml new file mode 100644 index 0000000..e76d9fb --- /dev/null +++ b/juddiv3-war-repl/JAX-WS/JBossWS-CXF/WEB-INF/web.xml @@ -0,0 +1,84 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> + +<!-- + 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. +--> +<web-app> + <context-param> + <param-name>log4jConfigLocation</param-name> + <param-value>/WEB-INF/classes/log4j.properties</param-value> + </context-param> + <listener> + <!-- this class setups the encryption key for the session--> + <listener-class>org.apache.juddi.adminconsole.StartupServlet</listener-class> + + </listener> + <servlet> + <servlet-name>RegistryServlet</servlet-name> + <display-name>Registry Servlet</display-name> + <servlet-class>org.apache.juddi.servlets.RegistryServlet</servlet-class> + <load-on-startup>1</load-on-startup> + </servlet> + + + <servlet> + <servlet-name>UDDIReplicationWS</servlet-name> + + <servlet-class>org.jboss.wsf.stack.cxf.CXFServletExt</servlet-class> + <init-param> + <param-name>jboss.ws.endpoint</param-name> + <param-value>org.apache.juddi.api.impl.UDDIReplicationImpl</param-value> + + </init-param> + </servlet> + + + <servlet-mapping> + <servlet-name>UDDIReplicationWS</servlet-name> + <url-pattern>/services/replication/*</url-pattern> + </servlet-mapping> + + + <security-constraint> + <display-name>jUDDI Replication content</display-name> + <web-resource-collection> + <web-resource-name>admin</web-resource-name> + <url-pattern>/*</url-pattern> + + + </web-resource-collection> + <auth-constraint> + <role-name>replication</role-name> + </auth-constraint> + <!-- uncomment to require SSL --> + <user-data-constraint> + <transport-guarantee>CONFIDENTIAL</transport-guarantee> + </user-data-constraint> + + </security-constraint> + <login-config> + <auth-method>CLIENT-CERT</auth-method> + <!-- you should consider NOT using BASIC is favor of something more secure, see your web app servers documentation for details --> + <realm-name>Apache jUDDI - Make sure you're using HTTPS!</realm-name> + </login-config> + <security-role> + <role-name>replication</role-name> + </security-role> +</web-app> + http://git-wip-us.apache.org/repos/asf/juddi/blob/5994cd06/juddiv3-war-repl/JAX-WS/JBossWS-Native/WEB-INF/web.xml ---------------------------------------------------------------------- diff --git a/juddiv3-war-repl/JAX-WS/JBossWS-Native/WEB-INF/web.xml b/juddiv3-war-repl/JAX-WS/JBossWS-Native/WEB-INF/web.xml new file mode 100644 index 0000000..6a80aa7 --- /dev/null +++ b/juddiv3-war-repl/JAX-WS/JBossWS-Native/WEB-INF/web.xml @@ -0,0 +1,92 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + /* * Copyright 2001-2004 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. */ +--> +<!DOCTYPE web-app PUBLIC + "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" + "http://java.sun.com/dtd/web-app_2_3.dtd"> + +<web-app> + + <display-name>jUDDI</display-name> + <description> + jUDDI is Java-based implementation of an UDDI version 3.0 registry. + </description> + <listener> + <!-- this class setups the encryption key for the session--> + <listener-class>org.apache.juddi.adminconsole.StartupServlet</listener-class> + + </listener> + <servlet> + <servlet-name>RegistryServlet</servlet-name> + <display-name>Registry Servlet</display-name> + <servlet-class>org.apache.juddi.servlets.RegistryServlet</servlet-class> + <load-on-startup>1</load-on-startup> + </servlet> + + <servlet> + <servlet-name>NotifyServlet</servlet-name> + <display-name>Notify Servlet</display-name> + <servlet-class> + org.apache.juddi.servlets.NotifyServlet + </servlet-class> + <load-on-startup>1</load-on-startup> + </servlet> + + + <servlet> + <servlet-name>ReplicationService</servlet-name> + <servlet-class>org.apache.juddi.api.impl.UDDIReplicationImpl</servlet-class> + </servlet> + + + <servlet-mapping> + <servlet-name>NotifyServlet</servlet-name> + <url-pattern>/notify/*</url-pattern> + </servlet-mapping> + + + <servlet-mapping> + <servlet-name>ReplicationService</servlet-name> + <url-pattern>/services/replication</url-pattern> + </servlet-mapping> + + + <welcome-file-list id="WelcomeFileList"> + <welcome-file>index.jsp</welcome-file> + <welcome-file>index.html</welcome-file> + </welcome-file-list> + <security-constraint> + <display-name>jUDDI Replication Services</display-name> + <web-resource-collection> + <web-resource-name>repl</web-resource-name> + <url-pattern>/*</url-pattern> + + + </web-resource-collection> + <auth-constraint> + <role-name>replication</role-name> + </auth-constraint> + <!-- uncomment to require SSL --> + <user-data-constraint> + <transport-guarantee>CONFIDENTIAL</transport-guarantee> + </user-data-constraint> + </security-constraint> + <login-config> + <auth-method>CLIENT-CERT</auth-method> + <realm-name>Apache jUDDI - Make sure you're using HTTPS!</realm-name> + </login-config> + <security-role> + <role-name>replication</role-name> + </security-role> +</web-app> + http://git-wip-us.apache.org/repos/asf/juddi/blob/5994cd06/juddiv3-war-repl/JPA/Hibernate-JBoss/WEB-INF/classes/META-INF/orm.xml.example ---------------------------------------------------------------------- diff --git a/juddiv3-war-repl/JPA/Hibernate-JBoss/WEB-INF/classes/META-INF/orm.xml.example b/juddiv3-war-repl/JPA/Hibernate-JBoss/WEB-INF/classes/META-INF/orm.xml.example new file mode 100644 index 0000000..660655e --- /dev/null +++ b/juddiv3-war-repl/JPA/Hibernate-JBoss/WEB-INF/classes/META-INF/orm.xml.example @@ -0,0 +1,242 @@ +<!-- +/* + * 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. + * + */ + --><entity-mappings + xmlns="http://java.sun.com/xml/ns/persistence/orm" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm classpath:schemas/orm_1_0.xsd" + version="1.0"> + + <sequence-generator name="juddi_sequence" sequence-name="juddi_sequence"/> + + <entity class="org.apache.juddi.model.Address"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.AddressLine"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.BindingDescr"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.BusinessDescr"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.BusinessIdentifier"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.BusinessName"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.CategoryBag"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.Contact"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.ContactDescr"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.DiscoveryUrl"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.Email"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.InstanceDetailsDescr"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.InstanceDetailsDocDescr"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.KeyedReference"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.KeyedReferenceGroup"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.OverviewDoc"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.OverviewDocDescr"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.PersonName"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.Phone"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.ServiceDescr"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.ServiceName"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.SubscriptionMatch"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.TmodelDescr"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.TmodelIdentifier"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.TmodelInstanceInfo"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.TmodelInstanceInfoDescr"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.TransferTokenKey"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + +</entity-mappings> http://git-wip-us.apache.org/repos/asf/juddi/blob/5994cd06/juddiv3-war-repl/JPA/Hibernate-JBoss/WEB-INF/classes/META-INF/persistence.xml ---------------------------------------------------------------------- diff --git a/juddiv3-war-repl/JPA/Hibernate-JBoss/WEB-INF/classes/META-INF/persistence.xml b/juddiv3-war-repl/JPA/Hibernate-JBoss/WEB-INF/classes/META-INF/persistence.xml new file mode 100644 index 0000000..8da4000 --- /dev/null +++ b/juddiv3-war-repl/JPA/Hibernate-JBoss/WEB-INF/classes/META-INF/persistence.xml @@ -0,0 +1,110 @@ +<?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. + * + */ +--> +<persistence xmlns="http://java.sun.com/xml/ns/persistence" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://java.sun.com/xml/ns/persistence classpath:schemas/persistence_1_0.xsd" + version="1.0"> + <persistence-unit name="juddiDatabase" transaction-type="RESOURCE_LOCAL"> + <provider>org.hibernate.ejb.HibernatePersistence</provider> + <non-jta-data-source>java:/DefaultDS</non-jta-data-source> + <!-- entity classes --> + <class>org.apache.juddi.model.Address</class> + <class>org.apache.juddi.model.AddressLine</class> + <class>org.apache.juddi.model.AuthToken</class> + <class>org.apache.juddi.model.BindingCategoryBag</class> + <class>org.apache.juddi.model.BindingDescr</class> + <class>org.apache.juddi.model.BindingTemplate</class> + <class>org.apache.juddi.model.BusinessCategoryBag</class> + <class>org.apache.juddi.model.BusinessDescr</class> + <class>org.apache.juddi.model.BusinessEntity</class> + <class>org.apache.juddi.model.BusinessIdentifier</class> + <class>org.apache.juddi.model.BusinessName</class> + <class>org.apache.juddi.model.BusinessService</class> + <class>org.apache.juddi.model.CanonicalizationMethod</class> + <class>org.apache.juddi.model.CategoryBag</class> + <class>org.apache.juddi.model.Clerk</class> + <class>org.apache.juddi.model.ClientSubscriptionInfo</class> + <class>org.apache.juddi.model.Contact</class> + <class>org.apache.juddi.model.ContactDescr</class> + <class>org.apache.juddi.model.DiscoveryUrl</class> + <class>org.apache.juddi.model.Email</class> + <class>org.apache.juddi.model.InstanceDetailsDescr</class> + <class>org.apache.juddi.model.InstanceDetailsDocDescr</class> + <class>org.apache.juddi.model.KeyedReference</class> + <class>org.apache.juddi.model.KeyedReferenceGroup</class> + <class>org.apache.juddi.model.KeyDataValue</class> + <class>org.apache.juddi.model.KeyInfo</class> + <class>org.apache.juddi.model.Node</class> + <class>org.apache.juddi.model.ObjectType</class> + <class>org.apache.juddi.model.ObjectTypeContent</class> + <class>org.apache.juddi.model.OverviewDoc</class> + <class>org.apache.juddi.model.OverviewDocDescr</class> + <class>org.apache.juddi.model.PersonName</class> + <class>org.apache.juddi.model.Phone</class> + <class>org.apache.juddi.model.Publisher</class> + <class>org.apache.juddi.model.PublisherAssertion</class> + <class>org.apache.juddi.model.PublisherAssertionId</class> + <class>org.apache.juddi.model.Reference</class> + <class>org.apache.juddi.model.ServiceCategoryBag</class> + <class>org.apache.juddi.model.ServiceDescr</class> + <class>org.apache.juddi.model.ServiceName</class> + <class>org.apache.juddi.model.ServiceProjection</class> + <class>org.apache.juddi.model.ServiceProjectionId</class> + <class>org.apache.juddi.model.Signature</class> + <class>org.apache.juddi.model.SignatureMethod</class> + <class>org.apache.juddi.model.SignatureTransform</class> + <class>org.apache.juddi.model.SignatureTransformDataValue</class> + <class>org.apache.juddi.model.SignatureValue</class> + <class>org.apache.juddi.model.SignedInfo</class> + <class>org.apache.juddi.model.Subscription</class> + <class>org.apache.juddi.model.SubscriptionChunkToken</class> + <class>org.apache.juddi.model.SubscriptionMatch</class> + <class>org.apache.juddi.model.TempKey</class> + <class>org.apache.juddi.model.TempKeyPK</class> + <class>org.apache.juddi.model.Tmodel</class> + <class>org.apache.juddi.model.TmodelCategoryBag</class> + <class>org.apache.juddi.model.TmodelDescr</class> + <class>org.apache.juddi.model.TmodelIdentifier</class> + <class>org.apache.juddi.model.TmodelInstanceInfo</class> + <class>org.apache.juddi.model.TmodelInstanceInfoDescr</class> + <class>org.apache.juddi.model.TransferToken</class> + <class>org.apache.juddi.model.TransferTokenKey</class> + <class>org.apache.juddi.model.UddiEntity</class> + <class>org.apache.juddi.model.UddiEntityPublisher</class> + <class>org.apache.juddi.model.ValueSetValues</class> + + <class>org.apache.juddi.model.ChangeRecord</class> + <class>org.apache.juddi.model.Operator</class> + <class>org.apache.juddi.model.ReplicationConfiguration</class> + <class>org.apache.juddi.model.Edge</class> + <class>org.apache.juddi.model.ControlMessage</class> + <class>org.apache.juddi.model.ReplicationConfigurationNode</class> + <class>org.apache.juddi.model.EdgeReceiverAlternate</class> + + <properties> + <property name="hibernate.archive.autodetection" value="class"/> + <property name="hibernate.hbm2ddl.auto" value="update"/> + <property name="hibernate.show_sql" value="false"/> + + <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/> + + </properties> + </persistence-unit> +</persistence> http://git-wip-us.apache.org/repos/asf/juddi/blob/5994cd06/juddiv3-war-repl/JPA/Hibernate-JBoss/WEB-INF/index.jsp ---------------------------------------------------------------------- diff --git a/juddiv3-war-repl/JPA/Hibernate-JBoss/WEB-INF/index.jsp b/juddiv3-war-repl/JPA/Hibernate-JBoss/WEB-INF/index.jsp new file mode 100644 index 0000000..3908cde --- /dev/null +++ b/juddiv3-war-repl/JPA/Hibernate-JBoss/WEB-INF/index.jsp @@ -0,0 +1,131 @@ +<%@ page session="false" %> +<% +/* + * 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. + * + */ + %> +<%@ page import="java.util.List, + org.apache.juddi.config.Install, + javax.xml.bind.JAXBException, + org.uddi.v3_service.DispositionReportFaultMessage, + org.apache.juddi.config.AppConfig, + org.apache.juddi.config.Property, + org.uddi.api_v3.BusinessEntity, + org.uddi.api_v3.Name, + org.uddi.api_v3.Description, + java.io.IOException, + org.apache.juddi.config.Release" +%> + +<!-- index.jsp --> +<html> +<head> +<title>Apache jUDDI Registry</title> +<link rel="stylesheet" href="juddi.css" /> +</head> +<body> +<div class="header" align="right"><a href="http://ws.apache.org/juddi/" target="_top">jUDDI@Apache</a></div> +<h1>Apache jUDDI version <%= Release.getRegistryVersion() %></h1> + + +<h3><em>Welcome</em> to Apache jUDDI!</h3> +<div class="install"> +<h4>jUDDI Documentation</h4> + <div class="content"> + <table><tr> + <td> + <ul> + <li><a href="/pluto/portal/jUDDI">jUDDI Portal (if installed)</a></li> + <li><a href="/jbossws/services">View</a> service listing</li> + <li><a href="http://juddi.apache.org/">Visit</a> the Apache-jUDDI Home Page</li> + <li><a href="http://issues.apache.org/jira/browse/JUDDI">Report</a> a bug</li> + <li><a href="http://juddi.apache.org/participate.html">Participate! We love you..</a></li> + <li><a href="http://juddi.apache.org/library.html">UDDI library</a></li> + </ul> + </td> + <td> + <ul> + <li><a href="http://juddi.apache.org/docs/3.x/userguide/html/index.html">jUDDI User Guide</a></li> + <li><a href="http://juddi.apache.org/docs/3.x/devguide/html/index.html">jUDDI Developer Guide</a></li> + <li><a href="http://svn.apache.org/repos/asf/juddi/trunk/docs/uddi3-specification/uddi-v3.0.2-20041019.pdf">UDDI v3.0.2 Specification</a></li> + <li><a href="http://wiki.apache.org/jUDDI">jUDDI wiki</a> - add your own docs</li> + <li><a href="http://apachejuddi.blogspot.com/">jUDDI Blog</a></li> + </ul> + </td> + </tr> + </table> +</div> + +<div class="install"> + <h4>jUDDI Installation</h4> + <div class="content"> +<% + // This will trigger the install process... + String rootPartition = AppConfig.getConfiguration().getString(Property.JUDDI_ROOT_PARTITION); + String nodeId = AppConfig.getConfiguration().getString(Property.JUDDI_NODE_ID); + String nodeName = ""; + String nodeDescription = ""; + + BusinessEntity be = Install.getNodeBusinessEntity(nodeId); + + if (be != null) { + Name n = (Name) be.getName().get(0); + if (n != null) + nodeName = n.getValue(); + + List descList = be.getDescription(); + if (descList != null && descList.size() > 0) { + Description d = (Description) descList.get(0); + if (d != null) + nodeDescription = d.getValue(); + } + } +%> + <div>jUDDI has been successfully installed!</div> + <p /> + <h3>Node Information</h3> + <table> + <tr> + <td><b>Root Partition:</b></td> + <td><%= rootPartition %></td> + </tr> + <tr> + <td><b>Node Id:</b></td> + <td><%= nodeId %></td> + </tr> + <tr> + <td><b>Name:</b></td> + <td><%= nodeName %></td> + </tr> + <tr> + <td><b>Description:</b></td> + <td><%= nodeDescription %></td> + </tr> + </table> + </div> +</div> + +<hr /> +<table width="100%" border="0"> + <tr> + <td height="50" align="center" valign="bottom" nowrap> + <div class="footer"> </div> + </td> + </tr> +</table> + +</body> +</html> http://git-wip-us.apache.org/repos/asf/juddi/blob/5994cd06/juddiv3-war-repl/JPA/Hibernate-JBoss/WEB-INF/jboss-web.xml ---------------------------------------------------------------------- diff --git a/juddiv3-war-repl/JPA/Hibernate-JBoss/WEB-INF/jboss-web.xml b/juddiv3-war-repl/JPA/Hibernate-JBoss/WEB-INF/jboss-web.xml new file mode 100644 index 0000000..3f356a0 --- /dev/null +++ b/juddiv3-war-repl/JPA/Hibernate-JBoss/WEB-INF/jboss-web.xml @@ -0,0 +1,32 @@ +<?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. + * + */ +--> +<!DOCTYPE jboss-web PUBLIC + "-//JBoss//DTD Web Application 2.3V2//EN" + "http://www.jboss.org/j2ee/dtd/jboss-web_3_2.dtd"> + +<jboss-web> + + <resource-ref> + <res-ref-name>jdbc/DefaultDS</res-ref-name> + <jndi-name>java:/DefaultDS</jndi-name> + </resource-ref> + <depends>jboss.jdbc:datasource=DefaultDS,service=metadata</depends> + +</jboss-web> http://git-wip-us.apache.org/repos/asf/juddi/blob/5994cd06/juddiv3-war-repl/JPA/Hibernate-JBossAS7Up/WEB-INF/classes/META-INF/orm.xml.example ---------------------------------------------------------------------- diff --git a/juddiv3-war-repl/JPA/Hibernate-JBossAS7Up/WEB-INF/classes/META-INF/orm.xml.example b/juddiv3-war-repl/JPA/Hibernate-JBossAS7Up/WEB-INF/classes/META-INF/orm.xml.example new file mode 100644 index 0000000..deb90a2 --- /dev/null +++ b/juddiv3-war-repl/JPA/Hibernate-JBossAS7Up/WEB-INF/classes/META-INF/orm.xml.example @@ -0,0 +1,243 @@ +<!-- +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. +--> +<entity-mappings + xmlns="http://java.sun.com/xml/ns/persistence/orm" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm classpath:schemas/orm_1_0.xsd" + version="1.0"> + + <sequence-generator name="juddi_sequence" sequence-name="juddi_sequence"/> + + <entity class="org.apache.juddi.model.Address"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.AddressLine"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.BindingDescr"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.BusinessDescr"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.BusinessIdentifier"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.BusinessName"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.CategoryBag"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.Contact"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.ContactDescr"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.DiscoveryUrl"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.Email"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.InstanceDetailsDescr"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.InstanceDetailsDocDescr"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.KeyedReference"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.KeyedReferenceGroup"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.OverviewDoc"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.OverviewDocDescr"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.PersonName"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.Phone"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.ServiceDescr"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.ServiceName"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.SubscriptionMatch"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.TmodelDescr"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.TmodelIdentifier"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.TmodelInstanceInfo"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.TmodelInstanceInfoDescr"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.TransferTokenKey"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + +</entity-mappings> http://git-wip-us.apache.org/repos/asf/juddi/blob/5994cd06/juddiv3-war-repl/JPA/Hibernate-JBossAS7Up/WEB-INF/classes/META-INF/persistence.xml ---------------------------------------------------------------------- diff --git a/juddiv3-war-repl/JPA/Hibernate-JBossAS7Up/WEB-INF/classes/META-INF/persistence.xml b/juddiv3-war-repl/JPA/Hibernate-JBossAS7Up/WEB-INF/classes/META-INF/persistence.xml new file mode 100644 index 0000000..10fc12a --- /dev/null +++ b/juddiv3-war-repl/JPA/Hibernate-JBossAS7Up/WEB-INF/classes/META-INF/persistence.xml @@ -0,0 +1,111 @@ +<?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. +--> +<persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence + http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd"> + + <persistence-unit name="juddiDatabase" transaction-type="RESOURCE_LOCAL"> + <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider> + <jta-data-source>java:jboss/datasources/ExampleDS</jta-data-source> + <!-- entity classes --> + <class>org.apache.juddi.model.Address</class> + <class>org.apache.juddi.model.AddressLine</class> + <class>org.apache.juddi.model.AuthToken</class> + <class>org.apache.juddi.model.BindingCategoryBag</class> + <class>org.apache.juddi.model.BindingDescr</class> + <class>org.apache.juddi.model.BindingTemplate</class> + <class>org.apache.juddi.model.BusinessCategoryBag</class> + <class>org.apache.juddi.model.BusinessDescr</class> + <class>org.apache.juddi.model.BusinessEntity</class> + <class>org.apache.juddi.model.BusinessIdentifier</class> + <class>org.apache.juddi.model.BusinessName</class> + <class>org.apache.juddi.model.BusinessService</class> + <class>org.apache.juddi.model.CanonicalizationMethod</class> + <class>org.apache.juddi.model.CategoryBag</class> + <class>org.apache.juddi.model.Clerk</class> + <class>org.apache.juddi.model.ClientSubscriptionInfo</class> + <class>org.apache.juddi.model.Contact</class> + <class>org.apache.juddi.model.ContactDescr</class> + <class>org.apache.juddi.model.DiscoveryUrl</class> + <class>org.apache.juddi.model.Email</class> + <class>org.apache.juddi.model.InstanceDetailsDescr</class> + <class>org.apache.juddi.model.InstanceDetailsDocDescr</class> + <class>org.apache.juddi.model.KeyedReference</class> + <class>org.apache.juddi.model.KeyedReferenceGroup</class> + <class>org.apache.juddi.model.KeyDataValue</class> + <class>org.apache.juddi.model.KeyInfo</class> + <class>org.apache.juddi.model.Node</class> + <class>org.apache.juddi.model.ObjectType</class> + <class>org.apache.juddi.model.ObjectTypeContent</class> + <class>org.apache.juddi.model.OverviewDoc</class> + <class>org.apache.juddi.model.OverviewDocDescr</class> + <class>org.apache.juddi.model.PersonName</class> + <class>org.apache.juddi.model.Phone</class> + <class>org.apache.juddi.model.Publisher</class> + <class>org.apache.juddi.model.PublisherAssertion</class> + <class>org.apache.juddi.model.PublisherAssertionId</class> + <class>org.apache.juddi.model.Reference</class> + <class>org.apache.juddi.model.ServiceCategoryBag</class> + <class>org.apache.juddi.model.ServiceDescr</class> + <class>org.apache.juddi.model.ServiceName</class> + <class>org.apache.juddi.model.ServiceProjection</class> + <class>org.apache.juddi.model.ServiceProjectionId</class> + <class>org.apache.juddi.model.Signature</class> + <class>org.apache.juddi.model.SignatureMethod</class> + <class>org.apache.juddi.model.SignatureTransform</class> + <class>org.apache.juddi.model.SignatureTransformDataValue</class> + <class>org.apache.juddi.model.SignatureValue</class> + <class>org.apache.juddi.model.SignedInfo</class> + <class>org.apache.juddi.model.Subscription</class> + <class>org.apache.juddi.model.SubscriptionChunkToken</class> + <class>org.apache.juddi.model.SubscriptionMatch</class> + <class>org.apache.juddi.model.TempKey</class> + <class>org.apache.juddi.model.TempKeyPK</class> + <class>org.apache.juddi.model.Tmodel</class> + <class>org.apache.juddi.model.TmodelCategoryBag</class> + <class>org.apache.juddi.model.TmodelDescr</class> + <class>org.apache.juddi.model.TmodelIdentifier</class> + <class>org.apache.juddi.model.TmodelInstanceInfo</class> + <class>org.apache.juddi.model.TmodelInstanceInfoDescr</class> + <class>org.apache.juddi.model.TransferToken</class> + <class>org.apache.juddi.model.TransferTokenKey</class> + <class>org.apache.juddi.model.UddiEntity</class> + <class>org.apache.juddi.model.UddiEntityPublisher</class> + <class>org.apache.juddi.model.ValueSetValues</class> + + <class>org.apache.juddi.model.ChangeRecord</class> + <class>org.apache.juddi.model.Operator</class> + <class>org.apache.juddi.model.ReplicationConfiguration</class> + <class>org.apache.juddi.model.Edge</class> + <class>org.apache.juddi.model.ControlMessage</class> + <class>org.apache.juddi.model.ReplicationConfigurationNode</class> + <class>org.apache.juddi.model.EdgeReceiverAlternate</class> + + <properties> + <property name="hibernate.archive.autodetection" value="class"/> + <property name="hibernate.hbm2ddl.auto" value="update"/> + <property name="hibernate.show_sql" value="false"/> + <property name="hibernate.listeners.envers.autoRegister" value="false" /> + <property name="hibernate.id.new_generator_mappings" value="true" /> + <property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect"/> + </properties> + </persistence-unit> +</persistence> http://git-wip-us.apache.org/repos/asf/juddi/blob/5994cd06/juddiv3-war-repl/JPA/Hibernate-JBossAS7Up/WEB-INF/jboss-deployment-structure.xml ---------------------------------------------------------------------- diff --git a/juddiv3-war-repl/JPA/Hibernate-JBossAS7Up/WEB-INF/jboss-deployment-structure.xml b/juddiv3-war-repl/JPA/Hibernate-JBossAS7Up/WEB-INF/jboss-deployment-structure.xml new file mode 100644 index 0000000..f55959a --- /dev/null +++ b/juddiv3-war-repl/JPA/Hibernate-JBossAS7Up/WEB-INF/jboss-deployment-structure.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<jboss-deployment-structure> + <deployment> + <dependencies> + <module name="org.jboss.as.jpa" /> + <module name="org.jboss.ws.cxf.jbossws-cxf-server" /> + </dependencies> + </deployment> +</jboss-deployment-structure> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/juddi/blob/5994cd06/juddiv3-war-repl/JPA/Hibernate-JBossAS7Up/WEB-INF/jboss-web.xml ---------------------------------------------------------------------- diff --git a/juddiv3-war-repl/JPA/Hibernate-JBossAS7Up/WEB-INF/jboss-web.xml b/juddiv3-war-repl/JPA/Hibernate-JBossAS7Up/WEB-INF/jboss-web.xml new file mode 100644 index 0000000..108b011 --- /dev/null +++ b/juddiv3-war-repl/JPA/Hibernate-JBossAS7Up/WEB-INF/jboss-web.xml @@ -0,0 +1,26 @@ +<!-- +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. +--> +<jboss-web> + <context-root>juddiv3</context-root> + + <resource-ref> + <res-ref-name>jdbc/juddidb</res-ref-name> + <jndi-name>java:jboss/datasources/ExampleDS</jndi-name> + </resource-ref> +</jboss-web> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/juddi/blob/5994cd06/juddiv3-war-repl/JPA/Hibernate/WEB-INF/classes/META-INF/orm.xml.example ---------------------------------------------------------------------- diff --git a/juddiv3-war-repl/JPA/Hibernate/WEB-INF/classes/META-INF/orm.xml.example b/juddiv3-war-repl/JPA/Hibernate/WEB-INF/classes/META-INF/orm.xml.example new file mode 100644 index 0000000..2aed627 --- /dev/null +++ b/juddiv3-war-repl/JPA/Hibernate/WEB-INF/classes/META-INF/orm.xml.example @@ -0,0 +1,243 @@ +<!-- +/* + * 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. + * + */ + --> + <entity-mappings + xmlns="http://java.sun.com/xml/ns/persistence/orm" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm classpath:schemas/orm_1_0.xsd" + version="1.0"> + + <sequence-generator name="juddi_sequence" sequence-name="juddi_sequence"/> + + <entity class="org.apache.juddi.model.Address"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.AddressLine"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.BindingDescr"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.BusinessDescr"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.BusinessIdentifier"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.BusinessName"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.CategoryBag"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.Contact"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.ContactDescr"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.DiscoveryUrl"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.Email"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.InstanceDetailsDescr"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.InstanceDetailsDocDescr"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.KeyedReference"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.KeyedReferenceGroup"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.OverviewDoc"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.OverviewDocDescr"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.PersonName"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.Phone"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.ServiceDescr"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.ServiceName"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.SubscriptionMatch"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.TmodelDescr"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.TmodelIdentifier"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.TmodelInstanceInfo"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.TmodelInstanceInfoDescr"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.TransferTokenKey"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + +</entity-mappings> http://git-wip-us.apache.org/repos/asf/juddi/blob/5994cd06/juddiv3-war-repl/JPA/Hibernate/WEB-INF/classes/META-INF/persistence.xml ---------------------------------------------------------------------- diff --git a/juddiv3-war-repl/JPA/Hibernate/WEB-INF/classes/META-INF/persistence.xml b/juddiv3-war-repl/JPA/Hibernate/WEB-INF/classes/META-INF/persistence.xml new file mode 100644 index 0000000..8cff09c --- /dev/null +++ b/juddiv3-war-repl/JPA/Hibernate/WEB-INF/classes/META-INF/persistence.xml @@ -0,0 +1,111 @@ +<?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. + * + */ +--> +<persistence xmlns="http://java.sun.com/xml/ns/persistence" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://java.sun.com/xml/ns/persistence classpath:schemas/persistence_1_0.xsd" + version="1.0"> + <persistence-unit name="juddiDatabase" transaction-type="RESOURCE_LOCAL"> + <provider>org.hibernate.ejb.HibernatePersistence</provider> + <jta-data-source>java:comp/env/jdbc/JuddiDS</jta-data-source> + <!-- entity classes --> + <class>org.apache.juddi.model.Address</class> + <class>org.apache.juddi.model.AddressLine</class> + <class>org.apache.juddi.model.AuthToken</class> + <class>org.apache.juddi.model.BindingCategoryBag</class> + <class>org.apache.juddi.model.BindingDescr</class> + <class>org.apache.juddi.model.BindingTemplate</class> + <class>org.apache.juddi.model.BusinessCategoryBag</class> + <class>org.apache.juddi.model.BusinessDescr</class> + <class>org.apache.juddi.model.BusinessEntity</class> + <class>org.apache.juddi.model.BusinessIdentifier</class> + <class>org.apache.juddi.model.BusinessName</class> + <class>org.apache.juddi.model.BusinessService</class> + <class>org.apache.juddi.model.CanonicalizationMethod</class> + <class>org.apache.juddi.model.CategoryBag</class> + <class>org.apache.juddi.model.Clerk</class> + <class>org.apache.juddi.model.ClientSubscriptionInfo</class> + <class>org.apache.juddi.model.Contact</class> + <class>org.apache.juddi.model.ContactDescr</class> + <class>org.apache.juddi.model.DiscoveryUrl</class> + <class>org.apache.juddi.model.Email</class> + <class>org.apache.juddi.model.InstanceDetailsDescr</class> + <class>org.apache.juddi.model.InstanceDetailsDocDescr</class> + <class>org.apache.juddi.model.KeyedReference</class> + <class>org.apache.juddi.model.KeyedReferenceGroup</class> + <class>org.apache.juddi.model.KeyDataValue</class> + <class>org.apache.juddi.model.KeyInfo</class> + <class>org.apache.juddi.model.Node</class> + <class>org.apache.juddi.model.ObjectType</class> + <class>org.apache.juddi.model.ObjectTypeContent</class> + <class>org.apache.juddi.model.OverviewDoc</class> + <class>org.apache.juddi.model.OverviewDocDescr</class> + <class>org.apache.juddi.model.PersonName</class> + <class>org.apache.juddi.model.Phone</class> + <class>org.apache.juddi.model.Publisher</class> + <class>org.apache.juddi.model.PublisherAssertion</class> + <class>org.apache.juddi.model.PublisherAssertionId</class> + <class>org.apache.juddi.model.Reference</class> + <class>org.apache.juddi.model.ServiceCategoryBag</class> + <class>org.apache.juddi.model.ServiceDescr</class> + <class>org.apache.juddi.model.ServiceName</class> + <class>org.apache.juddi.model.ServiceProjection</class> + <class>org.apache.juddi.model.ServiceProjectionId</class> + <class>org.apache.juddi.model.Signature</class> + <class>org.apache.juddi.model.SignatureMethod</class> + <class>org.apache.juddi.model.SignatureTransform</class> + <class>org.apache.juddi.model.SignatureTransformDataValue</class> + <class>org.apache.juddi.model.SignatureValue</class> + <class>org.apache.juddi.model.SignedInfo</class> + <class>org.apache.juddi.model.Subscription</class> + <class>org.apache.juddi.model.SubscriptionChunkToken</class> + <class>org.apache.juddi.model.SubscriptionMatch</class> + <class>org.apache.juddi.model.TempKey</class> + <class>org.apache.juddi.model.TempKeyPK</class> + <class>org.apache.juddi.model.Tmodel</class> + <class>org.apache.juddi.model.TmodelCategoryBag</class> + <class>org.apache.juddi.model.TmodelDescr</class> + <class>org.apache.juddi.model.TmodelIdentifier</class> + <class>org.apache.juddi.model.TmodelInstanceInfo</class> + <class>org.apache.juddi.model.TmodelInstanceInfoDescr</class> + <class>org.apache.juddi.model.TransferToken</class> + <class>org.apache.juddi.model.TransferTokenKey</class> + <class>org.apache.juddi.model.UddiEntity</class> + <class>org.apache.juddi.model.UddiEntityPublisher</class> + <class>org.apache.juddi.model.ValueSetValues</class> + + <class>org.apache.juddi.model.ChangeRecord</class> + <class>org.apache.juddi.model.CommunicationGraph</class> + <class>org.apache.juddi.model.Operator</class> + <class>org.apache.juddi.model.ReplicationConfiguration</class> + <class>org.apache.juddi.model.Edge</class> + <class>org.apache.juddi.model.ControlMessage</class> + <class>org.apache.juddi.model.ReplicationConfigurationNode</class> + <class>org.apache.juddi.model.EdgeReceiverAlternate</class> + + <properties> + <property name="hibernate.archive.autodetection" value="class"/> + <property name="hibernate.hbm2ddl.auto" value="update"/> + <property name="hibernate.show_sql" value="false"/> + + <property name="hibernate.dialect" value="org.hibernate.dialect.DerbyDialect"/> + + </properties> + </persistence-unit> +</persistence> http://git-wip-us.apache.org/repos/asf/juddi/blob/5994cd06/juddiv3-war-repl/JPA/Hibernate/WEB-INF/classes/log4j.properties ---------------------------------------------------------------------- diff --git a/juddiv3-war-repl/JPA/Hibernate/WEB-INF/classes/log4j.properties b/juddiv3-war-repl/JPA/Hibernate/WEB-INF/classes/log4j.properties new file mode 100644 index 0000000..5d85a79 --- /dev/null +++ b/juddiv3-war-repl/JPA/Hibernate/WEB-INF/classes/log4j.properties @@ -0,0 +1,37 @@ +# 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. +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.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/5994cd06/juddiv3-war-repl/JPA/OpenJPA/WEB-INF/classes/META-INF/orm.xml.example ---------------------------------------------------------------------- diff --git a/juddiv3-war-repl/JPA/OpenJPA/WEB-INF/classes/META-INF/orm.xml.example b/juddiv3-war-repl/JPA/OpenJPA/WEB-INF/classes/META-INF/orm.xml.example new file mode 100644 index 0000000..deb90a2 --- /dev/null +++ b/juddiv3-war-repl/JPA/OpenJPA/WEB-INF/classes/META-INF/orm.xml.example @@ -0,0 +1,243 @@ +<!-- +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. +--> +<entity-mappings + xmlns="http://java.sun.com/xml/ns/persistence/orm" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm classpath:schemas/orm_1_0.xsd" + version="1.0"> + + <sequence-generator name="juddi_sequence" sequence-name="juddi_sequence"/> + + <entity class="org.apache.juddi.model.Address"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.AddressLine"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.BindingDescr"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.BusinessDescr"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.BusinessIdentifier"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.BusinessName"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.CategoryBag"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.Contact"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.ContactDescr"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.DiscoveryUrl"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.Email"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.InstanceDetailsDescr"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.InstanceDetailsDocDescr"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.KeyedReference"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.KeyedReferenceGroup"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.OverviewDoc"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.OverviewDocDescr"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.PersonName"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.Phone"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.ServiceDescr"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.ServiceName"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.SubscriptionMatch"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.TmodelDescr"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.TmodelIdentifier"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.TmodelInstanceInfo"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.TmodelInstanceInfoDescr"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + + <entity class="org.apache.juddi.model.TransferTokenKey"> + <attributes> + <id name="id"> + <generated-value generator="juddi_sequence" strategy="AUTO"/> + </id> + </attributes> + </entity> + +</entity-mappings> http://git-wip-us.apache.org/repos/asf/juddi/blob/5994cd06/juddiv3-war-repl/JPA/OpenJPA/WEB-INF/classes/META-INF/persistence.xml ---------------------------------------------------------------------- diff --git a/juddiv3-war-repl/JPA/OpenJPA/WEB-INF/classes/META-INF/persistence.xml b/juddiv3-war-repl/JPA/OpenJPA/WEB-INF/classes/META-INF/persistence.xml new file mode 100644 index 0000000..35ff53d --- /dev/null +++ b/juddiv3-war-repl/JPA/OpenJPA/WEB-INF/classes/META-INF/persistence.xml @@ -0,0 +1,111 @@ +<?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. +--> +<persistence xmlns="http://java.sun.com/xml/ns/persistence" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://java.sun.com/xml/ns/persistence classpath:schemas/persistence_1_0.xsd" + version="1.0"> + <persistence-unit name="juddiDatabase" transaction-type="RESOURCE_LOCAL"> + <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider> + <non-jta-data-source>java:comp/env/jdbc/JuddiDS</non-jta-data-source> + <!-- entity classes --> + <class>org.apache.juddi.model.Address</class> + <class>org.apache.juddi.model.AddressLine</class> + <class>org.apache.juddi.model.AuthToken</class> + <class>org.apache.juddi.model.BindingCategoryBag</class> + <class>org.apache.juddi.model.BindingDescr</class> + <class>org.apache.juddi.model.BindingTemplate</class> + <class>org.apache.juddi.model.BusinessCategoryBag</class> + <class>org.apache.juddi.model.BusinessDescr</class> + <class>org.apache.juddi.model.BusinessEntity</class> + <class>org.apache.juddi.model.BusinessIdentifier</class> + <class>org.apache.juddi.model.BusinessName</class> + <class>org.apache.juddi.model.BusinessService</class> + <class>org.apache.juddi.model.CanonicalizationMethod</class> + <class>org.apache.juddi.model.CategoryBag</class> + <class>org.apache.juddi.model.Clerk</class> + <class>org.apache.juddi.model.ClientSubscriptionInfo</class> + <class>org.apache.juddi.model.Contact</class> + <class>org.apache.juddi.model.ContactDescr</class> + <class>org.apache.juddi.model.DiscoveryUrl</class> + <class>org.apache.juddi.model.Email</class> + <class>org.apache.juddi.model.InstanceDetailsDescr</class> + <class>org.apache.juddi.model.InstanceDetailsDocDescr</class> + <class>org.apache.juddi.model.KeyedReference</class> + <class>org.apache.juddi.model.KeyedReferenceGroup</class> + <class>org.apache.juddi.model.KeyDataValue</class> + <class>org.apache.juddi.model.KeyInfo</class> + <class>org.apache.juddi.model.Node</class> + <class>org.apache.juddi.model.ObjectType</class> + <class>org.apache.juddi.model.ObjectTypeContent</class> + <class>org.apache.juddi.model.OverviewDoc</class> + <class>org.apache.juddi.model.OverviewDocDescr</class> + <class>org.apache.juddi.model.PersonName</class> + <class>org.apache.juddi.model.Phone</class> + <class>org.apache.juddi.model.Publisher</class> + <class>org.apache.juddi.model.PublisherAssertion</class> + <class>org.apache.juddi.model.PublisherAssertionId</class> + <class>org.apache.juddi.model.Reference</class> + <class>org.apache.juddi.model.ServiceCategoryBag</class> + <class>org.apache.juddi.model.ServiceDescr</class> + <class>org.apache.juddi.model.ServiceName</class> + <class>org.apache.juddi.model.ServiceProjection</class> + <class>org.apache.juddi.model.ServiceProjectionId</class> + <class>org.apache.juddi.model.Signature</class> + <class>org.apache.juddi.model.SignatureMethod</class> + <class>org.apache.juddi.model.SignatureTransform</class> + <class>org.apache.juddi.model.SignatureTransformDataValue</class> + <class>org.apache.juddi.model.SignatureValue</class> + <class>org.apache.juddi.model.SignedInfo</class> + <class>org.apache.juddi.model.Subscription</class> + <class>org.apache.juddi.model.SubscriptionChunkToken</class> + <class>org.apache.juddi.model.SubscriptionMatch</class> + <class>org.apache.juddi.model.TempKey</class> + <class>org.apache.juddi.model.TempKeyPK</class> + <class>org.apache.juddi.model.Tmodel</class> + <class>org.apache.juddi.model.TmodelCategoryBag</class> + <class>org.apache.juddi.model.TmodelDescr</class> + <class>org.apache.juddi.model.TmodelIdentifier</class> + <class>org.apache.juddi.model.TmodelInstanceInfo</class> + <class>org.apache.juddi.model.TmodelInstanceInfoDescr</class> + <class>org.apache.juddi.model.TransferToken</class> + <class>org.apache.juddi.model.TransferTokenKey</class> + <class>org.apache.juddi.model.UddiEntity</class> + <class>org.apache.juddi.model.UddiEntityPublisher</class> + <class>org.apache.juddi.model.ValueSetValues</class> + <class>org.apache.juddi.model.ChangeRecord</class> + <class>org.apache.juddi.model.Edge</class> + <class>org.apache.juddi.model.Operator</class> + <class>org.apache.juddi.model.ReplicationConfiguration</class> + <class>org.apache.juddi.model.ControlMessage</class> + <class>org.apache.juddi.model.ReplicationConfigurationNode</class> + <class>org.apache.juddi.model.EdgeReceiverAlternate</class> + + <properties> + <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(SchemaAction='add')"/> + <property name="openjpa.Log" value="DefaultLevel=WARN, Tool=INFO"/> + <property name="openjpa.jdbc.UpdateManager" value="operation-order"/> + <property name="openjpa.jdbc.DBDictionary" value="derby"/> + <!-- dialects: derby, postgres, mysql, oracle, sybase, sqlserver + for a complete list check the OpenJPA documentation --> + <property name="openjpa.RuntimeUnenhancedClasses" value="warn"/> + <property name="openjpa.Compatibility" value="CheckDatabaseForCascadePersistToDetachedEntity=true"/> + </properties> + </persistence-unit> +</persistence> http://git-wip-us.apache.org/repos/asf/juddi/blob/5994cd06/juddiv3-war-repl/JPA/OpenJPA/WEB-INF/classes/log4j.properties ---------------------------------------------------------------------- diff --git a/juddiv3-war-repl/JPA/OpenJPA/WEB-INF/classes/log4j.properties b/juddiv3-war-repl/JPA/OpenJPA/WEB-INF/classes/log4j.properties new file mode 100644 index 0000000..7e5e4e0 --- /dev/null +++ b/juddiv3-war-repl/JPA/OpenJPA/WEB-INF/classes/log4j.properties @@ -0,0 +1,42 @@ +# +#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. + +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.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 --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
