InfoQ Homepage Groovy Content on InfoQ Groovy and Grails Plans Announced at SpringOne2GX The Future of Java in the Enterprise – InfoQ’s Opinion. In this latest InfoQ book, Jason Rudolph introduces Grails, an open-source, web- app development framework that provides a super-productive. Grails is an open-source, rapid web application development framework that provides a super-productive full-stack programming model based.
|Published (Last):||3 March 2004|
|PDF File Size:||13.1 Mb|
|ePub File Size:||19.6 Mb|
|Price:||Free* [*Free Regsitration Required]|
Aug 22, 1 min read.
Grails > News > Page #1
Enhance your end-user experience by optimizing your application performance. Get a holistic view of your application behavior with Site24x7. Join a community of oversenior developers. You need to Register an InfoQ account or Login or login to post comments. But there’s so much more behind being registered. Your message is awaiting moderation. Thank you for participating in the discussion. A legacy approach to using EJBs. Wow that speaks volumes.
And do it with another language. Floyd I cant figure if you think Java has a future or if you think we should all party on the VM like it was a Corba container. This is what frustrates me about the Java space right now. Everyone is so rattled by ruby and scripts and trying to wedge Java in a buzz trend that is so far removed from where Java is that its not even worth discussing Java in a “rails” context. Or discussing rails in an EJB context.
If we have to port rails to the JVM to be happy then maybe we should just use the ruby interpreter and support its toolset and let Incoq handle the legacy integration as they are so keen to do. Its not interesting or all that relevant. I think you missed the point – the article doesn’t treat EJB as legacy, it’s about developing a domain model in EJB and using Grails to quickly build a web app around it.
Considering strategies like Domain Driven Design, focusing on your domain model in Java and generating the UI around that is an emerging best practice that tools like Grails can enable. Where was it mentioned that EJB3 is legacy? Grails is all about embracing Java, the platform, language and tools. Java has a huge future and it speaks volumes for the strength of the infq that Grails and its underlying frameworks Spring, Hibernate, SiteMesh, Quartz etc.
In terms of porting Rails, well yes that is one option, grils Rails as with Ruby’s runtime has a very different grailx model and idioms for developing web applications. Grails is not a port of Rails and in fact is very different in many ways including how it is based on Java frameworks.
The point was accessing EJBs with something other than Java.
And something just went “integration strategy” Thats how you know what legacy is and isnt. If we were talking about using Grails to build a front-end to a VSAM file, I’d agree with you that we’re talking graills legacy integration; however, that’s not the case. There’s a distinct difference between We’ve long been dependent on another language to make our Java apps work. If the goal is to build a web user interface for your EJBs which are, by their very nature, business-tier componentschances are you’re going to invoke some other complimentary technology for your web tier.
Maybe it’s just JSP. The use of those complimentary technologies does not make EJB a legacy technology.
It’s instead a choice of using the most efficient tool for the job at hand. And for many applications, Grails offers the productivity gains to make it a strong innfoq to be that tool. OK Ill give you that, but you cant ignore the undercurrent of the Java space right now which is desperately trying to wedge the competition into its model out of fear of outright rejection. What if the smalltalk guys had insisted that Java run in a smalltalk VM?
What would people have gralis of them? The smalltalk VM was way ahead of Java infoqq the early days. So now the Java scene wants to steal ruby and rails from the cradle and I say well if Java is so great then let Java solve its own problems without coopting the vibe of the scripting languages. I think Java is trying to change before anyone acknowledges or speaks aloud of a greater failure of OO or more specifically Java projects to deliver.
I read in a magazine a couple of years ago that “the Hummer is the greatest gails vehicle we ever drove”. And “with a Hummer you can get through any terrain except through narrow streets”. Java, Groovy and Ruby are great in many areas but none is great in all areas.
Particularly, Java is not so great to write web handlers. Alternatively you could use Ruby and Rails or Grails if you want to reuse Java incoq.
In fact, we’ve created Grails to augment the Java platform. You can hate us for doing so and being successful.
Getting Started with Grails
There’s however no need to start a flame war. Any reason why the relationaship management code can’t be generated too? It was a little anticlimactic to learn that the developer had to manually edit the generated groovy code just to handle the object relationaships.
I’m assuming all that info is stored as annotations in the EJBs. Hi, I followed up this step-by-step and successfully run ‘grails run-app’.
Everything looked great except grsils case: I assigned 3 computers to an employee, for example, jane inofq I got 3 instances of the same ‘jane’ listed in infow browser IE6. That seems a bug. How can I fix it?
This is one the todo list: Thanks for your feedback. There’s apparently problem with the dynamic list method, which is used to fetch the list of employees. You can track the problem here: This is a really great article and does a very nice job of showing off the features of Grails. As it is, the author just illustrates the flexibility of the new EJB pojo implementation as well as the rapid development capabilities of Grails. Maybe this is intoq possible using some tricks with the Spring configuration, but I don’t know Spring well enough to say.
In any case, thanks for a infqo article! Randall, Your comment is exactly what I was thinking! I read the article and there’s no mention of an app server or anything like that!
Just copying the entity code and using that. While Grails looks cool, we’ve got a lot invested in the JEE resources. Guess we’ll have to see what develops! Would it be possible to the content of this article in pdf format, to be able to read it offline and print it nicely? Hi, I am stuck following your inflq in invoq very early stage “run-app” directly after “create-app”: No plugin scripts found Running script C: Do you have any hints for me?
However there seems to be no action on this issue? Any workaround available for this? Jason, Thanks for the article – it’s awesome. I was wondering what needs to be done to make the following search scrollable At Step 4 – Generate the Scaffolding, I got an error. No domain class found for name com.
Please try again and enter a valid domain class name How grsils move forward? Thanks for the help!
I am going develop the new entities in GORM. Kindly let me know the migration steps. Is your profile up-to-date? Please take a moment to review and update. Aug 22, 1 min read by Floyd Marinescu.
Grails could bring Graols on Rails style productivity to the Java platform, built on the Groovy language and fully integrated with Java. In this tutorial, Jason Rudolph shows how to use Grails to quickly build a functional website around an existing EJB 3 entity bean domain model with very little code. As one impressive example of its enterprise integration abilities, Grails let’s you quickly and easily build a web application backed by your existing EJB3 entity beans.
But, it doesn’t stop there. Grails gives your entity beans a hearty shot of steroids, but does so completely dynamically, without altering your EJB source code in any way. And those methods are not only accessible from Grails and Groovy; your Java code can invoke those methods as well!
The integration angle hrails quite important, as reuse of existing investments in Java is a commonly cited problem the Java community has been saying about using Ruby on Rails. Grails graila a RAD framework bound together with our own incoq language Groovy which is part of the Java platform. Could Grails become the Java community’s answer to Ruby on Rails? Related Sponsor Enhance your end-user experience by optimizing your application performance.
View an example Enter your e-mail address. Get the most out of the InfoQ experience. Tell us what you think.