Hi all! I have a complex J2EE application (with EJB, Servlet, Jsp ecc.), with a Html interface (For Internet Explorer). I would like to bring the client side to Swing. I think to use Xml-Rpc ower http for the communication. I need to know: 1. Is this the best solution? 2. If not, what can I do? (any links, examples ecc.)
PS: I need to open .pdf and .doc files from this client.
Your Swing client can use the home interfaces and make remote EJB calls just like your web apps do now, can't they? If your business is in your J2EE components, they should be reusable from Swing clients.
If the Swing and EJB work is divided between two teams or developers, I'd ask the EJB team to provide Business Delegates so the Swing folk don't have to know any EJB at all. An added benefit is that if you go to some other protocol in the future you can put it behind compatible Business Delegates and not break the Swing client.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Thank You very much Stan for the reply, but there is a problem: The servlet use other business classes that communicate with the ejb and make other things. Those classes are fondamental for the application, and I would like to conserve their functionality (because the application work wery wery well). Any other idea? Thanks again!
You might see if you could make new EJB session facades that access the critical business objects. In fact you might consider moving anything business-ish at all behind such facades so the web tier goes through them, too. That would take you toward an EJB back-end that could be used by any type of client.