juddi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Viens" <st...@viens.net>
Subject RE: [jira] Created: (JUDDI-53) Implement a generic Save method
Date Mon, 24 Jan 2005 13:23:35 GMT

This is possible and probably belongs in a custom jUDDI API (as opposed
to the UDDI publish and inquiry APIs.)  More on this when I have a
chance to dig into it.


-----Original Message-----
From: Anil Saldhana (JIRA) [mailto:juddi-dev@ws.apache.org] 
Sent: Sunday, January 23, 2005 3:37 AM
To: steve@viens.net
Subject: [jira] Created: (JUDDI-53) Implement a generic Save method

Implement a generic Save method

         Key: JUDDI-53
         URL: http://issues.apache.org/jira/browse/JUDDI-53
     Project: jUDDI
        Type: New Feature
  Components: Apache Scout Requests  
    Reporter: Anil Saldhana
 Assigned to: Steve Viens 

BusinessLifeCycleManager interface in JAXR has a method that takes in a
collection of generic RegistryObject instances and passes it to the
registry to save.

Can this be done by jUDDI to provide a method in IRegistry that takes in
a collection of RegistryObjects, apart from the regular saveBusiness,
saveTModel .....

The signature of the saveObjects method in JAXR is:

public BulkResponse saveObjects(java.util.Collection objects)
                         throws JAXRException
Saves one or more Objects to the registry. An object may be a
RegistryObject  subclass instance.

 If an object is not in the registry, it is created in the registry.  If
it already exists in the registry and has been modified, then its  state
is updated (replaced) in the registry.
objects - a potentially heterogeneous Collection of RegistryObject
a BulkResponse containing the Collection of keys for those objects that
were saved successfully and any SaveException that was encountered in
case of partial commit
JAXRException - if the JAXR provider encounters an internal error

Currently, Scout takes each object in the collection, determines the
type and calls appropriate juddi  saveXX method.

But this is not optimal, as I am making n Roundtrips for n Objects in
the registry. One optimization, I can think of is to pool objects of the
same type and make batched calls.

But it will be cool if jUDDI can provide a generic saveObjects method.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
If you want more information on JIRA, or have a bug to report see:

View raw message