1. Get rid of all advertisements and get unlimited access to documents by upgrading to Premium Membership. Upgrade to Premium Now and also get a Premium Badge!

get native file in ucm (ucm and terastack solution working together)

Discussion in 'General' started by simplehansvit, May 5, 2010.

  1. simplehansvit

    simplehansvit Active Member

    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    55
    Hi,

    We use oracle universal content management server (ucm). A lot of files are stored on the hard disk of the system using this content management system. Now we are using Terastack Solution (hie-electronics.com) to create backup of the data. The TeraStack Solution is an optical data storage system designed and manufactured to improve performance through affordable and reliable data storage management. Terastack solution archives (writes) all files to dvds and then a module of it truncates all these files to zero byte in size to save disk space. Now terastack solution watches all archived files. If an application tries to open such a file, it intercepts this, blocks this request, then restores the file from the dvd. During this process calling application just waits for the file to open. After restoring terastack solution sends a signal to the calling application, and the file with full contents is opened in the application.

    Now here is the problem:

    Files are check-in oracle content server. Terastack solution has burned these files to dvd and made these files to zero byte in size. Now when we click a link in content server to get a checked-in file (native file), terastack solution intercepts it, restore the file from dvd, then an open/save dialog box open to either open or save the file to a location. We save the file to a folder, open this file and come to know that there is no content in the file. It is still a zero byte file.

    When we checked the file at original location (remember ucm stores files in vault folder), we came to know that file is actually restored successfully by the terastack solution but the content server returned a zero byte file. When we click the link for the same file again to get native file in ucm then we get a fully restored file. i.e. on the first try to get native file we get a zero byte file although it is restored by terastack solution successfully. And on the second try we get file with full contents. On the second try, file has already been restored by terastack solution during the first try and terastack solution ignores files greater than zero byte in size, that’s why client gets a correct file on second try. Having size greater than zero means file is already restored.

    The link in ucm that is used to get native file does not point directly to the desired file. It calls some code in ucm that transmit the required file back to the client. something like this:
    localhost/idc/idcplg?IdcService=GET_FILE&dID=11&dDocName=test_06&allowInterrupt=1

    I think what is going on here is, when we click on a link to get native file that is zero byte in size, content server creates a response for the file, append the size of the file (currently zero) to the header of the response along with other info, and then tries to transmit the file to the client. At this point, terastack solution intercept the request and restore the file. After restoring terastack solution send signal to calling application that file is restored. But the server has already created request for the file and it is not updated during or after the restore, that’s why client gets zero byte file.

    What I want is somehow force the content server to wait until file is fully restored by terastack solution and then transmit the fully restored file to client. Is there any configuration setting for ucm that will achieve the goal?

    Any setting in bin/intradoc.cfg or config/config.cfg or something else?

    Need help.

    Environment:
    OS: Windows XP SP3
    Content Server 10gR3: (Deployed to: IIS, JDK used: v1.5)
    TeraStack Solution (Deployed to: JBoss)
     
  2. simplehansvit

    simplehansvit Active Member

    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    55
    Is there any way to modify the source code of ucm that is used to download a file to the client?

    OR

    Currently the link that is used to get the native file calls a ucm service to download the file on the client. Can we modify this link so that the link directly points to the file in the vault folder instead of calling any service?
     
  3. Sadik

    Sadik Community Moderator Forum Guru

    Messages:
    1,906
    Likes Received:
    252
    Trophy Points:
    1,455
    Well, i don't understand. Why do you want to modify UCM when your actual problem is your Terastack solution. Obviously if any company is releasing a component for UCM they should make sure that it works properly with the base product. You should not be modifying your base product to suit your add-on. And why do you need this grand backup facility in any case? UCM has a perfectly good archiving solution. In either case, my advise would be to get in touch with the makers of the Terastack application as that is what is the cause of the problem.
     
  4. simplehansvit

    simplehansvit Active Member

    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    55
    Thanks for your reply.

    Terastack solution software is not an add-on for ucm. It is a complete solution in itself and there is no problem with either of the two products, terastack and ucm. Problem is that we need to get this working perfectly.

    Anyhow, is there a way to implement a custom java service to get a native file? Can you please give us a sample and instructions to implement it?

    Any help would be greatly appreciated.