Git Product home page Git Product logo

ice-demo2's Introduction

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,使其生成。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.