What Java server technology to use with ExtJS

We plan to update the user interface structure for our 6-8 year old application written with Struts / JSP / EJB for ExtJS. Just curious what is the most popular Java technology on the server that people use. We studied several alternatives, such as

  • DWR
  • Resteasy
  • Restlet
  • Struts-json

We are more immersed in using DWR, but we just wanted to find out if the programming community has any food for thought.

For backward compatibility, the reasons for migration will occur gradually, and during this period we will try to make ExtJS coexist with old Web1.0 style pages. We are not changing anything at the business level, but only the web level will change from JSP to ExtJs pages.

+4
source share
7 answers

If you intend to use ExtJS, do you think you are using ExtGWT instead? This will give you stronger better Java integration.

+3
source

My team also used Struts in the past. We have moved forward and use DWR, and we like it. Our experience with DWR and Ext was excellent. So many code code labels, from both DWR to the end of Java and Ext to the end of JavaScript, have been reduced. There is also an ExtJsWithDwr project that will help integrate the two: http://github.com/BigLep/ExtJsWithDwr .

+3
source

ExtGWT, if you want to go with GWT, or I would recommend Metro (or any Java RESTful implementation - JSR 311) + ExtJS, it works fine.

+1
source

We have successfully used Restlet , and it can be used for applications that are not 100% RESTful (we have areas where we are a little cavaliers). This is not a complete solution, but it is associated with decent integration with other technologies. For example, we create our XHTML / CSS pages using Restlet support for the Apache FreeMarker template generator.

Our generated pages use jQuery , and ExtJS should work equally well. Restlet has a GWT module .

+1
source

See also Jersey . This is a very useful JAX-RS implementation (JSR 311) that integrates seamlessly into an existing project like yours.

If I were you, I would create a separate package (or even EAR / WAR) with classes that just spoke to your existing EJBs and were exposed as REST services that ExtJS can interact with.

+1
source

I used jabsorb for a similar project, which is very similar to DWR but corresponds to JSON-RPC.

+1
source

You might want to check out Myna ( http://mynajs.org ). It is a server-side application platform that deploys as a J2EE war file. Being server-side JavaScript, it integrates well with Ext. In fact, all internal management interfaces are written in Ext. Myna has a few features that you might find useful:

  • Admin Web Application. No need to edit XML files.
  • Web-based database administrator. You can run queries, create / edit / delete tables, and generate Myna and SQL code from the GUI
  • Centralized data source management and aggregation of DB connections
  • Web service class supporting SOAP, XML-RPC, JSON-RPC and MYNA-JSON with Ext.Direct coming soon!
  • Support for handling PUT, POST, GET, and DELETE HTTP requests
  • Support for loading POJOs into your JavaScript code (Via Rhino)
  • Relational mapping of runtime objects. No need to edit XML files or recompile classes when changing database tables.
  • Javascript preprocessor support multiline SQL queries with implicitly prepared statements and typed parameters
  • Queries support swap and return full rows that work well with Ext grid and PagingToolbar

    Full disclosure: I am the main developer for Myna

0
source

All Articles