juddi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Faath (JIRA)" <juddi-...@ws.apache.org>
Subject [jira] Closed: (JUDDI-51) juddi/function/SaveServiceFunction pb while trying to save multiple objects?
Date Wed, 12 Sep 2007 23:36:32 GMT

     [ https://issues.apache.org/jira/browse/JUDDI-51?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jeff Faath closed JUDDI-51.
---------------------------

    Resolution: Cannot Reproduce

The "saveObjects(ArrayList)" method no longer appears to be part of the registry interface.

> juddi/function/SaveServiceFunction pb while trying to save multiple objects?
> ----------------------------------------------------------------------------
>
>                 Key: JUDDI-51
>                 URL: https://issues.apache.org/jira/browse/JUDDI-51
>             Project: jUDDI
>          Issue Type: Bug
>         Environment: Latest jUDDI CVS version (2005-01-21) deployed in JOnAS
>            Reporter: Mathieu Peltier
>            Assignee: Steve Viens
>
> In ws-juddi/src/java/org/apache/juddi/function/SaveServiceFunction.java: it seems that,
when a ServiceKey is specified, the validity of this service key can not be checked by only
calling the dataStore.isValidServiceKey(serviceKey) method.
> While trying to save multiple objects (eg a BusinessEntity and a BusinessService) in
the registry using the saveObjects(ArrayList) method, the service may have been removed if
the business entity contains it and was already contained in the registry (see datastore.deleteBusiness(String
businessKey) method which deletes the BusinessEntity's Services and dependents).
> A work around is just to comment the following lines (but of course I guess this is not
sufficient):
> if (((serviceKey != null) && (serviceKey.length() > 0)) && (!dataStore.isValidServiceKey(serviceKey)))
>    throw new InvalidKeyPassedException("serviceKey="+serviceKey);

-- 
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: juddi-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: juddi-dev-help@ws.apache.org


Mime
View raw message