tmodel_instance_info row not created
------------------------------------
Key: SCOUT-47
URL: https://issues.apache.org/jira/browse/SCOUT-47
Project: Scout
Issue Type: Bug
Components: Scout - jUDDI Interface
Environment: juddi .90
Reporter: Betty Tjandra
Assignee: Anil Saldhana
I am using JAXR to access juddi and I have scout-0.7rc2.jar.
I encountered a problem when I tried to create the SpecificationLink, no error
but there is no entry added to the tmodel_instance_info, wonder why.
Is that a bug to this, please le tme know or I may have done this wrong.
Here are my code:
UDDIConnection uddiConnection = new UDDIConnection("jdoe","");
try
{
Connection conn = uddiConnection.connectToRegistry();
RegistryService regServ = conn.getRegistryService();
BusinessQueryManager qryManager =
regServ.getBusinessQueryManager();
BusinessLifeCycleManager lifeCycleManager =
regServ.getBusinessLifeCycleManager();
//Find my organisaztion by its Key
Organization myOrganization =
(Organization)qryManager.getRegistryObject("46BE3FB0-37AF-11DC-BB03-AF3601554574",
LifeCycleManager.ORGANIZATION);
String orgName = myOrganization.getName().getValue();
// Create and add a new Service to my organization
Service service =
lifeCycleManager.createService("ncessim-service");
InternationalString desc =
lifeCycleManager.createInternationalString("The Main HTML Web site for "+
orgName);
service.setDescription(desc);
myOrganization.addService(service);
// Create, add, and configure a new ServiceBinding
ServiceBinding servBinding =
lifeCycleManager.createServiceBinding();
service.addServiceBinding(servBinding);
servBinding.setValidateURI(false);
servBinding.setAccessURI("http://www"+orgName+".com/ncessim.html");
Concept concept =
(Concept)qryManager.getRegistryObject("uuid:E8D73410-38C6-11DC-BB03-A1DE1BF7EE06",LifeCycleManager.CONCEPT);
System.out.println("__concept "+concept.getKey()+"
value "+concept.getValue() + "path "+concept.getPath());
// Create a SpecificationLink and add it to the
ServiceBinding
SpecificationLink specLink =
lifeCycleManager.createSpecificationLink();
servBinding.addSpecificationLink(specLink);
specLink.setSpecificationObject(concept);
//Save the Organization in the UDDI Directory
Set<Organization> organisationSet = new
HashSet<Organization>();
organisationSet.add(myOrganization);
BulkResponse response =
lifeCycleManager.saveOrganizations(organisationSet);
conn.close();
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]