Import RM Type System Between 2 Servers
Should I be able to import the type system between 2 different rm servers registered with the same JTS server? When I try, I get a 202 response but nothing is imported and the target server log has this error:
Uncaught exception while executing task Copy type system task com.ibm.rdm.fronting.server.exception.NotFoundException: The configuration could not be found. It could have been delivered or discarded.
My request body looks like this (6.0.6 iFix019):
<?xml version="1.0" encoding="UTF-8"?>
xmlns:types="http://www.ibm.com/xmlns/rdm/types/">
<types:TypeImportSession>
</types:TypeImportSession>
</rdf:RDF>
Headers:
Accept: Application/rdf+xml
Content: Application/rdf+xml
DoorsRP-Request-Type: public 2.0
vvc.configuration: [target stream]
One answer
Late reply, but hopefully this information will be useful to people looking for answers to your question.
202 is the expected response indicating that the import session is starting, there will also be a Location header in the response which is the URL of a task tracker to monitor progress. This is described in the Import API documentation under Behaviour of POST see https://jazz.net/wiki/bin/view/Main/DNGTypeImport#post_operation
More on task trackers here https://jazz.net/wiki/bin/view/Main/DNGTaskTracker
However I'm not sure the import will succeed between servers. I'd imagine the two rm apps will have to be in the same SSO domain and possibly same JTS, or at least the two JTS friende, but you say the two rm servers are on the same JTS so those conditions should be met. Sorry don't have a two-rm setup to try this on.
Ralph Schoon has contributed to this excellent 3-part article about managing the DN type system in multiple server environment https://jazz.net/library/article/92352 and in the article there are links to his Java code. AFAIK this code works within a server and you must manually create/download/upload a master type system component template into dependent servers, then use Ralph's code to deliver (presumably using the Type Import API) to the desired streams.
HTH
Ian