1. In the example: http://svn.apache.org/repos/asf/juddi/tags/juddi-3.1.0/juddiv3-war/src/main/webapp/WEB-INF/classes/RENAME4SALES_juddi_custom_install_data/sales_tModels.xml

If the keygenerator of your publisher looks like:

<tModel tModelKey="uddi:sales.apache.org:keygenerator" 
xmlns="urn:uddi-org:api_v3">
        <name>sales-apache-org:keyGenerator</name>
        <description>Sales 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>

Then this publisher can use keys that start with 'uddi:sales.apache.org:'

So for a tModel a good key would be 'uddi:sales.apache.org:mytmodel'

Don't use any ':' in your keys, they are used to break up the keys in their various parts.

2. You can define custom properties like 'keyDomain' in your uddi.xml and then reference them in for example
you annotations as shown here:

http://svn.apache.org/repos/asf/juddi/tags/juddi-3.1.0/juddiv3-samples/src/main/java/org/apache/juddi/samples/HelloWorldImpl.java

3. This may help you out:
http://www.oasis-open.org/committees/uddi-spec/doc/tn/uddi-spec-tc-tn-understandingkeypartitions-20061128.htm

--K

On 9/6/11 10:31 AM, Computer Learning Inst wrote:
I have added a few variations of the following to uddi.xml, but to no avail.

    <property name="keyDomain"  value="nh:ie"/>
    <property name="keyDomain"  value="nh:ie:hcid"/>
    <property name="keyDomain"  value="uddi:nh:ie"/>
    <property name="keyDomain"  value="uddi:nh:ie:hcid"/>

May be, the above changes are not correct.  What other changes do we need so 
that we can create TModels in jUDDI DB?  Your help, as usual, is very much 
appreciated.

thanks!




----- Original Message -----
From: Computer Learning Inst
To: "[email protected]"<[email protected]>
Cc:
Sent: Tuesday, September 6, 2011 9:52 AM
Subject: Re: save TModel exception

Thanks Kurt.  Can you suggest what steps I should take so that we are able to 
create a few TModels in the jUDDI v3.0.4 database?



----- Original Message -----
From: Kurt Stam
To: "[email protected]"
Cc:
Sent: Tuesday, September 6, 2011 9:38 AM
Subject: Re: save TModel exception

That is bc your publisher key domain does not match the domain part of the 
model key you are trying to use.

--K

On Sep 6, 2011, at 9:08, Computer Learning Inst wrote:

Hello jUDDI v3.0.4 users:

I am sure, I am making some mistake.

I am saving a TModel, with key=uddi:nh:ie:hcid.  However, I run into the 
following exception.  Where in the code may I fix this problem?


INFO: Application 
{urn:uddi-org:v3_service}UDDI_Publish_Port#{urn:uddi-org:v3_service}save_tModel 
has thrown exception, unwinding now: 
org.apache.juddi.v3.error.KeyUnavailableException: The proposed key is not 
within the partition defined by owning publisher:  uddi:nh:ie:hcid

Thanks in advance for your help.

Reply via email to