Originally posted by Darrin Smith:
I just got done reading a Spring book (Spring in Action) so I'm no expert (and after reading the book...I'm not so sure I want to be...there is just too much to it..not that each part is complicated, but when you sum it all up...it looks like a real beast, and I'm still deciding if I have time to tackle that monster)
Spring Boot in Action - Spring made easy!
Spring in Action - Build powerful applications!
Build Talking Apps for Alexa - Add voice to your applications!
Originally posted by Gregg Bolinger:
That's great Craig. I bought a copy of SiA last week, but I really just haven't had time to sit down and digest it as a whole. I went through the Database support chapter to get the rolling in my app and that is all I have had time to read.
I have to admit that I felt the same way as Darrin though. At a glance, Spring can look like a monster.![]()
Originally posted by Gregg Bolinger:
Darren, take a look at this post by me from last week. I pretty much give all the code and config for using Springs Hibernate DAO support.
I'll look into writing a tutorial. Maybe I should just enhance my current login tutorial using Hibernate and Spring DAO?? I don't know.
As far as integrating spring dao with JSF, it's no differnt that using Spring with anything. There is nothing special you have to do in JSF. And for the record, I am *not* a fan of Java Studio Creator so I won't be writing anything about that except maybe, well, if you don't have anything nice to say...![]()
Originally posted by Darrin Smith:
Thanks Gregg, and I'll have a look at that.
BTW, I know that you need to change the faces-config file to use the DelegatingVariableResolver and that isn't a big deal, but what I think is a pain (that JSC eases...I know...not a fan) is bundling and deployment when adding Spring.
In short, a turotial on how you wire it all up (what structure does everything take...where is this config file located...where is that one put...what jars go where for Spring...what files go where for JSF...etc.) would be wonderful.
Oh, by the way...THANKS!
Originally posted by Gregg Bolinger:
You only have to use the DelegatingVariableResolver if you are using Springs IoC to handle your beans. All I want spring to do for me right now is DAO. I don't need the resolver for that.
Spring in Action really convers deployment. If you read it.JAR files go in the lib folder under WEB-INF, config files go under WEB-INF along side web.xml. There is a ContextListener that comes with Spring to put in your web.xml that loads springs default applicationContext.xml or you can pass the listener params to point to whatever appcontext file(s) you need it to know about. This is all in SiA, just not in one handy location, which I agree would be useful.
kktec<br />SCJP, SCWCD, SCJD<br />"What we observe is not nature itself, but nature exposed to our method of questioning." - Werner Heisenberg
kktec<br />SCJP, SCWCD, SCJD<br />"What we observe is not nature itself, but nature exposed to our method of questioning." - Werner Heisenberg
moose poop looks like football shaped elk poop. About the size of this tiny ad:
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
|