IntelliJ Java IDE
The moose likes Other Application Frameworks and the fly likes Pro Spring Book Question Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Other Application Frameworks
Reply Bookmark "Pro Spring Book Question" Watch "Pro Spring Book Question" New topic
Author

Pro Spring Book Question

Mike London
Ranch Hand

Joined: Jul 12, 2002
Posts: 867
Hello,

On page 30 of "Pro Spring" there's an example class with the following line of code:

BeanFactory factory = getBeanFactory();

This line does not compile for me.

The three imports at the top of the class are fine as far as MyEclipse is concerned and MyEclipse is using the 1.2 Spring Libraries.

I was wondering if anyone else had run into this problem.

Thanks!!!

-- M
Ken Krebs
Ranch Hand

Joined: Nov 27, 2002
Posts: 451
Did you add the static getBeanFactory method which is right below the main method you are referring to ?

Perhaps you didn't mark it static.


kktec<br />SCJP, SCWCD, SCJD<br />"What we observe is not nature itself, but nature exposed to our method of questioning." - Werner Heisenberg
Mike London
Ranch Hand

Joined: Jul 12, 2002
Posts: 867
Yup, that was it.

Thanks.

(embarassed)

-- M
 
 
subject: Pro Spring Book Question
 
Threads others viewed
Best Spring, Hiberante books please
Spring Book For Beginners
Book For Spring Begginer
MyEcilpse for Spring?
Which book to learn Spring?
developer file tools