[ 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to