I've started working on this new project, a systemweb that enables me to monitor some of the things going on in our big super webapp.
The project is for admins only so for a change the focus will be on functional features instead of graphical features. Good start so far.
I very much like the idea of 'convention over configuration' (anyone would after working 1,5 years with Spring. Nothing bad about Spring but configuration wise it has become somewhat of a monster) so I turned to the new kids on the block: (J)Ruby on Rails and Grails.
I've seen both Graeme Rocher (Grails man) and Charles Nutter (JRuby man) talking about their own framework and must say that it did not make the choice easier. Both frameworks offer a great deal of features so in the end it would come to my personal preference to tilt the scales.
Since I'm a Java developer and I'm still a bit time-bound, which didn't give me much time to learn a complete new language I chose Grails. This way I could still do Java, which I love and do Groovy scripting too.
Actually as Graeme Rocher pointed out: Groovy IS Java so that makes things a whole lot easier.
Eager as I am to get started I created my grails project and my first controller, the ClientDomainController. It will manage my... client domains.
Then it got interesting. Instead of using the grails domain class structure I wanted to use our existing libraries. All the stuff I needed was already there.
In the manuals I could only find stuff about using the Grails domain classes so I started thinking: The only thing I would do in Spring to use a library would be importing it in my Spring file...
The import looks like this:
<import resource="classpath*:spring-common.xml" />
<import resource="classpath*:spring-business.xml" />
First I tried the spring.resources.xml file but that didn't work so I tried the applicationContext.xml file and...
VĂ²ila! Now I have access to all my existing managers, domain classes, etc...
Great thing is that now I don't have to worry about my database stuff either. So for all this I only added 2 lines of xml to a file... sounds good to me.
Wednesday, September 12, 2007
Friday, March 03, 2006
Spring 2 seminar by Rod Johnson, London
On march 2nd 2006 I was in London to hear Rod Johnson speak about new features in Spring 2. Rod explained that the focus for Spring 2 was 'make complex things simple and simple things even simpler'. From what we heard I think they succeeded pretty good.
I was especially impressed by the integration of AspectJ and the declarative way that you now can use to define aspects. It is now possible to use a simple POJO as an aspect. No more implementing or extending advisors. They defined a couple of new namespaces in the xml schema, like the aop namespace.
You can do something like
and there is your aspect.
Also nice is the struts like tag support they now have build in. Binding of forms to commands is probably a lot easier and more intuitive than before.
Of course he could only tell us a little bit in 2,5 hours, but the things that he told made me sure that a migration from Spring 1.2.6 to Spring 2 is a good decision.
You can find Spring 2 at http://www.springframework.org/download
I was especially impressed by the integration of AspectJ and the declarative way that you now can use to define aspects. It is now possible to use a simple POJO as an aspect. No more implementing or extending advisors. They defined a couple of new namespaces in the xml schema, like the aop namespace.
You can do something like
< aop:aspect >
... use valid AspectJ expression to define pointcuts and joinpoints ...
... use an ordinary class as an aspect
< /aop:aspect >
and there is your aspect.
Also nice is the struts like tag support they now have build in. Binding of forms to commands is probably a lot easier and more intuitive than before.
Of course he could only tell us a little bit in 2,5 hours, but the things that he told made me sure that a migration from Spring 1.2.6 to Spring 2 is a good decision.
You can find Spring 2 at http://www.springframework.org/download
Wednesday, March 01, 2006
First posting
Hey all!
This blog will function as a reference for all the stuff that is worth saving for some reason.
It will probably mostly be stuff to do with Spring, Java, and everything else to do with the projects I work on.
This blog will function as a reference for all the stuff that is worth saving for some reason.
It will probably mostly be stuff to do with Spring, Java, and everything else to do with the projects I work on.
Subscribe to:
Posts (Atom)
