|
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
|
|
|---|---|
| 作者 | 正文 |
|
最后更新时间:2008-01-16
yilan是一个基于SOA和组件化的框架, 或许在某些方面,它和spring很像, 然而又有很多不同
这篇文章是yilan的一个入门, 并没有涉及到分布式部署。
请访问 yilan.googlecode.com 来获取更多信息
这篇文章在 http://groups.google.com/group/yilan/web/yilan-2
准备工作 系统安装了JDK6,如果要使用WebYilan 要使用Tomcat 或者Jetty这样的容器。 要从源代码编译需要ant
下载WebYilan.war 和 yilan-bin-0.95.zip, WebYilan是一个Web控制台,不是运行所必须的,然而要在Web工程中使用Yilan,可以采取WebYilan的使用方式。
解压yilan-bin-0.95.zip 目录结构如下图。 这个目录也是yilan的ROOT,在一会的几个配置中要使用
修改 WebYilan的 web.xml文件 代码片断如下 <filter> <filter-name>Yilan</filter-name> <filter-class>com.yilan.host.YilanStartFilter</filter-class> <init-param> <param-name>root</param-name> <param-value>D:/workspace/main/</param-value> </init-param> </filter> 然后, 修改ROOT/repository/httpfile.jar/com.yilan.file.server.DefaultFileUpload的内容 使rootPath=D:/workspace/main/repository/ 就是解压目录的repository子目录 这个主要是用于文件上传
开始工作把WebYilan.war拷到Tomcat下启动服务。 然后在火狐下输入 http://serverip:port/WebYilan/
现在在IE中有些问题。 所以最好使用火狐 部署一个应用 在系统资源库页面选择上传我们提供的calculator.jar 完成后选择加载部署calculator.jar
OK 组件被部署后 可以在应用组件中看到
在系统组件页面选择连接
将DwrServiceComponent连接到CalculatorServiceImpl, 那么进入 http://serverip:port/WebYilan/dwr/index.html 就能看到新的dwr服务。
同样将XfireServiceComponent连接到 CalculatorServiceImpl 就能看到发布的CalculatorService Web服务
怎么写我的Pojo呢 很简单 访问 http://groups.google.com/group/yilan/web/yilanpojo 获取详细内容 声明:JavaEye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
|
|
| 返回顶楼 | |
浏览 412 次


