Author: scamp
Date: Mon Apr 25 07:25:49 2005
New Revision: 164580
URL: http://svn.apache.org/viewcvs?rev=164580&view=rev
Log: (empty)
Added:
incubator/apollo/trunk/src/webapp/WEB-INF/classes/example_ws-metadata_jndi_config.txt
Modified:
incubator/apollo/trunk/src/java/org/apache/ws/resource/JndiConstants.java
incubator/apollo/trunk/src/java/org/apache/ws/resource/metadataexchange/v2004_09/porttype/impl/MetadataExchangePortTypeImpl.java
incubator/apollo/trunk/src/webapp/WEB-INF/classes/jndi-config.xml
Modified:
incubator/apollo/trunk/src/java/org/apache/ws/resource/JndiConstants.java
URL:
http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/JndiConstants.java?rev=164580&r1=164579&r2=164580&view=diff
==============================================================================
--- incubator/apollo/trunk/src/java/org/apache/ws/resource/JndiConstants.java
(original)
+++ incubator/apollo/trunk/src/java/org/apache/ws/resource/JndiConstants.java
Mon Apr 25 07:25:49 2005
@@ -83,5 +83,5 @@
/**
* JNDI path appended to JNDI service path when looking up the service's
resource metadata
*/
- String ATOMIC_METADATA_HOME = "metadata";
+ String ATOMIC_METADATA_CONTEXT = "metadata";
}
Modified:
incubator/apollo/trunk/src/java/org/apache/ws/resource/metadataexchange/v2004_09/porttype/impl/MetadataExchangePortTypeImpl.java
URL:
http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/metadataexchange/v2004_09/porttype/impl/MetadataExchangePortTypeImpl.java?rev=164580&r1=164579&r2=164580&view=diff
==============================================================================
---
incubator/apollo/trunk/src/java/org/apache/ws/resource/metadataexchange/v2004_09/porttype/impl/MetadataExchangePortTypeImpl.java
(original)
+++
incubator/apollo/trunk/src/java/org/apache/ws/resource/metadataexchange/v2004_09/porttype/impl/MetadataExchangePortTypeImpl.java
Mon Apr 25 07:25:49 2005
@@ -144,7 +144,7 @@
*/
private String getMetadataJndiContextName()
{
- return org.apache.ws.resource.JndiConstants.CONTEXT_NAME_SERVICES +
"/" + getResourceContext().getServiceName() + "/" +
org.apache.ws.resource.JndiConstants.ATOMIC_METADATA_HOME;
+ return org.apache.ws.resource.JndiConstants.CONTEXT_NAME_SERVICES +
"/" + getResourceContext().getServiceName() + "/" +
org.apache.ws.resource.JndiConstants.ATOMIC_METADATA_CONTEXT;
}
/**
Added:
incubator/apollo/trunk/src/webapp/WEB-INF/classes/example_ws-metadata_jndi_config.txt
URL:
http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/webapp/WEB-INF/classes/example_ws-metadata_jndi_config.txt?rev=164580&view=auto
==============================================================================
---
incubator/apollo/trunk/src/webapp/WEB-INF/classes/example_ws-metadata_jndi_config.txt
(added)
+++
incubator/apollo/trunk/src/webapp/WEB-INF/classes/example_ws-metadata_jndi_config.txt
Mon Apr 25 07:25:49 2005
@@ -0,0 +1,58 @@
+ <!-- WS-METADATA EXAMPLE -->
+ <service name="sushi">
+
+ <!-- Here is where the normal resource definition block is. -->
+
+
+ <!-- Add an ADDITIONAL resource block to the service, for which you
would like to associate metadata,
+ with the name "metadata" and type called
"org.apache.ws.util.jndi.tools.MetadataConfig"
+
+ The org.apache.ws.util.jndi.tools.MetadataConfig object containing
the metadata is available via
+ JNDI using a Context lookup of
"wsrf/services/{sevice_name}/metadata" .. i.e.
ctx.lookup("wsrf/services/sushi/metadata");
+ -->
+
+ <!-- Example Metadata Resource -->
+ <resource name="metadata"
type="org.apache.ws.util.jndi.tools.MetadataConfig">
+
+ <!-- Required metadata-config tag -->
+ <metadata-config>
+
+ <!--
+ Each of the following blocks represent different ways of
configuring where your metadata files are located.
+ The files should be "reachable" at the configured locations.
+ -->
+
+ <!-- classpath -->
+ <metadata Dialect="http://www.w3.org/2001/XMLSchema"
Identifier="http://ws.apache.org/resource/properties/test/sushi_classpath">
+
<Location>org/apache/ws/resource/properties/SushiProperties.xsd</Location>
+ </metadata>
+
+ <!-- file -->
+ <metadata Dialect="http://www.w3.org/2001/XMLSchema"
Identifier="http://ws.apache.org/resource/properties/test/sushi_file">
+
<Location>C:/Projects/apache/apollo/trunk/src/test/org/apache/ws/resource/properties/SushiProperties.xsd</Location>
+ </metadata>
+
+ <!-- http url -->
+ <metadata Dialect="http://www.w3.org/2001/XMLSchema"
Identifier="http://ws.apache.org/resource/properties/test/sushi_url">
+ <Location>http://localhost:8080/wsrf/SushiProperties.xsd</Location>
+ </metadata>
+
+ <!-- file url -->
+ <metadata Dialect="http://www.w3.org/2001/XMLSchema"
Identifier="http://ws.apache.org/resource/properties/test/sushi_fileurl">
+
<Location>file://C:/Projects/apache/apollo/trunk/src/test/org/apache/ws/resource/properties/SushiProperties.xsd</Location>
+ </metadata>
+
+ <!-- EndpointReference -->
+ <metadata Dialect="http://www.w3.org/2001/XMLSchema"
Identifier="http://ws.apache.org/resource/properties/test/sushi_epr">
+ <MetadataReferece>
+ <wsa:Address
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
>http://localhost:8080/wsrf/services/sushi</wsa:Address>
+ <wsa:ReferenceProperties
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">
+ <s:ResourceID
xmlns:s="http://ws.apache.org/resource/properties/test/sushi">1</s:ResourceID>
+ </wsa:ReferenceProperties>
+ </MetadataReferece>
+ </metadata>
+
+ </metadata-config>
+ </resource>
+ </service>
+ <!-- END WS-METADATA EXAMPLE -->
\ No newline at end of file
Modified: incubator/apollo/trunk/src/webapp/WEB-INF/classes/jndi-config.xml
URL:
http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/webapp/WEB-INF/classes/jndi-config.xml?rev=164580&r1=164579&r2=164580&view=diff
==============================================================================
--- incubator/apollo/trunk/src/webapp/WEB-INF/classes/jndi-config.xml (original)
+++ incubator/apollo/trunk/src/webapp/WEB-INF/classes/jndi-config.xml Mon Apr
25 07:25:49 2005
@@ -27,6 +27,6 @@
</resource>
</global>
-
+
</jndiConfig>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]