From: Krzysztof B. <go...@ma...> - 2011-03-17 11:45:42
|
Hi, W dniu 17.03.2011 12:34, Bernd Schuller pisze: > hi Tomasz, > > migrating to 6.4 is not an easy task, because Krzysztof and I have mixed > everything up ;-) > > On Do, 2011-03-17 at 11:46 +0100, Tomasz Rękawek wrote: >> >> I'm trying to move dSMS to new architecture, with UNICORE Service >> Environment. I've almost succedeed, but I'd hoped that dependency to >> uas-core can be removed. Unfortunatelly, there is one class from >> uas-core I still need to use - RegistryHandler (in order to publish >> service to registry and get storages from it). Is it possible to move >> that class to uas-client? Or maybe my approach is wrong? >> > > what I can offer is to move the ExternalRegistryClient class to > uas-client, together maybe with some utility code for handling the > configured registry URLs (as configured in uas.config) > > In uas-client there is already the RegistryClient class, which can do > all you need, but you would need to read and use the configured set of > registry URLs yourself. > > As to approach your: if you do not need any server-side UNICORE > specifics (XNJS, TSI, ...) then uas-client should be enough. > > However, another option is to use keep using uas-core as dependency, but > set the scope to "provided", since the dSMS is a "normal" UNICORE > service which will run in a "normal" UNICORE/X server. > > This approach has several advantages > - makes it easy to distribute the dSMS as an extension to UNICORE/X > - you can write integration tests, since you have the whole UNICORE/X > code to test against > > Anyway, let me know how you want to proceed. I think that in this case Tomasz refers to dCatalogue not dSMS, and this one should use RegistryClient/not depend on uas-core. BTW in UVOS-server in the package pl.edu.icm.unicore.uvos.registration there is a code which registers uvos to the registry and depends only on the use- modules, not on uas. I think it would be nice to have such a functionality just in USE or uas-client. Then all services (workflow, uvos, dcatalogue) would be able to ignore uas-core. Cheers Krzysztof |