Re: moving on to Hibernate with S2...

2007-05-12 Thread Josh Vickery
If you like RoR (and I do) you might like some of the "magic" that Struts 2 and Spring can provide. It isn't quite perfect yet (at least not the Struts 2 part), but I'm pretty happy with it. By "magic" I mean convention based configuration, which cuts down on the number of places you have to ent

Re: moving on to Hibernate with S2...

2007-05-11 Thread Ray Clough
Personally, I do *NOT* like to use Spring, because every time I touch it everything breaks. I think that a better solution is to use a ServiceLocator to provide the Hibernate SessionFactory. I did this in S1, and it worked very easily, and didn't break anything. ServiceLocator is described in t

Re: moving on to Hibernate with S2...

2007-05-11 Thread Musachy Barroso
I'd say getting everything set up is what hurts, after that, it is very nice. I'm running Struts 2 with JPA and Toplink and I'm quite pleased. musachy On 5/11/07, Rick Schumeyer <[EMAIL PROTECTED]> wrote: The funny thing is that I've spend the past few months working with RoR. I like it, but

Re: moving on to Hibernate with S2...

2007-05-11 Thread Rick Schumeyer
The funny thing is that I've spend the past few months working with RoR. I like it, but I finally have some time to investigate the Java world. I have this nagging concern about RoR performance. One thing I hope to learn soon is, once over the pain of initial configuration with Java based fr

Re: moving on to Hibernate with S2...

2007-05-11 Thread String Larson
That's what we're using as well. Plus using EJB3/Annotations (over Hibernate3) for persistence. Works well. No show stoppers thus far. If don't expect your web app to be too complex, I'd recommend a hard look at Ruby on Rails. The whole S2, Spring, Hibernate thing is very powerful. However, it

Re: moving on to Hibernate with S2...

2007-05-11 Thread Musachy Barroso
What I meant was: use Spring IoC to glue Struts 2 and Hibernate together :) musachy On 5/11/07, Josh Vickery <[EMAIL PROTECTED]> wrote: Spring has several components, but the one I use (and the one I think is the most popular) is the Inversion of Control (IOC) framework. Struts 2 (when it was

Re: moving on to Hibernate with S2...

2007-05-11 Thread Josh Vickery
Spring has several components, but the one I use (and the one I think is the most popular) is the Inversion of Control (IOC) framework. Struts 2 (when it was Web Work) had some IOC support, but it wasn't as full featured as what Spring offers. Spring also has an MVC, which is a direct competitor

Re: moving on to Hibernate with S2...

2007-05-11 Thread Rick Schumeyer
Let me ask you a question that I've never really received a good answer to. Keep in mind that my knowledge of Java web programming is some S1, and just starting with S2. I have never really looked at Spring. I understand that S2 and Spring somehow work together. What I don't understand is:

Re: moving on to Hibernate with S2...

2007-05-11 Thread Musachy Barroso
Have you tried using Spring?. It plays nicely with Struts and hibernate, plus there are some examples around I think. musachy On 5/11/07, Rick Schumeyer <[EMAIL PROTECTED]> wrote: Now I'm trying to configure Hibernate with S2, which many others have done. I was trying to follow the example in