Is there a "reference implementation" for Spring?
By that I mean something essentially similar to this:
Reason I ask is that so far, I have purchased and read through 3 Spring books, and tried the associated source code examples, but none of them fully show how to use Spring to easily switch from testing business outside the J2EE container to inside it, and to me, that seems like one of the essential promises of the Spring framework, yes?
For example, see my thread under EJB forum: "JBoss EJB spec violation in AbstractStatelessSessionBean?"
For another example, the JNDI lookup code in the servlet example in "Pro Spring" chapter 13 (see thread I mention above) works fine for me inside the JBoss J2EE container (once I fixed the obvious bugs in the book's code sample), but after many hours of tinkering with various JNDI servers from JBoss and Simple JNDI, due to various classpath/security problems with JBoss JNDI server and incompatibilities between Spring ApplicationContext and Simple JNDI (http://www.osjava.org/simple-jndi/), I have been unable to get the Spring framework to successfully call the JNDI lookup logic both in and out of the J2EE container. (I can, however, get SimpleJNDI lookup to work ok, if I do NOT use the Spring framework, i.e. the problem appears to be an incompatibility between Spring and SimpleJNDI).
In the current Spring books and on this forum, I keep reading how easy it is to use the Spring framework to test in and out of the J2EE container, but I'm not finding that to be the case so far, and I start to wonder if "Crazy Bob" and his followers might not be so crazy after all:
Over many years, as a business app developer, I've been promised a lot by tool makers who have claimed to have tools which will make me more productive:
Pascal was going to be a better language than Basic and Fortran.
4thGL languages were going to be better than COBOL, and would eliminate the need for most programmers.
Object-Oriented databases were going to be better than relational databases.
EJB 1.x was going to be the greatest thing since AppleSoft.
EJB 2.x was going to be even better...
EJB 3.x is going to be even better...
Some tools actually HAVE made me more productive: VisiCalc, TCP/IP sockets, relational databases, COBOL, SQL, Visio, email, the web, google, VB, OO, WSAD/Eclipse, JBoss/Eclipse, and so on, but so many tools have not fulfilled their promise that I'm naturally skeptical at first, of any new tool such as Spring.
That being said, I do see good promise in the Spring framework. A full reference implementation in, say, JBoss/Eclipse or MyEclipse, or any reasonably usable IDE for that matter, one that FULLY implements the essential promises of Spring and DI/IoC (the stuff on this forum and/or the Spring book forums that is both popular and problematic for the average business app developer), would eliminate much of the difficult learning curve, and would give me, and perhaps other who are relatively new to Spring, more confidence in recommending it for industrial-strength production use.
Does such a "reference implementation" exist, or if not, could you add it to springframework.org for us?