Skip to content

williamxww/ice-demo2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ice-demo2

content:

  • study ice
  • 试着将ICE和SPRING集成

##常用命令

slice2java --output-dir ../generated ./demo/Printer.ice

在slice文件夹下执行: slice2java --output-dir ../generated -I. -ID:\CFile\ZeroC\Ice-3.6.3\slice ./demo/Printer.ice ./demo/Show.ice -I指定的路径 + ice文件中#include的路径 = 被包含的ice文件的完整路径 ,在pom里面配置了slice2java的includePath属性

--ice Permit use of the reserved Ice prefix in Slice identifiers. This is useful when building Ice itself, or when compiling a Slice file that includes another Slice file with Ice-prefixed identifiers, such as Ice/BuiltinSequences.ice.

启动server(最好用IDE启动) java IceBox.Server --Ice.Config=config.properties

启动注册中心 icegridregistry --Ice.Config=D:\repository\ice-demo2\src\main\resources\registry.cfg

#启动node1 icegridnode -–Ice.Config=D:\repository\ice-demo2\src\main\resources\node1.cfg #启动node2 icegridnode -–Ice.Config=D:\repository\ice-demo2\src\main\resources\node2.cfg

#管理服务 #可视化管理 #启动icegridgui.jar 将app.xml放入其中(服务可以任意放到node1或是node2中),在工具里将服务启动起来,在客户端配置注册中心然后发起远端调用

#命令行管理 icegridadmin --Ice.Config=D:\repository\ice-demo2\src\main\resources\registry.cfg application add D:\repository\ice-demo2\src\main\resources\app.xml application list server start PrinterServer

常见问题: 如果报找不到主类,首先检查class是否存在,然后检查target下依赖包lib生成没有,若没有则运行一下 mvn package,使其生成。

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages