Hi guys, 
I'm sure this is a simple challenge, but I'm new to JRun datasources, so
perhaps one of you can help me out.  I set up a JDBC datasource (myDS)
on my default server, and am trying to perform a lookup on the
datasource.  

        InitialContext ctx = new InitialContext();
        DataSource ds =
(DataSource)ctx.lookup("java:comp/env/jdbc/myDS");
        Connection dbconn = ds.getConnection();

When I load the servlet, this javax.naming.NamingException gets thrown:

        java:comp/env namespace is only available from within a J2EE
component

What does this mean and how do I fix it?  Jrun 3.0 J2EE 1.2
Thanks!

Adam
------------------------------------------------------------------------------
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the 
body.

Reply via email to