Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Immediate help please . Not getting DB connection !!!!!!

 
Siva Ram
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
For session tracting I have implemented HttpSessionBindingListener. When session invalidation happens, the ValueUnBound method will be called. During this time I am not able to get the DB connection ??
Can any one help me to solve this please...
TAI,
Siva Ram
 
Aleksey Matiychenko
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean you cannot get db connection?
Do you get an error message ?
Be more specific
 
Siva Ram
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
DB conncetion refers to "For updating database , I need DB Connection". I am not getting DB connection. I got the exception given below.
*******DB Connection not successful*********
[javax.naming.NamingException [Root exception is java.lang.NullPointerException]
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are getting a NamingException. It's possible that the name you are using is not what the method is expecting, so it could not find it. Check your spelling, case, etc.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic