连接filenet ce用二种方式:ejb和webservice,下面的是用ws。
一、设置websphere应用服务器
安全性 - 安全管理、应用程序和基础结构 - java认证和授权服务 - 应用程序登陆 - 新建 FileNetP8WSI
别名和FileNetP8WSI固定写法 - ?JAAS登陆模块 - 新建com.filenet.api.util.WSILoginModule - 使用登陆模块代理
定制属性— 新建 name: delegate ?value:com.filenet.api.util.WSILoginModule
注意:FileNetP8WSI是jaas.conf.wsi中的FileNetP8WSI ,是用webservice连接的意思。
FileNetP8 {
? ? com.filenet.api.util.WSILoginModule required;
};
FileNetP8WSI {
? ? com.filenet.api.util.WSILoginModule required;
};
FileNetP8Engine {
? ? com.filenet.api.util.WSILoginModule required;
};
FileNetP8Server {
? ? com.filenet.api.util.WSILoginModule required;
};
也可以用下面的。其实是一样的。只要FileNetP8WSI 一样即可。
jaas.conf.WebSphere
FileNetP8 {
? ? com.ibm.ws.security.common.auth.module.WSLoginModuleImpl required;
};
FileNetP8WSI {
? ? com.filenet.api.util.WSILoginModule required;
};
FileNetP8Engine {
? ? com.ibm.ws.security.common.auth.module.proxy.WSLoginModuleProxy required
? ? ? ? delegate=com.ibm.ws.security.common.auth.module.WSLoginModuleImpl;
};
FileNetP8Server {
? ? com.ibm.ws.security.common.auth.module.proxy.WSLoginModuleProxy required
? ? ? ? delegate=com.ibm.ws.security.common.auth.module.WSLoginModuleImpl;
};
FileNetP8KerberosService {
? ? com.ibm.ws.security.common.auth.module.proxy.WSLoginModuleProxy required
? ? ? ? delegate=com.filenet.engine.authentication.kerberos.login.KrbServiceLoginModule;
? ? com.ibm.ws.security.common.auth.module.proxy.WSLoginModuleProxy required
? ? ? ? delegate=com.ibm.ws.security.server.lm.ltpaLoginModule;
? ? com.ibm.ws.security.common.auth.module.proxy.WSLoginModuleProxy required
? ? ? ? delegate=com.ibm.ws.security.server.lm.wsMapDefaultInboundLoginModule;
};
Credentials {
? ? com.idoox.security.jaas.GSSLoginModule required debug=true;
};
ReceivedCredentials {
? ? com.idoox.security.jaas.GSSLoginModuleNoAuth required debug=true;
};
HttpCredentials {
? ? com.idoox.security.jaas.HttpLoginModule required debug=true;
};
KrbCredentials {
? ? com.ibm.security.auth.module.Krb5LoginModule required debug=false credsType=both;
};
CachedKrbCredentials {
? ? com.ibm.security.auth.module.Krb5LoginModule required debug=false useDefaultCcache=true;
};
NamePasswordNoAN {
? ? com.idoox.security.jaas.NamePasswordLoginModuleNoAuth required debug=true;
};
NamePasswordAN {
? ? com.idoox.security.jaas.NamePasswordLoginModule required debug=true;
};
NameDigestAN {
? ? com.idoox.security.jaas.NameDigestLoginModule required debug=true;
};
NameMapping {
? ? com.idoox.security.jaas.NameLoginModuleNoAuth required debug=true;
};
CertsMapping {
? ? com.idoox.security.jaas.CertsLoginModule required debug=true;
};
二、就是连接代码了
具体的就不贴出来了,主要是要下面的
System.setProperty("wasp.location",location);
System.setProperty("java.security.auth.login.config",location+"/jaas.conf.WSI");
System.setProperty("filenet.pe.bootstrap.ceuri",url);
Subject m_Subject = UserContext.createSubject(m_Connection,username,password,"FileNetP8WSI");
就是FileNetP8WSI,和上面的是一样的。
这样就可以接连好了。哈哈,挺高兴的。
下面是搜索到的资料也贴出来吧
1、Setting Up a Thin Client Application Development Environment Using CEWS Transport
http://publib.boulder.ibm.com/infocenter/p8docs/v4r5m1/index.jsp?topic=%2Fcom.ibm.p8.doc%2Fdeveloper_help%2Fcontent_engine_api%2Fguide%2Fgs_concepts_setup_thin_client_cews_transport.htm
2、java call filenet ejb api
http://blog.csdn.net/hyhbyl/article/details/6858305
3、FileNet_ecm_help中Developer Help>Content Engine Development>Java and .NET Developer's Guide>Geting Started>Concepts>Setting up a Thick Client Devlopment
CEWS transport protocol (non-application-server dependent)
When setting up a thick client development machine using the CEWS protocol,the following tasks are required.
NOTE ?Examples assume a default directory of C:Program Files. If your directory structure is not the default,modify the path in the examples to reflect your directory structure.