Can I use Swing in a J2EE project?
Hi everyone!
I am new to Swing, and I would like to know, if is possible create a application using Swing as view tier in a J2EE(EJB) project? Did anybody create one yet? How many J2EE projects do you know which Swing is used as view tier? Using Swing is so much more complicate than a ordinary output in HTML? Is there a open source project uses this approach? I don't want to use M$ Visual Basic anymore! Please, help me!
Regards
Yes, it is possible.
You can create a Java application using Swing as the Client Tier, and let it communicate with the server tier using XML (eg. Servlets/JSP) ..
Swing app -> XML -> Servlet -> Database ..
To integrate the app more with the web use JWS (Java Web Start)
You could call the methods of a EJB directly in a Swing Application, if the EJB-Server is not be behind a firewall (that means an intranet application). If you would use the Swing application to access an EJB Server in the internet, you should call an servlet.