I am working on a web application that uses ExtJS for the front end and EJB for middle tier. The server used is JBoss and the database is MySQL. Now, to link the front end to the middle tier, I am trying to figure out whether seam or spring is better suited for ExtJS and JBoss.
I have read a lot about seam comparisons with spring, but there isn't much material regarding seam/spring comparisons in regards to ExtJS, so I was wondering if you guys could help me out some?
I am new to such development, so it is quite difficult for me to sort the comparisons and fit it to ExtJS myself.
Thanks!
On a different note, I was also wondering if you guys knew anything about using JDBC driver versus EJB for the same project?
Why's that?
Aren't they very related... I recall having read something about that.
Anything you can explain on regarding seam vs. seam for ExtJS though?
Thanks!
I don't use Seam (I only read the introduction page). It seems to use JSF for GUI stuff, which I don't like. JSF still assumes a page flow, which Web2.0 applications don't have.
Web2.0 applications (like the more common Ext applications) only exchange data with the server. Spring's AbstractCommandController and JsonView are really easy to use for this purpose.
But, as I already noted, I don't know Seam, so it could contain someting similar as Spring.
For seam, this is how I linked it to my entity bean.
var seamComponent = Seam.Component.getInstance('seamComponentName');
var proxy = new Ext.ux.data.SeamRemotingProxy({
remoteMethod: seamComponent.loadJson,
seamComponent: seamComponent
});
var reader = new Ext.ux.data.SeamRemotingJsonReader({id: 'id', root:'data'}, [
...
now if I have defined public void getSearchList () {...},
then I just need to use seamComponent.getSearchList() to use it.