a、调用工作流引擎方法:
Context ctx = new InitialContext();
Object obj= ctx.lookup("WeblogicEngineSessionHomeRemote");
WeblogicEngineSessionHome home = null;
home = (WeblogicEngineSessionHome)PortableRemoteObject.narrow(obj,WeblogicEngineSessionHome.class);
WeblogicEngineSession ss = home.create();
java.util.Map map = ss.getServiceList( username);
b、map用法
Map map = new HashMap();
ServiceBean sbn = new ServiceBean("11","test",null);
sbn.setDescs("Test list");
map.put(new String("101"),sbn);
Collection st = map.values();
Iterator itor = st.iterator();
while (itor.hasNext()) {
ServiceBean bean = (ServiceBean) itor.next();
stem.out.println(bean.getDescs());
}
Set set = map.entrySet();
Iterator it = set.iterator();
while( it.hasNext() ){
Map.Entry me = (Map.Entry)it.next();
System.out.println((String)me.getKey());
ServiceBean svbn = (ServiceBean)me.getValue();
System.out.println(svbn.getDescs());
}
1、有嵌套框架的页面跳转问题
解决办法 :测试
(bb:最外一层框架名称;main:内一层框架名称)