Client Development Environment for FileNet P8 [message #531267] |
Tue, 04 May 2010 11:40 |
shiva Messages: 2 Registered: May 2010 |
Junior Member |
|
|
We are trying to set up a client environment for FileNet P8 Server. The client configuration set up is
1. JBoss 5.x as application Server and
2.Using Eclipse 3.3.2 as IDE.
We have copied the required the list jar files from FileNet server and copied to our client system
1. Jace.jar
2. Log4j.jar
3. Stax-api.jar
4. xlxpScanner.jar
5. xlxpScannerUtils.jar and
6. jass.conf.WSI
also configured as external jar in eclipse IDE. As FileNet help suggested, we have created a
project/package and a connector class. The source code is,
package p8.sample.cews;
//Import.
import java.util.Iterator;
import javax.security.auth.Subject;
import com.filenet.api.collection.ObjectStoreSet;
import com.filenet.api.core.Connection;
import com.filenet.api.core.Domain;
import com.filenet.api.core.Factory;
import com.filenet.api.core.ObjectStore;
import com.filenet.api.util.UserContext;
public class P8Connector {
public static void main(String[] args)
{
// Set connection parameters; substitute for the place holders.
String uri = "http://<server>:<port>/wsi/FNCEWS40MTOM/";
String username = "user";
String password = "password";
// Make connection.
Connection conn = Factory.Connection.getConnection(uri);
Subject subject = UserContext.createSubject(conn, username, password, null);
UserContext.get().pushSubject(subject);
try
{
// Get default domain.
Domain domain = Factory.Domain.fetchInstance(conn, null, null);
System.out.println("Domain: " + domain.get_Name());
// Get object stores for domain.
ObjectStoreSet osSet = domain.get_ObjectStores();
ObjectStore store;
Iterator osIter = osSet.iterator();
while (osIter.hasNext())
{
store = (ObjectStore) osIter.next();
System.out.println("Object store: " + store.get_Name());
}
System.out.println("Connection to Content Engine successful");
}
finally
{
UserContext.get().popSubject();
}
}
}
The error message is
Exception in thread "main" com.filenet.api.exception.EngineRuntimeException: API_INVALID_URI: An invalid URI
was found for connection http://<server>:<port>/wsi/FNCEWS40MTOM/
Anyway, help us how to configure client environment and what are all the prerequisites to create a
client environment with the said softwares (JBoss and Eclipse as client)
Thank you,
Kind Regards,
Shiva.
|
|
|
|
Powered by
FUDForum. Page generated in 0.08148 seconds