Here is some more info that may help you help me:

C:\jboss_tomcat\jboss-2.0-FINAL\bin>java -jar jndiView.jar
InitialContext
  +- TopicConnectionFactory
  +- Optimized
  +- QueueConnectionFactory
  +- topic
  |   +- metrics
  +- queue
  |   +- testQueue
  +- NonOptimized
  +- jmx:LAPMRICHMAN:rmi
  +- invokers
  |   +- Optimized
  |   +- NonOptimized
  +- jmx
  +- RemoteControl

Is the java:/comp/env/jdbc/DefaultDS supposed to show up here????

- Mark

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 30, 2000 1:02 PM
Subject: [jBoss-User] Lookup of DefaultDS fails


> 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]
>
>



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

Reply via email to