• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error trying to save some data to a data base, using an spring manager class from a listening class

 
Juan Acv
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody.

I'm trying to save some data related to an user in a database when login, using a spring-hibernate manager. I am using a class that implements HttpSessionAttributeListener, to add the data, and to increment a users connected counter:


The method returns an error:



Even the program never reach the method getClientData() in the UserDataManager (it isn't appear in the log)

What i am doing wrong? May be, it's not possible to access to a spring-hibernate manager from a Listener?

thank you.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to Spring, as this has nothing to do with Struts.
 
Juan Acv
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks

I found an example about what I wanted to do:

http://www.mkyong.com/spring/spring-how-to-do-dependency-injection-in-your-session-listener/

Greetings.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic