Solved

Data binding for JAVA APPLET

Posted on 2007-03-18
10
1,167 Views
Last Modified: 2013-12-14
- 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?
0
Comment
Question by:barisdur76
10 Comments
 
LVL 30

Expert Comment

by:mayankeagle
ID: 18744576
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.
0
 

Author Comment

by:barisdur76
ID: 18764558
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?

0
 
LVL 2

Expert Comment

by:ucool
ID: 18764916
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/
0
 

Author Comment

by:barisdur76
ID: 18765177
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.
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 30

Expert Comment

by:mayankeagle
ID: 18768846
>> 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.
0
 

Author Comment

by:barisdur76
ID: 18812303
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.
0
 
LVL 30

Expert Comment

by:mayankeagle
ID: 18813131
If SwingSet is data aware using JDBC and you need XML, there are products available which can convert a JDBC ResultSet to XML:

http://www.jeckle.de/freeStuff/JDBC2XML/index.html

http://www.developer.com/db/article.php/3329001

Or code: http://www.rgagnon.com/javadetails/java-0511.html
0
 

Author Comment

by:barisdur76
ID: 18814255
Hi,
I want this question to be erased and no solution be excepted.
Thanks in advance,
Baris
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 19146355
PAQed with points refunded (350)

Computer101
EE Admin
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now