You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scout-dev@ws.apache.org by "Kurt Stam (JIRA)" <sc...@ws.apache.org> on 2007/11/03 00:27:50 UTC
[jira] Updated: (SCOUT-47) tmodel_instance_info row not created
[ https://issues.apache.org/jira/browse/SCOUT-47?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kurt Stam updated SCOUT-47:
---------------------------
Fix Version/s: (was: 1.0)
1.0rc2
> 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: Kurt Stam
> Fix For: 1.0rc2
>
>
> 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: scout-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: scout-dev-help@ws.apache.org