wood burning stoves 2.0*
The moose likes Servlets and the fly likes Immediate help please . Not getting DB connection !!!!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Immediate help please . Not getting DB connection !!!!!!" Watch "Immediate help please . Not getting DB connection !!!!!!" New topic
Author

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

Siva Ram
Ranch Hand

Joined: Apr 04, 2002
Posts: 66
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


Thanks and Regards,<br />Siva Ram .NR
Aleksey Matiychenko
Ranch Hand

Joined: Apr 03, 2001
Posts: 178
What do you mean you cannot get db connection?
Do you get an error message ?
Be more specific
Siva Ram
Ranch Hand

Joined: Apr 04, 2002
Posts: 66
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

Joined: Nov 06, 2000
Posts: 1510
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.


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Immediate help please . Not getting DB connection !!!!!!
 
Similar Threads
Session Listener
If my hibernate-cfg.xml has multiple session factories then how can I Load appropriate SessionFactor
Database Connection and Session
Connection Object
Why am i getting NullPointerException but runs properly