Archived

This forum has been archived. Please start a new discussion on GitHub.

IceBox hosting java services in IceGrid

Ice-Experts,

I would appreciate if you can give an example of configuring IceGrid with IceBox which hosts multiple Java Ice services.

Thanks

Comments

  • I have tried following

    <icegrid>
    <application name="JIB">
    <node name="localhost">
    <icebox
    id="JavaIceBox"
    exe="icebox"
    activation="on-demand">

    <service name="Hello2" entry="demo.HelloServiceI">
    <adapter name="${service}" endpoints="tcp" register-process="true">
    <object
    identity="hello2"
    type="::Demo::Hello"/>
    </adapter>
    <property name="Identity" value="hello2"/>
    </service>
    </icebox>
    </node>
    </application>
    </icegrid>


    And I get the error following error
    [ icegridnode: Activator: activating server `JavaIceBox' ]
    JavaIceBox: error: ServiceManager: unable to load entry point `demo.HelloService
    I': invalid entry point format `demo.HelloServiceI'
    [ icegridnode: Activator: detected termination of server `JavaIceBox'
    exit code = 1 ]


    If I try

    <icegrid>
    <application name="JIB">
    <node name="localhost">
    <icebox
    id="JavaIceBox"
    exe="java"
    activation="on-demand">

    <service name="Hello2" entry="demo.HelloServiceI">
    <adapter name="${service}" endpoints="tcp" register-process="true">
    <object
    identity="hello2"
    type="::Demo::Hello"/>
    </adapter>
    <property name="Identity" value="hello2"/>
    </service>
    </icebox>
    </node>
    </application>
    </icegrid>


    [ icegridnode: Activator: activating server `JavaIceBox' ]
    Unrecognized option: --Ice.Config=c:\Ice-3.1.0\demoj\IceGrid\simple/db/node/serv
    ers/JavaIceBox/config/config
    Could not create the Java virtual machine.
    [ icegridnode: Activator: detected termination of server `JavaIceBox'
    exit code = 1 ]


    Your help is appreciated

    Thanks
  • bernard
    bernard Jupiter, FL
    Hi Sameer,

    You want IceGrid to start a Java icebox, i.e. "java IceBox.Server ...". So use exe="java" and later <option>IceBox.Server</option>.

    Best regards,
    Bernard
  • Thanks Bernard,

    <option> worked ! I could start IceBox server.

    Is there an XSD for IceGrid? Where can I see different elements/attributes within all XMLs used in the framework?
  • benoit
    benoit Rennes, France
    Hi,

    No, we don't have a XSD for IceGrid descriptors. There's a complete reference of the XML IceGrid descriptors in our manual (section 36.14). You'll also find a section about IceBox integration in the IceGrid chapter.

    Cheers,
    Benoit.
  • Thank You.