Book Image

Web Content Management with Documentum

Book Image

Web Content Management with Documentum

Overview of this book

One of the world leaders in Enterprise Content Management, the EMC Documentum family of applications helps you manage all types of content across multiple departments within a single repository. With the Web Content Management suite of applications, you can efficiently manage content and underlying processes for your Web properties, and ensures that they are responsive to business needs. To fully realize the power of this system can seem daunting, but this book will help you achieve that. With easy to follow examples, this book will take you the simplest and most straightforward route to success. Along the way, you will learn insights that only a seasoned professional would know. Packed with practical examples, you will get hands-on with the powerful features of Documentum to grow your skills and confidence. You will see tips and tricks to handle complexities of the system, and avoid the common errors that waste your time. From installing and getting started with Documentum, you will see how to design and develop Documentum applications, before rounding off with deployment.
Table of Contents (33 chapters)
Web Content Management with Documentum
Credits
About the Author
Acknowledgements
Preface
Frequently Asked Questions and Answers

23.3 Simple Example Demonstrating DFC Usage


Let us create a simple Java file (save it as FirstDFC.java) as shown below to create and establish a Docbase session via DFC.

import com.documentum.fc.client.*;
import com.documentum.fc.common.*;
import java.io.IOException;
public class FirstDFC{
//Main method
public static void main(String args[]){
IDfSession session = null;
IDfSessionManager sMgr = null;
try
{
IDfClient client = new DfClient().getLocalClient();
sMgr = client.newSessionManager();
IDfLoginInfo loginInfo = new DfLoginInfo();
loginInfo.setUser( "documentum" );
loginInfo.setPassword( "solutions" );
sMgr.setIdentity( "dev_doc", loginInfo );
session = sMgr.getSession( "dev_doc" );
System.out.println("Session created !!");
}catch(DfException dfe){
System.out.println("DfException caught in main: " + dfe.getMessage());
}
catch(Exception e){
System.out.println("Catching generic exception in main: " + e.getMessage());
}
finally {
sMgr.release( session );
}
}// end of Main
}// end of class...