This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 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: 1506
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
Why am i getting NullPointerException but runs properly
Session Listener
Connection Object
Database Connection and Session
If my hibernate-cfg.xml has multiple session factories then how can I Load appropriate SessionFactor