aspose file tools*
The moose likes Java in General and the fly likes Technologies Advice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Technologies Advice" Watch "Technologies Advice" New topic
Author

Technologies Advice

Jennifer Moran
Ranch Hand

Joined: Oct 21, 2002
Posts: 60
I am developing a brand new system (mirrored off an old one) that I was hoping to get some advice on. This system had complex GUIS writtin as Applets with Swing. Our new system needs to be a web application. I have no idea what technologies could replace a downloaded applet with a browser application, any advice would be appreciated. Other parts of the system involve messaging, data persistance and caching. I want it to be really clean looking and to look more like a java application than a standard web page. I was thinking the following technologies for the other parts of the system besides the applets and would appreciate any advice on this also.

Server

JBoss Application Server with the following components:
Hibernate
JBoss Web
JBoss JMX
JBoss Messener
JBoss Transactions (don't know what this is)
JBoss Cache
JBoss Portal (don't know what this is)

Struts 2.0
JSF/AJAX
Hibernate using the DAO Factory Patterns


Thanks for the expertise.....

Jennifer
Jelle Klap
Bartender

Joined: Mar 10, 2008
Posts: 1763
    
    7

I've not used this framework myself, but a collegue of mine (web developer) has expressed interest in adopting the Ext JS RIA framework. Seems like it would allow you to build a RIA with the kind of look and feel you described. There's also a book availabe that could be worth checking out if this framework sparks your interest. Again, I've no experience developing applications using this framework (nor have I read the book I mentioned), but it seemed like it might be worth throwing out there, as a sugggestion.


Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
Jennifer Moran
Ranch Hand

Joined: Oct 21, 2002
Posts: 60
Thanks so much for the info. It's definitely something I am going to look into.

Jennifer
Tamas Jano
Ranch Hand

Joined: Feb 21, 2007
Posts: 55
Hi Jennifer,

It is a good practice to develop the server side separately from the UI so once your technology stack is set look into how easily you can build a GUI for the services.

Ideally you would be able to interchange the GUIs easily (ex. switch from a web UI to Swing without touching the services)

For RIA I could say that ICEFaces or GWT would fit you nicely. Even JBoss Seam seems to be a good option for you.
There is always the JQuery which can be used with any kind of MVC framework.

Remember to design the layers to eliminate dependencies so it will be easy to integrate.

Hope it helps.





Jennifer Moran
Ranch Hand

Joined: Oct 21, 2002
Posts: 60
Tamas -

Thank you so much for your advice. I will let you know how it works out.

Jennifer
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Echoing Tamas here, it's a _really_ good idea to split the UI and services layer, there's no 'clear winner' in the UI space for Java based apps at the moment, so you might find yourself swapping the UI out. If you're considering bleeding edge then JavaFX could be a rich client technology for you.

Prototyping the UI is probably way to go here, see if you can build a simple CRUD screen in technology X to see how easy/hard some of the offerings are.

Jboss Transactions is all to do with their transaction manager. For example the transaction manager will ensure that any XA (2-phase) resources involved in a transaction will all commit or all roll back. For example you may send a message to a topic and write to the DB as part of one txn, if the DB write fails it'll get rolled back and so will the sending of the message.

Hope that helps!


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Jennifer Moran
Ranch Hand

Joined: Oct 21, 2002
Posts: 60
Thanks for all the advice. I definitley agree that components need to be separated. I am planning on utilizing Struts (MVC) architecture and it looks like since some pieces of application are going to need to be applets run via web and others can be plain old JSP I am going to try to utilize both the EXT JS and the GWT components so the 'look' is seamless across the application. I don't know if I will need the JBoss Transaction plug in, I have to analyze what sort of transactions need to be done. If the only transactions to/from the database I can use Hibernate for the transaction security (commit/rollback all or none), if I understand correctly if the transaction needs to involve more (emails, messaging, etc) it would be wise to use the JBoss Transactions.

Jennifer
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Correct on the transactions, Jboss AS will have the Jboss TM (Transaction Manager) running by default, you simply have to follow the documentation in order to have your XA resources (Database, JMS) registered with that TM. There are loads of examples in the docs and on the web (that includes Hibernate integration as well). So you should be OK with that.
Jennifer Moran
Ranch Hand

Joined: Oct 21, 2002
Posts: 60
Okay great.....also on another note.

Any good books or references for JBoss/Ajax/Hibernate??? Something that covers more advanced topics???

Thanks again....

BTW - I RAVE about the javaranch site to all my techie friends, I think this is the best site.

Jennifer
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

* Jboss in Action
* Java Persistence with Hibernate (sequel to Hibernate in Action)
* Harnessing Hibernate (Oreilly cookbook style of book)

The AJAX stuff I'll let an expert (e.g. Not me ;)) recommend a book. We also have a book reviews section in Javaranch, so check that out as well!

Jennifer Moran
Ranch Hand

Joined: Oct 21, 2002
Posts: 60
Okay - I'll check out the book reviews too.

Thanks,

Jennifer
Jane Somerfield
Ranch Hand

Joined: Jul 20, 2002
Posts: 193
Try Flex. It is the best at this moment.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38851
    
  23
Thank you, Jane Somerfield, but is it useful to reply to a 6-month old thread? Have a look at this FAQ.
Ulas Ergin
Ranch Hand

Joined: Oct 10, 2002
Posts: 77
Hello

you might consider using JPA [Java Persistence API] instead of/in conjuction with Hibernate.
I understand you will use JBoss which uses Hibernate as the default JPA provider.

see http://java.sun.com/javaee/technologies/persistence.jsp for details
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Technologies Advice