• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1218
  • Last Modified:

Data binding for JAVA APPLET

- We have a complex JAVA applet.
 - Servlets are used for receiving and returning data from Applet.
 - Servlets contain XML data fetched from database.
 - We use hibernate for database connectivity.
 - Threads are used for GUI responsiveness
 - We use Netbeans 5.0
 - We use Apache Tomcat as the servlet container.

Problem : It takes a hell lot of time to add new features to the applet. Even adding a combo box and filling it with value received from database is a pain.

Question : What can we do in order to shorten the development time?
1 Solution
Mayank SAssociate Director - Product EngineeringCommented:
It depends on what development methodology you are following. If you are following the Waterfall model, you will take more development time. If you wanna reduce it, try the Sprint/ Agile mode.
barisdur76Author Commented:
The problem is
 1 - Our components are not data-aware.
 2 - Our application is not a desktop application but an applet, therefore it does not directly connect to database. That's why we use servlet+xml to receive data from DB.

As I said before this lengthens our development process too much. What are your advices?

It looks like object/relational mistmatch, which cause n+1 selects problem. Suggests you use Hibernate which can solve this kind of problem, more about Hibernate can be found in http://www.hibernate.org/
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

barisdur76Author Commented:
UCool, We already use hibernate. But that's not the issue.
BTW I keep on searching through the internet.
I found jsr 296 might be of use. Still reading it.
Mayank SAssociate Director - Product EngineeringCommented:
>> As I said before this lengthens our development process too much. What are your advices?

If your developers are skilled use the Agile mode of development.
barisdur76Author Commented:
As I said I kept on searching.
The solution is
  1 - Using SwingX of SwingLabs (Which is said to be data-aware, but the stated methods seem to lack in the real implementation)
  2 - Using SwingSet http://swingset.sourceforge.net/

The latter does not bind to xml actually (which was what i needed). But is data-aware using JDBC.
SwingX is said to be data-aware and stated that it can bind to
 - beans (hibernate, rmi, webservices)
 - xml
 - dataset (sql, csv, tsv)
But the available libraries i tested lacked of corresponding methods.
Mayank SAssociate Director - Product EngineeringCommented:
If SwingSet is data aware using JDBC and you need XML, there are products available which can convert a JDBC ResultSet to XML:



Or code: http://www.rgagnon.com/javadetails/java-0511.html
barisdur76Author Commented:
I want this question to be erased and no solution be excepted.
Thanks in advance,
PAQed with points refunded (350)

EE Admin
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now