Hello everyone!  I am new to the jBoss community.  I am trying to write a
simple JSP page that reads from a database.  I'm starting off with the
"DefaultDS" that comes with jBoss.  However, I get a "DefaultDS not bound"
exception at runtime.  Here is the offending line of code:

DataSource ds = (DataSource)new
InitialContext().lookup("java:/DefaultDS");

I'm assuming I should use java:/DefaultDS since that's the binding jBoss
shows in the console when it starts up.  This is not an EJB app (yet)...just
one JSP page.  Do I need to add something to a deployment descriptor?

Any suggestions?

Thanks,
Mark Richman


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to