Hello,
I am trying to figure out the "correct" way to manage Ucf sessions.
I have been unable to figure out how to perform multiple Ucf transfers using the same browser session (and JRE session). I can always upload a single file, but then cannot return to the page to upload another.
I either receive an error in the applet (which was copied from the DFS development guide) about incorrect HTTP session initialization, or an error in my application that it cannot find the Ucf session.
So far, the only way I have gotten this to work is to disable automatic connection closing (using false in the ActivityInfo object).
Has anyone successfully created a DFS application using Ucf for content transfer multiple times in one browser session?
Thanks for the help,
Brendan
--------------------------------------CODE-----------------------------------------
import com.emc.documentum.fs.rt.ucf.UcfConnection;
import java.applet.*;
import java.net.URL;
import netscape.javascript.JSObject;
public class UcfApplet extends Applet
{
public void init ()
{
//init UCF
System.out.println("UcfApplet init.......");
try
{
UcfConnection conn = new UcfConnection(new URL("http://10.200.0.56"));
System.out.println("jsessionid=" + conn.getJsessionId() + ", uid=" + conn.getUid());
JSObject win = JSObject.getWindow(this);
win.call("setFormIdsFromApplet", new Object[]{conn.getJsessionId(), conn.getUid()});
}
catch (Exception e)
{
e.printStackTrace();
}
}
public void start ()
{}
}