Home Help Center

IceBox hosting java services in IceGrid

SameerreleSameerrele Member Sameer ReleOrganization: TRGProject: SOA
Ice-Experts,

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

Thanks

Comments

  • SameerreleSameerrele Member Sameer ReleOrganization: TRGProject: SOA
    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
  • bernardbernard Jupiter, FLAdministrators, ZeroC Staff Bernard NormierOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    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
  • SameerreleSameerrele Member Sameer ReleOrganization: TRGProject: SOA
    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?
  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    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.
  • SameerreleSameerrele Member Sameer ReleOrganization: TRGProject: SOA
    Thank You.
Sign In or Register to comment.