Please clairfy something for me.

This doesn't work in my JSP:

        InitialContext ctx = new InititalContext();     ok here
        DataSource ds = (DataSource)ctx.lookup("jdbc/mysql"); fails

Could someone clarify why? Are servlets the only 'proper' way to get at my
database source identified in jboss.jcml?

I can get at it by going directly to the driver, but thta seems to defeat
the purpose of specifying the data source in the .jcml file.

Thanks,
r.b.





_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to