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

[453 byte] By [jean_barros] at [2007-9-27 17:26:30]
# 1

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)

borbjo at 2007-7-6 12:27:45 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
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.
Midefix at 2007-7-6 12:27:46 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3

Yes. you can very well use Swings in the Presentation tier (View Tier) and EJBs in the Business Tier. You can handle your database transactions in the business tier and the ui representation in the view tier. You can use the various design patterns specified for J2EE to handle your data between the server and the client.

suja@jfc at 2007-7-6 12:27:46 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...