aspose file tools*
The moose likes Spring and the fly likes Spring Problems for Newbies Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring Problems for Newbies" Watch "Spring Problems for Newbies" New topic
Author

Spring Problems for Newbies

Jim Willeke
Greenhorn

Joined: Aug 08, 2005
Posts: 2
Although I do not work with Java everyday, I have used Java for many years.

Many of my clients are using Spring and as a LDAP expert, I am often asked about using Spring with LDAP; so I am trying to learn more about Spring as the support for LDAP, well, leaves somethings to be desired compared to one of the dedicated LDAP libraires.

The issue I have had, is the different version issues that are not resolved.

I have yet to be able to obtain a sample that will work.
I installed the STS and can not even get one of the popular examples of HelloWorld to work. (http://www.mkyong.com/tutorials/spring-tutorials/) as there is some "older" version dependancies missing.

I understood that Spring should make life easier, but so far, it has been vary painful.

Any thoughts?


-jim
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

What do you mean with LDAP?

Are you just talking about Spring Security, and using LDAP for authentication?

If so, it is actually very easy. You just write a configuration that uses the built in LDAP UserDetailsService in your Spring Security configuration.

But I think the pain you feel is because you are trying to go straight to the project/configuration and not learn Spring.

Ah, wait. I see there actually is a Spring LDAP project.

Are you familiar with the Template Method pattern? It looks like this project has an LdapTemplate class where you call methods on it and pass parameters and it returns data from Ldap.

So in Spring Templates are used in many places and it is actually really really easy to use a Template, so I definitely recommend learning some Spring Framework basics first.

I know it is tough to say this. But this is as easy as you will find. But if you are brand new and haven't seen a Template before, then maybe it doesn't look as easy as you will find. Does that make sense?

Thanks

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring Problems for Newbies
 
Similar Threads
Suggestions for using LDAP
Learning Spring
No getObjectAttributes() method in Spring LDAP (Version 1.2.1)
Error Configuring LDAP security for Spring 3.1.0
JSF, JAAS, and Tomcat