In my project, we are having java client and an Java Application Server. We have identified three possible ways. We wish to know what is the best way and practice.
1. Directly accessing EJB from Java Client.
The project involves complex logic and data structures. It involves user defineable/configurable features. For example user defineable Colour, limits based on certain events/parameters etc.
Here, remote call on EJB is the main issue.
2. Having RMI or RMI/IIOP to access EJB.
We understand that RMI / RMI-IIOP is faster as per Java and Corba - Client and Server programming Book (Wiley) but slightly slower than Sockets. As EJB is built over RMI-IIOP, We wish to understand whether it will be as fast as RMI-IIOP. If not whether writing a RMI-IIOP client, will improve the performance.
3. Sockets
As a another option, whether should we consider having a socket and calling it through http/XML in the lines of SOAP. (Servlet may be used at server end to receive this at the end). This is faster and minor issue (for our project) of firewall is also not there.
Kindly consider client and server may be in differnt parts of globe and response has to be fast.
Thanks,
[This message has been edited by subramanian kalyan (edited September 13, 2001).]
1. Directly accessing EJB from Java Client.
The project involves complex logic and data structures. It involves user defineable/configurable features. For example user defineable Colour, limits based on certain events/parameters etc.
Here, remote call on EJB is the main issue.
2. Having RMI or RMI/IIOP to access EJB.
We understand that RMI / RMI-IIOP is faster as per Java and Corba - Client and Server programming Book (Wiley) but slightly slower than Sockets. As EJB is built over RMI-IIOP, We wish to understand whether it will be as fast as RMI-IIOP. If not whether writing a RMI-IIOP client, will improve the performance.
3. Sockets
As a another option, whether should we consider having a socket and calling it through http/XML in the lines of SOAP. (Servlet may be used at server end to receive this at the end). This is faster and minor issue (for our project) of firewall is also not there.
Kindly consider client and server may be in differnt parts of globe and response has to be fast.
Thanks,
[This message has been edited by subramanian kalyan (edited September 13, 2001).]