Archived

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

ICE Grid - Java Services !!

Hi,
While configuring an ICE application for IceGrid , we are using the following XML -

<icegrid>
<application name="ICEUser">
<node name="Node3">
<server id="ICEUserI"
exe="java -jar /home/faiz/SVN_CO/shared/java/User.jar BI.ICEUserIServer "
activation="on-demand">
<adapter name="ICEUserAdapter"
id="ICEUserAdapter"
endpoints="tcp"/>
</server>
</node>
</application>
</icegrid>

In our Java code at the server the name of the adapter is ICEUserAdapter and the object is ICEUserI. The failure at the client side occurs after the client does a stringtoproxy() and while casting it to the right proxy type.

Thanks and regards ...
Aswani/Faiz

Comments

  • matthew
    matthew NL, Canada
    The command line is incorrect in your descriptor. You instead need something like:
          <server id="SimpleServer" exe="java" activation="on-demand">
            <option>BI.ICEUserIServer</option>
    

    You also need to ensure the CLASSPATH is set correctly. You can do that either with the <env> element, the -cp command line option, or through the environment under which the icegridnode is run.

    Please see the Ice manual for more information.
  • Hi !!

    Thanks for the reply .
    I will sure keep everybody posted the moment I am over with this. Currently I am in a different area of work .
    Thanks
    Regards ...