hello.ice #ifndef simple_ice#define simple_ice//名字空间 or 包名module demo.slice.hello{ interface hello{ void printstring(string s); };};
#endif
import demo.slice.hello._hellodisp;import ice.current; 【程序编程相关:为Struts应用配置web.xml文件】
服务器: helloi.java
package demo.ice.hello.server; 【推荐阅读:2005年4月8日--正式开始我的Jav】
/* (non-javadoc) * @see demo._hellooperations#printstring(java.lang.string, ice.current) */ public void printstring(string s, current __current) { // todo auto-generated method stub system.out.println(s); } 【扩展信息:MySprite 2.0 】
/** * @author mudfishcn * * servant class: helloi * _hellodisp 基类由slice2java编译器生成,它是一个抽象类. * _hellodisp 抽象类包含一个printstring()方法. */public class helloi extends _hellodisp {
}
helloserver.javapackage demo.ice.hello.server;
import ice.localexception;
... 下一页